# emerge -u world Calculating world dependencies ...done! >>> emerge (1 of 3) dev-libs/commonc++-1.9.7-r3 to / >>> md5 src_uri ;-) commonc++-1.9.7.tar.gz >>> md5 src_uri ;-) commonc++_1.9.7-1.diff.gz >>> Unpacking source... >>> Unpacking commonc++-1.9.7.tar.gz to /var/tmp/portage/commonc++-1.9.7-r3/work >>> Unpacking commonc++_1.9.7-1.diff.gz to /var/tmp/portage/commonc++-1.9.7-r3/work * Applying commmonc++-0.1.patch... [ ok ] !!! ERROR: dev-libs/commonc++-1.9.7-r3 failed. !!! Function src_unpack, Line 25, Exitcode 1 !!! patch2 failed
ebuild is bad : at line 25 of /usr/portage/dev-libs/commonc++/commonc++-1.9.7-r3.ebuild change use ppc && epatch ${DISTDIR}/commonc++_1.9.7-1.diff.gz || die "patch2 failed" into use ppc && (epatch ${DISTDIR}/commonc++_1.9.7-1.diff.gz || die "patch2 failed") watch the () ! and it'll build fine new --> confirmed and --> resolved once ebuild is fixed
The "fix" from Arnaud Burlet worked for me as well.
Yup, good for me too.
wrong category
I think it's better to use something like: if [ `use ppc` ] ; then epatch ${DISTDIR}/commonc++_1.9.7-1.diff.gz || die "patch2 failed" fi Using "( )" is bad since it makes the die command redundant. This means that if the patch ever fails then emerge will not stop. After setting things up so the patch would fail: * Applying commmonc++-0.1.patch... [ ok ] * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/distfiles/Qcommonc++_1.9.7-1.diff.gz !!! ERROR: dev-libs/commonc++-1.9.7-r3 failed. !!! Function epatch, Line 214, Exitcode 0 !!! Cannot find $EPATCH_SOURCE! >>> Source unpacked. creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu .....
in cvs