'USE=doc emerge =sys-devel/prelink-20151030' fails in install phase: 'dodoc failed' (no such file or directory). In the ebuild in src_install(), the line use doc && dodoc "${WORKDIR}"/prelink.pdf should read use doc && dodoc "${DISTDIR}"/prelink.pdf instead. The build completes with that fix applied.
I'd almost have submitted a duplicate of this. Perhaps it would be a good idea to mention prelink.pdf in the title. And I'll quote relevant parts of the build log, to help people searching for that. >>> Unpacking source... >>> Unpacking prelink-cross-20151030.tar.bz2 to /var/tmp/portage/sys-devel/prelink-20151030/work >>> Unpacking prelink.pdf to /var/tmp/portage/sys-devel/prelink-20151030/work unpack prelink.pdf: file format not recognized. Ignoring. >>> Source unpacked in /var/tmp/portage/sys-devel/prelink-20151030/work ... make[1]: Leaving directory '/var/tmp/portage/sys-devel/prelink-20151030/work/prelink-cross-20151030' install: cannot stat '/var/tmp/portage/sys-devel/prelink-20151030/work/prelink.pdf': No such file or directory !!! dodoc: /var/tmp/portage/sys-devel/prelink-20151030/work/prelink.pdf does not exist * ERROR: sys-devel/prelink-20151030::gentoo failed (install phase): * dodoc failed
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57eb3b62e67cbc563075f575cb278b3e92c9696d commit 57eb3b62e67cbc563075f575cb278b3e92c9696d Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-01-27 22:28:39 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-01-27 22:28:52 +0000 sys-devel/prelink: fix USE=doc failure, bug #578948 Fix by Alexander Miller. Reported-by: Alexander Miller Closes: https://bugs.gentoo.org/578948 Package-Manager: Portage-2.3.58, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/prelink/prelink-20151030.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)