Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23809 - portage-2.0.48-r2 fails to unpack tbz2 and tar.bz2
Summary: portage-2.0.48-r2 fails to unpack tbz2 and tar.bz2
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High critical
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-01 07:35 UTC by Alastair Tse (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Tse (RETIRED) gentoo-dev 2003-07-01 07:35:17 UTC
debug output from emerge xchat:

+ echo '>>> Unpacking xchat-2.0.3.tar.bz2 to
/fire/1/p/portage/xchat-2.0.3/work'>>> Unpacking xchat-2.0.3.tar.bz2 to
/fire/1/p/portage/xchat-2.0.3/work
++ echo xchat-2.0.3.tar.bz2
++ sed 's:.*\.\(tar\)\.[a-zA-Z0-9]*:\1:'
+ y=tar
+ '[' tar == tar ']'
+ bzip2 -dc /usr/portage/distfiles/xchat-2.0.3.tar.bz2
+ tar --no-same-owner -xf /usr/portage/distfiles/xchat-2.0.3.tar.bz2
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors
 
bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: Broken pipe
        Input file = /usr/portage/distfiles/xchat-2.0.3.tar.bz2, output file =
(stdout)
+ diefunc unpack 294 2 'failure unpacking xchat-2.0.3.tar.bz2'
+ local funcname=unpack lineno=294 exitcode=2

and then from /usr/lib/portage/bin/ebuild.sh's unpack() function:

         tbz2)
            bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf ${DISTDIR}/${x} ||
die "$myfail"

[snip..]
        bz2)
            if [ "${y}" == "tar" ]; then
               bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf ${DISTDIR}/${x} ||
die "$myfail"


in both cases, the "tar" end of the pipe should be reading from stdin instead of
a file. eg:

bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -x || die "$myfail"


Reproducible: Always
Steps to Reproduce:
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-07-02 05:55:16 UTC
fixed in -r3. closing this.