Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101035 - Unpack failures can escape detection
Summary: Unpack failures can escape detection
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-08-01 15:52 UTC by Nicholas Jones (RETIRED)
Modified: 2006-02-22 23:23 UTC (History)
1 user (show)

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


Attachments
ebuild.sh-pipe-fix.patch (ebuild-pipe-fix.patch,916 bytes, patch)
2005-08-09 04:26 UTC, Brian Harring (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Jones (RETIRED) gentoo-dev 2005-08-01 15:52:27 UTC
>>> Unpacking svninfo-0.2.1.tar.bz2 to /var/tmp/portage/svninfo-0.2.1/work
bzip2: /nfs/share/distfiles/svninfo-0.2.1.tar.bz2 is not a bzip2 file.
/usr/portage/eclass/base.eclass: line 35: cd:
/var/tmp/portage/svninfo-0.2.1/work/svninfo: No such file or directory
>>> Source unpacked.


Portage 2.0.51.22-r2 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r1,
2.6.11-gentoo-r6 x86_64)
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-08-09 03:39:57 UTC
state the package name at the very least...
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-08-09 03:53:08 UTC
#@$*
nevermind, found it.
bzip2 -dc "${file}" | tar xf - ${tarvars} || die "blah"
^^^ bug.
false | true || echo "this should get called, but never does"
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-08-09 04:04:30 UTC
Kito, what's the state of zsh regarding $PIPESTATUS and/or set -o pipefail?
Anything coming down the line regarding it?

Would rather a solution that doesn't screw over alt. shells people are using,
but this needs a fixin...
Comment 4 Brian Harring (RETIRED) gentoo-dev 2005-08-09 04:26:32 UTC
Created attachment 65515 [details, diff]
ebuild.sh-pipe-fix.patch

this'll fix it...
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-10-06 06:09:34 UTC
Released in portage-2.0.53_rc4 
Comment 6 Zac Medico gentoo-dev 2006-02-22 23:23:46 UTC
This is fixed in 2.0.53 and above.