Gentoo Archives: gentoo-dev

From: Marius Mauch <genone@×××××××××××××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] emerge harmless buglet?
Date: Mon, 04 Aug 2003 13:32:34
Message-Id: 20030804153228.7f0ca3d5.genone@genone.homeip.net
In Reply to: [gentoo-dev] emerge harmless buglet? by Jani Monoses
1 On 08/04/03 Jani Monoses wrote:
2
3 > With latest stable portage I always get errors like below while
4 > emerging packages.
5 > Changing a line in portage.py makes this go away.Whether spawn is not
6 > supposed to be used with a multiple commands piping eachother I don't
7 > know but anyway isn't using bunzip2 easier ?
8 >
9 > at line 4775 :
10 > print ">>> extracting",mypkg
11 > # notok=spawn("cat "+mytbz2+"| bzip2 -dq | tar xpf -",free=1)
12 > notok=spawn("bunzip2 -q "+mytbz2, free=1)
13 >
14 > The borken pipe error is there at every emerge.
15 >
16 > i.e
17 > >>> extracting info
18 > >>> extracting gcc-config-1.3.3-r1
19 > cat: write error: Broken pipe
20 > >>> Merging sys-devel/gcc-config-1.3.3-r1 to /
21
22
23 It's fixed in current 49_pre versions. And only using bunzip2 won't work
24 as it only decompresses the package, but it does not untar it. You have
25 to send the uncompressed tarball to tar. The fixed line is
26 notok=spawn("bzip2 -dc "+mytbz2+" | tar xpf -",free=1)
27
28 Marius
29
30 --
31 Public Key at http://www.genone.de/info/gpg-key.pub
32
33 In the beginning, there was nothing. And God said, 'Let there be
34 Light.' And there was still nothing, but you could see a bit better.
35
36 --
37 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] emerge harmless buglet? splite-gentoo@××××××××××××××××.edu