the ebuild app-doc/php-docs/php-docs-20100326.ebuild tries to access "${D}" which should be "${ED}" iirc. line 51: > cp -R "${WORKDIR}"/${lang} "${D}"/usr/share/doc/${PF} || die "cp failed on ${lang}" the result is an aborted merge due to a non-existing path. changing the variable to "${ED}" fixes the issue. Reproducible: Always tested on a amd64-linux system.
Correct, it was never tested on Gentoo Prefix before (hence no KEYWORDS). I'm not surprised it is "broken"
@php: are you ok with this change to the ebuild? --- php-docs-20100326.ebuild 31 Mar 2010 22:02:32 -0000 1.1 +++ php-docs-20100326.ebuild 2 Jul 2010 14:05:19 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-doc/php-docs/php-docs-20100326.ebuild,v 1.1 2010/03/31 22:02:32 mabi Exp $ -EAPI="1" +EAPI="3" DESCRIPTION="HTML documentation for PHP" HOMEPAGE="http://www.php.net/download-docs.php" @@ -26,7 +26,7 @@ S=${WORKDIR} -src_unpack() { +src_prepare() { for lang in en ${LANGS} ; do if use linguas_${lang} ; then mkdir ${lang} @@ -39,7 +39,7 @@ pkg_preinst() { # remove broken/stale symlink created by previous ebuilds - [[ -L ${ROOT}/usr/share/php-docs ]] && rm -f "${ROOT}"/usr/share/php-docs + [[ -L ${EROOT}/usr/share/php-docs ]] && rm -f "${EROOT}"/usr/share/php-docs } src_install() { @@ -48,7 +48,7 @@ for lang in en ${LANGS} ; do if use linguas_${lang} ; then ebegin "Installing ${lang} manual, will take a while" - cp -R "${WORKDIR}"/${lang} "${D}"/usr/share/doc/${PF} || die "cp failed on ${lang}" + cp -R "${WORKDIR}"/${lang} "${ED}"/usr/share/doc/${PF} || die "cp failed on ${lang}" eend $? fi done
Sure, go ahead.
fixed. I didn't change the src_unpack step though, it seems like unpack() should be in src_unpack ;)