Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46260 - dev-php/php-4.3.5 fails to emerge on amd64 - missing patch
Summary: dev-php/php-4.3.5 fails to emerge on amd64 - missing patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 46363 46391 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-30 10:44 UTC by thither
Modified: 2004-03-31 21:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to php-4.3.5.ebuild - hardcodes value of epatch (patch-php_4.3.5-ebuild-amd64.diff,394 bytes, patch)
2004-03-30 10:48 UTC, thither
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thither 2004-03-30 10:44:25 UTC
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"
Comment 1 thither 2004-03-30 10:48:31 UTC
Created attachment 28383 [details, diff]
Patch to php-4.3.5.ebuild - hardcodes value of epatch
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2004-03-30 11:29:00 UTC
Fixed, thanks.
Comment 3 thither 2004-03-30 11:45:51 UTC
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!
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2004-03-31 05:17:34 UTC
Fixed in CVS, thanks!
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2004-03-31 21:44:23 UTC
*** Bug 46363 has been marked as a duplicate of this bug. ***
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2004-03-31 21:44:37 UTC
*** Bug 46391 has been marked as a duplicate of this bug. ***