From asami2@han.cs.berkeley.edu  Sun Jan 12 06:47:44 1997
Received: from han.cs.berkeley.edu (han.CS.Berkeley.EDU [128.32.38.229])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id GAA00420
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Jan 1997 06:47:44 -0800 (PST)
Received: (from asami2@localhost) by han.cs.berkeley.edu (8.8.4/8.7.3) id GAA03634; Sun, 12 Jan 1997 06:47:38 -0800 (PST)
Message-Id: <199701121447.GAA03634@han.cs.berkeley.edu>
Date: Sun, 12 Jan 1997 06:47:38 -0800 (PST)
From: asami@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: jdp@polstra.com
Subject: pkg_add chokes on large packing lists
X-Send-Pr-Version: 3.2

>Number:         2459
>Category:       bin
>Synopsis:       pkg_add chokes on large packing lists
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    jkh
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 12 06:50:00 PST 1997
>Closed-Date:    Mon Feb 24 23:21:16 PST 1997
>Last-Modified:  Mon Feb 24 23:23:35 PST 1997
>Originator:     Satoshi Asami
>Release:        FreeBSD 2.2-RELEASE i386
>Organization:
The FreeBSD Janitorial Team
>Environment:

A FreeBSD system and a large package.  By the way, uname is lying
up there, 2.2 is not released yet.

>Description:

When a user tries to pkg_add some packages, it dies with:

can't invoke tar pipeline

followed by hundreds of

File `/usr/local/lib/xemacs-19.14/etc/w3/archive.xbm' doesn't really exist.

type errors.  I believe this has something to do with the size of 
the packing list, as it failed for teTeX, linux_lib, crossfire and
xemacs (all of which have enormous packing lists) while it worked
for some of the smaller packages that I tried.

I believe the packages are correct (i.e., the bug is in pkg_add,
not pkg_create), although I can't really verify that except that it is 
a valid gzipped tarfile and the file in question exists in the package:

## tar tvzf editors/xemacs-19.14.tgz | grep archive.xbm 
-r--r--r-- root/wheel      503 Sep 20 12:59 1994 lib/xemacs-19.14/etc/w3/archive.xbm

>How-To-Repeat:

	pkg_add xemacs-19.14.tgz

>Fix:
	
	Maybe something similar to John's fix to pkg_create?

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: asami 
Responsible-Changed-When: Tue Jan 21 22:19:48 PST 1997 
Responsible-Changed-Why:  
Subject: Re: xemacs 19.14 package - broken?  
Date: Mon, 20 Jan 1997 04:53:34 -0800 
From: "Jordan K. Hubbard" <jkh@time.cdrom.com> 

OK, OK, I'll get to it soon! :-) 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Feb 24 23:21:16 PST 1997 
State-Changed-Why:  
OK, fixed.  sysconf(_SC_ARG_MAX) lies about how much argument space 
you can *actually* use so I just settle for a much more modest 
percentage of what it says I can use.  xemacs package extracts just fine 
now. 
>Unformatted:
