Problem with pkg_add and tbz files

2002-08-25 Thread Craig Rodrigues

Hi,

Running:
FreeBSD 5.0-CURRENT-20020818-JPSNAP 

If I do:

pkg_add 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-current/All/lynx-ssl-2.8.4.1b_1.tbz

I get the following error:

pkg_add 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-current/All/lynx-ssl-2.8.4.1b_1.tbz
Fetching 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-current/All/lynx-ssl-2.8.4.1b_1.tbz...
gzip: stdin: not in gzip format
tar: Child died with signal 13
tar: Error exit delayed from previous errors
Broken pipe


However, it works if I do:
fetch 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-current/All/lynx-ssl-2.8.4.1b_1.tbz
pkg_add lynx-ssl-2.8.4.1b_1.tbz

Any ideas?

Thanks.

-- 
Craig Rodrigues
http://www.gis.net/~craigr
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Problem with pkg_add and tbz files

2002-08-25 Thread David O'Brien

On Sun, Aug 25, 2002 at 11:34:01AM -0400, Craig Rodrigues wrote:
 If I do:
 pkg_add 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-current/All/lynx-ssl-2.8.4.1b_1.tbz


Please give the output of ``ident /usr/sbin/pkg_add''.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Problem with pkg_add and tbz files

2002-08-25 Thread Craig Rodrigues

On Sun, Aug 25, 2002 at 08:40:32AM -0700, David O'Brien wrote:
 On Sun, Aug 25, 2002 at 11:34:01AM -0400, Craig Rodrigues wrote:
 
 Please give the output of ``ident /usr/sbin/pkg_add''.


/usr/sbin/pkg_add:
 $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp $
 $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.5 2002/05/15 04:19:49 obrien Exp $
 $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.9 2002/07/16 12:28:49 markm Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/main.c,v 1.50 2002/04/01 09:39:06 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/perform.c,v 1.71 2002/05/14 21:42:36 
sobomax Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/futil.c,v 1.13 2002/04/01 09:39:05 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/extract.c,v 1.35 2002/08/02 17:28:02 
sobomax Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/match.c,v 1.12 2002/05/22 10:33:25 sobomax 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/plist.c,v 1.44 2002/08/12 16:15:25 sobomax 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/version.c,v 1.4 2002/08/11 13:05:30 
schweikh Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/pen.c,v 1.40 2002/05/11 04:17:55 alfred 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/msg.c,v 1.16 2002/04/01 09:39:07 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/exec.c,v 1.10 2002/04/01 09:39:07 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/str.c,v 1.14 2002/04/01 09:39:07 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/file.c,v 1.56 2002/08/04 21:27:57 knu Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/global.c,v 1.9 2002/04/01 09:39:07 obrien 
Exp $


-- 
Craig Rodrigues
http://www.gis.net/~craigr
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Problem with pkg_add and tbz files

2002-08-25 Thread David O'Brien

On Sun, Aug 25, 2002 at 12:15:50PM -0400, Craig Rodrigues wrote:
 On Sun, Aug 25, 2002 at 08:40:32AM -0700, David O'Brien wrote:
  On Sun, Aug 25, 2002 at 11:34:01AM -0400, Craig Rodrigues wrote:
  Please give the output of ``ident /usr/sbin/pkg_add''.
 
 /usr/sbin/pkg_add:
  $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp $
  $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.5 2002/05/15 04:19:49 obrien Exp $
  $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.9 2002/07/16 12:28:49 markm Exp $
  $FreeBSD: src/usr.sbin/pkg_install/add/main.c,v 1.50 2002/04/01 09:39:06 obrien 
Exp $
  $FreeBSD: src/usr.sbin/pkg_install/add/perform.c,v 1.71 2002/05/14 21:42:36 
sobomax Exp $
  $FreeBSD: src/usr.sbin/pkg_install/add/futil.c,v 1.13 2002/04/01 09:39:05 
obrien Exp $
  $FreeBSD: src/usr.sbin/pkg_install/add/extract.c,v 1.35 2002/08/02 17:28:02 
