Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] emerge harmless buglet?
Date: Tue, 05 Aug 2003 09:00:47
Message-Id: 200308051100.44375.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] emerge harmless buglet? by Marius Mauch
1 On Tuesday 05 August 2003 04:28, Marius Mauch wrote:
2 > On 08/04/03 splite-gentoo@××××××××××××××××.edu wrote:
3 > > On Mon, Aug 04, 2003 at 03:32:28PM +0200, Marius Mauch wrote:
4 > > > It's fixed in current 49_pre versions. And only using bunzip2 won't
5 > > > work as it only decompresses the package, but it does not untar it.
6 > > > You have to send the uncompressed tarball to tar. The fixed line is
7 > > > notok=spawn("bzip2 -dc "+mytbz2+" | tar xpf -",free=1)
8 > >
9 > > Why not:
10 > > notok=spawn("tar xpjf "+mytbz2,free=1)
11 >
12 > I didn't fix it so I can only guess: the -j option for tar is a GNU
13 > extension and portage aims at OS compatibility with *BSD, MacOS and
14 > cygwin, these systems are not using GNU tar by default. The pipe
15 > solutions should work on all these systems.
16
17 It is actually an unofficial extension that has the same meaning as the z
18 option except it is for bz2. For portability one should use
19 "--use-compress-program bzip2" though, which is exactly what it is a
20 shorthand for.
21
22 Paul
23
24 --
25 Paul de Vrieze
26 Researcher
27 Mail: pauldv@××××××.nl
28 Homepage: http://www.cs.kun.nl/~pauldv