diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2004-05-28 21:34:45 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2004-05-28 21:34:45 +0000 |
commit | 5fbdda80c1daf3394552b99d9c6004150ca07dcd (patch) | |
tree | 094f53275be21a88b66e8f3fd0ed3d94a3ff09fe /eclass/php-sapi.eclass | |
parent | ~amd64 (Manifest recommit) (diff) | |
download | gentoo-2-5fbdda80c1daf3394552b99d9c6004150ca07dcd.tar.gz gentoo-2-5fbdda80c1daf3394552b99d9c6004150ca07dcd.tar.bz2 gentoo-2-5fbdda80c1daf3394552b99d9c6004150ca07dcd.zip |
fix bugs 50991, 49420.
Diffstat (limited to 'eclass/php-sapi.eclass')
-rw-r--r-- | eclass/php-sapi.eclass | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/eclass/php-sapi.eclass b/eclass/php-sapi.eclass index 10b3623e34ff..b7d548f46194 100644 --- a/eclass/php-sapi.eclass +++ b/eclass/php-sapi.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.27 2004/05/27 21:34:25 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.28 2004/05/28 21:34:45 robbat2 Exp $ # Author: Robin H. Johnson <robbat2@gentoo.org> inherit eutils flag-o-matic @@ -36,6 +36,10 @@ if [ "${PHPSAPI}" != "cli" ]; then SRC_URI="${SRC_URI} mirror://gentoo/php-4.3.2-fopen-url-secure.patch" fi +# Patch for bug 50991, 49420 +# Make sure the correct include_path is used. +SRC_URI="${SRC_URI} mirror://gentoo/php-4.3.6-includepath.diff http://dev.gentoo.org/~robbat2/distfiles/php-4.3.6-includepath.diff" + [ "${PV//4.3.6}" != "${PV}" ] && SRC_URI="${SRC_URI} http://www.apache.org/~jorton/php-4.3.6-pcrealloc.patch" # Where we work @@ -165,14 +169,14 @@ PHP_INSTALLTARGETS="${PHP_INSTALLTARGETS} install-modules install-programs" # provided by PHP Provider: # install-pear install-build install-headers install-programs # for use by other ebuilds: -# install-cli install-sapi install-modules install-programs +# install-sapi install-modules install-programs # # all ebuilds should have install-programs, and then delete everything except # php-config.${PN} # These are quick fixups for older ebuilds that didn't have PHPSAPI defined. -[ -z "${PHPSAPI}" ] && [ "${PN}" = "php" ] && PHPSAPI="cli" -if [ -z "${PHPSAPI}" ] && [ "${PN}" = "mod_php" ]; then +[ -z "${PHPSAPI}" -a "${PN}" = "php" ] && PHPSAPI="cli" +if [ -z "${PHPSAPI}" -a "${PN}" = "mod_php" ]; then use apache2 && PHPSAPI="apache2" || PHPSAPI="apache1" fi @@ -182,6 +186,7 @@ if [ -z "${PHPSAPI}" ]; then eerror "${msg}" die "${msg}" fi + # build the destination and php.ini detail PHPINIDIRECTORY="/etc/php/${PHPSAPI}-php${PHPMAJORVER}" PHPINIFILENAME="php.ini" @@ -466,7 +471,10 @@ php-sapi_src_compile() { --enable-inline-optimization \ --enable-track-vars \ --enable-trans-sid \ - --enable-versioning \ + --enable-versioning" + + einfo "Using INI file: ${PHPINIDIRECTORY}/${PHPINIFILENAME}" + myconf="${myconf} \ --with-config-file-path=${PHPINIDIRECTORY}" php-sapi_is_providerbuild || myconf="${myconf} --without-pear" @@ -551,6 +559,10 @@ php-sapi_src_install() { patch ${phpinisrc} <${DISTDIR}/php-4.3.2-fopen-url-secure.patch fi + # Patch for bug 50991, 49420 + # Make sure the correct include_path is used. + patch ${phpinisrc} <${DISTDIR}/php-4.3.6-includepath.diff + # A lot of ini file funkiness insinto ${PHPINIDIRECTORY} newins ${phpinisrc} ${PHPINIFILENAME} |