Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 401161

Summary: dev-libs/gmp-5.0.3 with USE=doc fails unpack
Product: Gentoo Linux Reporter: Marien Zwart (RETIRED) <marienz>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: ansla80, ed, uzytkownik2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gmp-5.0.3.ebuild

Description Marien Zwart (RETIRED) gentoo-dev 2012-01-28 11:03:35 UTC
gmp-5.0.3 changed from "unpack ${MY_P}.tar.bz2" to "xz -dc "${DISTDIR}/${A}" | tar xof - || die". But if USE=doc is set ${A} contains not just the tarball but also gmp-man-5.0.3.pdf, causing src_unpack to fail like this:

>>> Unpacking source...
xz: /var/tmp/portage/dev-libs/gmp-5.0.3/distdir/gmp-5.0.3.tar.xz gmp-man-5.0.3.pdf: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: dev-libs/gmp-5.0.3 failed (unpack phase):

The ebuild should probably just unpack "${DISTDIR}/${MY_P}.tar.xz", mirroring the previous ebuild.
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2012-01-28 11:05:37 UTC
Err, I meant "pass "${DISTDIR}/${MY_P}.tar.xz" to xz". The change from unpack to xz is correct, IIRC: this is an older EAPI ebuild and its unpack shouldn't be given xz archives.
Comment 2 Juergen Rose 2012-01-28 11:09:31 UTC
I have the same issue.
Comment 3 Ed Catmur 2012-01-28 15:22:27 UTC
Created attachment 300147 [details, diff]
gmp-5.0.3.ebuild

Fixed ebuild.
Comment 4 SpanKY gentoo-dev 2012-01-28 21:01:55 UTC
Comment on attachment 300147 [details, diff]
gmp-5.0.3.ebuild

please post patches, not entire ebuilds
Comment 5 SpanKY gentoo-dev 2012-01-28 21:06:37 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix unpack with USE=doc
http://sources.gentoo.org/dev-libs/gmp/gmp-5.0.3.ebuild?r1=1.1&r2=1.2
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-30 12:11:43 UTC
*** Bug 401211 has been marked as a duplicate of this bug. ***