[98925] trunk/dports/php/php5-oracle/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Oct 20 19:04:07 PDT 2012


Revision: 98925
          http://trac.macports.org//changeset/98925
Author:   ryandesign at macports.org
Date:     2012-10-20 19:04:07 -0700 (Sat, 20 Oct 2012)
Log Message:
-----------
php5-oracle: build 32-bit on Lion and up to avoid a crash (#31521)

Modified Paths:
--------------
    trunk/dports/php/php5-oracle/Portfile

Modified: trunk/dports/php/php5-oracle/Portfile
===================================================================
--- trunk/dports/php/php5-oracle/Portfile	2012-10-21 02:00:01 UTC (rev 98924)
+++ trunk/dports/php/php5-oracle/Portfile	2012-10-21 02:04:07 UTC (rev 98925)
@@ -5,6 +5,7 @@
 PortGroup                       php5extension 1.0
 
 php5extension.setup             oracle 5.3.17 bundled
+revision                        1
 php5extension.ini               oracle.ini
 php5extension.extensions        oci8 pdo_oci
 categories-append               databases
@@ -26,3 +27,21 @@
                                 --with-pdo-oci=instantclient,${prefix}/lib/oracle,10.1
 
 use_parallel_build              yes
+
+if {${os.platform} == "darwin" && ${os.major} > 10} {
+    # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
+    supported_archs i386
+    
+    notes-append "
+On OS X 10.7 Lion and later, ${subport} is only available 32-bit, but php\
+runs 64-bit by default. To use the Oracle functions in PHP, you must start\
+php in 32-bit mode using the arch command, i.e.:
+
+arch -i386 php example.php
+
+If using PHP via a web server, configure the web server to start 32-bit.
+
+Using php 64-bit while ${subport} is active will result in warning messages\
+and the Oracle functions being unavailable.
+"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121020/066b3deb/attachment-0001.html>


More information about the macports-changes mailing list