[csw-devel] SF.net SVN: gar:[14385] csw/mgar/pkg/php5/trunk
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Sun Apr 24 02:46:06 CEST 2011
Revision: 14385
http://gar.svn.sourceforge.net/gar/?rev=14385&view=rev
Author: bdwalton
Date: 2011-04-24 00:46:05 +0000 (Sun, 24 Apr 2011)
Log Message:
-----------
php5/trunk: add a modulation specific patch to force 32-bit postgres pg_config on sparc
Modified Paths:
--------------
csw/mgar/pkg/php5/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/php5/trunk/files/0003-Force-the-PDO-pgsql-checks-to-use-32-bit-pg_config.patch
Modified: csw/mgar/pkg/php5/trunk/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/Makefile 2011-04-22 20:03:44 UTC (rev 14384)
+++ csw/mgar/pkg/php5/trunk/Makefile 2011-04-24 00:46:05 UTC (rev 14385)
@@ -45,7 +45,12 @@
PATCHFILES += 0001-Strip-usr-ucblib-references.patch
# this one is filed upstream: http://bugs.php.net/bug.php?id=54318
PATCHFILES += 0002-Correct-non-portable-use-of-grep-q-in-configure.patch
+# technically this is only required in the ap2 modulation where we build the
+# postgres stuff, but protect the cgi modulation too
+PATCHFILES_isa-sparcv8-sapi-cgi += 0003-Force-the-PDO-pgsql-checks-to-use-32-bit-pg_config.patch
+PATCHFILES_isa-sparcv8-sapi-ap2 += 0003-Force-the-PDO-pgsql-checks-to-use-32-bit-pg_config.patch
+
BUILD_DEP_PKGS += CSWlibgdbm-dev CSWlibidn-dev CSWlibgd-dev CSWcoreutils
BUILD_DEP_PKGS += CSWlibxml2-dev CSWexpat CSWzlib CSWcurldevel CSWjpeg
BUILD_DEP_PKGS += CSWpng CSWt1lib CSWxpm CSWlibgdbm-dev CSWlibgmp
Added: csw/mgar/pkg/php5/trunk/files/0003-Force-the-PDO-pgsql-checks-to-use-32-bit-pg_config.patch
===================================================================
--- csw/mgar/pkg/php5/trunk/files/0003-Force-the-PDO-pgsql-checks-to-use-32-bit-pg_config.patch (rev 0)
+++ csw/mgar/pkg/php5/trunk/files/0003-Force-the-PDO-pgsql-checks-to-use-32-bit-pg_config.patch 2011-04-24 00:46:05 UTC (rev 14385)
@@ -0,0 +1,35 @@
+From f90347108abfe42140e3a87c5a5e6c364bc34625 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Sat, 23 Apr 2011 23:52:16 +0200
+Subject: [PATCH] Force the PDO pgsql checks to use 32-bit pg_config
+
+On sparc, we have 32 and 64-bit pg_config binaries. On i386, we only
+have 32-bit. We need to force the use of 32-bit for sparc so it uses
+the correct path when linking the test binaries, etc.
+
+This patch should not be applied on i386 as it will break pg_config
+detection there.
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ configure | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index 503369a..753536e 100755
+--- a/configure
++++ b/configure
+@@ -73005,8 +73005,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then
+ echo $ac_n "checking for pg_config""... $ac_c" 1>&6
+ echo "configure:73044: checking for pg_config" >&5
+ for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
+- if test -x $i/pg_config; then
+- PG_CONFIG="$i/pg_config"
++ if test -x $i/pg_config32; then
++ PG_CONFIG="$i/pg_config32"
+ break;
+ fi
+ done
+--
+1.7.3.2
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list