Changeset 98925


Ignore:
Timestamp:
Oct 21, 2012, 2:04:07 AM (12 years ago)
Author:
ryandesign@…
Message:

php5-oracle: build 32-bit on Lion and up to avoid a crash (#31521)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/php/php5-oracle/Portfile

    r97978 r98925  
    66
    77php5extension.setup             oracle 5.3.17 bundled
     8revision                        1
    89php5extension.ini               oracle.ini
    910php5extension.extensions        oci8 pdo_oci
     
    2728
    2829use_parallel_build              yes
     30
     31if {${os.platform} == "darwin" && ${os.major} > 10} {
     32    # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
     33    supported_archs i386
     34   
     35    notes-append "
     36On OS X 10.7 Lion and later, ${subport} is only available 32-bit, but php\
     37runs 64-bit by default. To use the Oracle functions in PHP, you must start\
     38php in 32-bit mode using the arch command, i.e.:
     39
     40arch -i386 php example.php
     41
     42If using PHP via a web server, configure the web server to start 32-bit.
     43
     44Using php 64-bit while ${subport} is active will result in warning messages\
     45and the Oracle functions being unavailable.
     46"
     47}
Note: See TracChangeset for help on using the changeset viewer.