sobomax Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/match.c,v 1.12 2002/05/22 10:33:25 
sobomax Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/plist.c,v 1.44 2002/08/12 16:15:25 
sobomax Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/version.c,v 1.4 2002/08/11 13:05:30 
schweikh Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/pen.c,v 1.40 2002/05/11 04:17:55 alfred 
Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/msg.c,v 1.16 2002/04/01 09:39:07 obrien 
Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/exec.c,v 1.10 2002/04/01 09:39:07 obrien 
Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/str.c,v 1.14 2002/04/01 09:39:07 obrien 
Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/file.c,v 1.56 2002/08/04 21:27:57 knu 
Exp $
  $FreeBSD: src/usr.sbin/pkg_install/lib/global.c,v 1.9 2002/04/01 09:39:07 
obrien Exp $

As always, cvsup and rebuilt the piece of software in question before
reporting a problem:


/usr/sbin/pkg_add:
 $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp $
 $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.5 2002/05/15 04:19:49 obrien Exp $
 $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.9 2002/07/16 12:28:49 markm Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/main.c,v 1.51 2002/08/25 01:00:16 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/perform.c,v 1.72 2002/08/25 01:00:16 
obrien Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/futil.c,v 1.13 2002/04/01 09:39:05 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/add/extract.c,v 1.35 2002/08/02 17:28:02 
sobomax Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/match.c,v 1.12 2002/05/22 10:33:25 sobomax 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/plist.c,v 1.44 2002/08/12 16:15:25 sobomax 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/version.c,v 1.4 2002/08/11 13:05:30 
schweikh Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/pen.c,v 1.40 2002/05/11 04:17:55 alfred 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/msg.c,v 1.16 2002/04/01 09:39:07 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/exec.c,v 1.10 2002/04/01 09:39:07 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/str.c,v 1.14 2002/04/01 09:39:07 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/file.c,v 1.58 2002/08/25 01:00:16 obrien 
Exp $
 $FreeBSD: src/usr.sbin/pkg_install/lib/global.c,v 1.9 2002/04/01 09:39:07 obrien 
Exp $


Note you are two revisions behind on lib/file.c, and one revision behind
on add/main.c.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Problem with pkg_add and tbz files

2002-08-25 Thread Craig Rodrigues

On Sun, Aug 25, 2002 at 12:55:07PM -0700, David O'Brien wrote:
 As always, cvsup and rebuilt the piece of software in question before
 reporting a problem:

OK, I've cvsup'd, and rebuilt pkg_add, but I still get the same problem.

If I do:

 ./pkg_add -r cvsupit
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/cv
supit.tbz...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
 Done.
pkg_add: unable to open table of contents file '+CONTENTS' - not a package?


However, if I do:

./pkg_add -v -r cvsupit

It works without complaining.


Looking at the code, I applied this fix, and it got rid of my problem:


--- pkg_install/lib/file.c.orig Sun Aug 25 18:55:49 2002
+++ pkg_install/lib/file.c  Sun Aug 25 18:55:56 2002
@@ -225,7 +225,7 @@
for (fd = getdtablesize() - 1; fd = 3; --fd)
close(fd);
/* XXX: need to handle .tgz also */
-   execl(/usr/bin/tar, tar, Verbose ? -xjvf : -xzf, -,
+   execl(/usr/bin/tar, tar, Verbose ? -xjvf : -xjf, -,
(char *)0);
_exit(2);
 }


-- 
Craig Rodrigues
http://www.gis.net/~craigr
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Problem with pkg_add and tbz files

2002-08-25 Thread David O'Brien

On Sun, Aug 25, 2002 at 07:03:30PM -0400, Craig Rodrigues wrote:
 On Sun, Aug 25, 2002 at 12:55:07PM -0700, David O'Brien wrote:
  As always, cvsup and rebuilt the piece of software in question before
  reporting a problem:
 
 OK, I've cvsup'd, and rebuilt pkg_add, but I still get the same problem.
 
 If I do:
 
  ./pkg_add -r cvsupit
 Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/cv
 supit.tbz...
 gzip: stdin: not in gzip format
 tar: Child returned status 1
 tar: Error exit delayed from previous errors
  Done.
 pkg_add: unable to open table of contents file '+CONTENTS' - not a package?
 
 
 However, if I do:
 
 ./pkg_add -v -r cvsupit
 
 It works without complaining.

\me bangs head on desk.  Patch committed.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message