On Tuesday 05 August 2003 04:28, Marius Mauch wrote: > On 08/04/03 splite-gentoo@sigint.cs.purdue.edu wrote: > > On Mon, Aug 04, 2003 at 03:32:28PM +0200, Marius Mauch wrote: > > > It's fixed in current 49_pre versions. And only using bunzip2 won't > > > work as it only decompresses the package, but it does not untar it. > > > You have to send the uncompressed tarball to tar. The fixed line is > > > notok=spawn("bzip2 -dc "+mytbz2+" | tar xpf -",free=1) > > > > Why not: > > notok=spawn("tar xpjf "+mytbz2,free=1) > > I didn't fix it so I can only guess: the -j option for tar is a GNU > extension and portage aims at OS compatibility with *BSD, MacOS and > cygwin, these systems are not using GNU tar by default. The pipe > solutions should work on all these systems. It is actually an unofficial extension that has the same meaning as the z option except it is for bz2. For portability one should use "--use-compress-program bzip2" though, which is exactly what it is a shorthand for. Paul -- Paul de Vrieze Researcher Mail: pauldv@cs.kun.nl Homepage: http://www.cs.kun.nl/~pauldv