From owner-freebsd-current Sun Aug 25 15:25:57 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71D7437B400 for ; Sun, 25 Aug 2002 15:25:54 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 970E543E4A for ; Sun, 25 Aug 2002 15:25:52 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.5/8.12.5) with ESMTP id g7PN3VuH001477 for ; Sun, 25 Aug 2002 19:03:32 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.5/8.12.5/Submit) id g7PN3UPb001476 for freebsd-current@freebsd.org; Sun, 25 Aug 2002 19:03:30 -0400 (EDT) Date: Sun, 25 Aug 2002 19:03:30 -0400 From: Craig Rodrigues To: freebsd-current@freebsd.org Subject: Re: Problem with pkg_add and tbz files Message-ID: <20020825190330.A1340@attbi.com> References: <20020825113401.A265@attbi.com> <20020825154031.GA46619@dragon.nuxi.com> <20020825121550.A604@attbi.com> <20020825195507.GA82354@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020825195507.GA82354@dragon.nuxi.com>; from obrien@freebsd.org on Sun, Aug 25, 2002 at 12:55:07PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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