Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401161 - dev-libs/gmp-5.0.3 with USE=doc fails unpack
Summary: dev-libs/gmp-5.0.3 with USE=doc fails unpack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 401211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-28 11:03 UTC by Marien Zwart (RETIRED)
Modified: 2012-01-30 12:11 UTC (History)
3 users (show)

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


Attachments
gmp-5.0.3.ebuild (gmp-5.0.3.ebuild,2.61 KB, patch)
2012-01-28 15:22 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***