summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-07-19 03:11:05 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-07-19 03:11:05 +0000
commita268ff21a0cce72cfcddeea3ee46b68b65a336b3 (patch)
treeed97815948255eb73926e26569c123ae0b0fff2c /eclass/php.eclass
parentputting back in ~x86 (diff)
downloadgentoo-2-a268ff21a0cce72cfcddeea3ee46b68b65a336b3.tar.gz
gentoo-2-a268ff21a0cce72cfcddeea3ee46b68b65a336b3.tar.bz2
gentoo-2-a268ff21a0cce72cfcddeea3ee46b68b65a336b3.zip
fix bug with MySQL, #24618. Add MySQL socket support.
Diffstat (limited to 'eclass/php.eclass')
-rw-r--r--eclass/php.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/php.eclass b/eclass/php.eclass
index 7203ab54bd05..0a92dbc8081b 100644
--- a/eclass/php.eclass
+++ b/eclass/php.eclass
@@ -1,7 +1,7 @@
# Copyright 2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Robin H. Johnson <robbat2@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.66 2003/07/19 03:02:34 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.67 2003/07/19 03:11:05 robbat2 Exp $
# This EBUILD is totally masked presently. Use it at your own risk. I know it
# is severely broken, but I needed to get a copy into CVS to pass around and
@@ -284,11 +284,12 @@ php_src_compile() {
use tiff || [ -n "${REQUIRETIFF}" ] && myconf="${myconf} --with-tiff-dir=/usr" LDFLAGS="${LDFLAGS} -ltiff" || myconf="${myconf} --without-tiff"
#use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql"
- if [ -n "`use mysql`" ] ; then
+ if use mysql; then
if [ -n "`mysql_config | grep '4.1'`" ] ; then
myconf="${myconf} --with-mysqli=/usr"
else
myconf="${myconf} --with-mysql=/usr"
+ myconf="${myconf} --with-mysql-sock=`mysql_config --socket`"
fi
else
myconf="${myconf} --without-mysql"