Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 19:03:30 -0400
From:      Craig Rodrigues <rodrigc@attbi.com>
To:        freebsd-current@freebsd.org
Subject:   Re: Problem with pkg_add and tbz files
Message-ID:  <20020825190330.A1340@attbi.com>
In-Reply-To: <20020825195507.GA82354@dragon.nuxi.com>; from obrien@freebsd.org on Sun, Aug 25, 2002 at 12:55:07PM -0700
References:  <20020825113401.A265@attbi.com> <20020825154031.GA46619@dragon.nuxi.com> <20020825121550.A604@attbi.com> <20020825195507.GA82354@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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    
rodrigc@attbi.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020825190330.A1340>