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.
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.
I have the same issue.
Created attachment 300147 [details, diff] gmp-5.0.3.ebuild Fixed ebuild.
Comment on attachment 300147 [details, diff] gmp-5.0.3.ebuild please post patches, not entire ebuilds
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
*** Bug 401211 has been marked as a duplicate of this bug. ***