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
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
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)
        /* XXX: need to handle .tgz also */
-       execl("/usr/bin/tar", "tar", Verbose ? "-xjvf" : "-xzf", "-",
+       execl("/usr/bin/tar", "tar", Verbose ? "-xjvf" : "-xjf", "-",
            (char *)0);

Craig Rodrigues        

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

Reply via email to