When I try to emerge php, I get the following error: ----- >>> emerge (1 of 10) dev-php/php-4.3.5 to / >>> md5 src_uri ;-) php-4.3.5.tar.bz2 >>> Unpacking source... xml >>> Unpacking php-4.3.5.tar.bz2 to /var/tmp/portage/php-4.3.5/work * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/dev-php/php/files/php-4.3.5-amd64hack.diff !!! ERROR: dev-php/php-4.3.5 failed. !!! Function epatch, Line 182, Exitcode 0 !!! Cannot find $EPATCH_SOURCE! ----- (I have been emerge syncing for a while now trying to get the file with no luck.) I do see a similar looking file mentioned in dev-php/php/Manifest: MD5 7515e9b1dc298a0fb1c12d35a58c265d files/php-4.3.4-amd64hack.diff 1028 ...but in the ebuild the epatch is constructed as ${FILESDIR}/${P}-amd64hack.diff - I think that when the version got bumped the filename did not. I've verified that applying the php-4.3.4-amd64hack.diff to the php-4.3.5 tree compiles and makes sucessfully (just by doing a simple-minded ./configure; make). Seems like the best thing to do would just be to hardcode the version number of the patch and then keep a lookout for it changing on amd64. I'll attach a patch to the ebuild to do that. ----- emerge --info: Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r2) ================================================================= System uname: 2.6.3-gentoo-r2 x86_64 4 Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.binarycompass.org http://gentoo.ccccom.com http://gentoo.llarian.net/ ftp://gentoo.ccccom.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X alsa amd amd64 apache2 apm arts avi berkdb crypt curl dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg junit kde libg++ libwww log4j mikmod motif mozilla moznocompose moznoirc mpeg multilib mysql ncurses nls oggvorbis opengl oss pam parse-clocks pcap pcmcia pdflib perl png postgres python qt quicktime radeon readline ruby samba sdl slang speedo speex spell ssl tcltk tcpd threads truetype wxwindows xalan xerces xml xml2 xmms xv zlib"
Created attachment 28383 [details, diff] Patch to php-4.3.5.ebuild - hardcodes value of epatch
Fixed, thanks.
I just noticed that dev-php/mod_php-4.3.5 has the same problem. I'd attach a patch but I clobbered the original. Lines 69-71 should look like this: --- if [ "${ARCH}" == "amd64" ] ; then epatch ${FILESDIR}/mod_php-4.3.4-amd64hack.diff fi --- Hope it's OK to reopen this for the second problem - don't mean to be a pest. Thanks!
Fixed in CVS, thanks!
*** Bug 46363 has been marked as a duplicate of this bug. ***
*** Bug 46391 has been marked as a duplicate of this bug. ***