Skip to content

Commit 869221c

Browse files
committed
Build PDO OCI and OCI8 on azure
The extensions are build as shared to only check that they compile, without running tests. The OCI8 extension does not properly SKIPIF no database is available. It should be noted that if we do want to also test these, then (apart from running a database) it will also be necessary to configure with LIBS="-Wl,--disable-new-dtags" in order to force the use of RPATH instead of RUNPATH, the latter of which does not affect dlopened libraries. Using LD_LIBRARY_PATH does not mesh well with our test suite. Closes GH-6604.
1 parent daa420a commit 869221c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

azure/apt.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,13 @@ steps:
5252
firebird-dev \
5353
${{ parameters.packages }}
5454
displayName: 'APT'
55+
- script: |
56+
mkdir /opt/oracle
57+
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
58+
unzip instantclient-basiclite-linuxx64.zip
59+
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
60+
unzip instantclient-sdk-linuxx64.zip
61+
mv instantclient_*_* /opt/oracle/instantclient
62+
# Interferes with libldap2 headers.
63+
rm /opt/oracle/instantclient/sdk/include/ldap.h
64+
displayName: 'Install Oracle Instant Client'

azure/configure.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ steps:
6464
--with-pdo-odbc=unixODBC,/usr \
6565
--with-pdo-firebird \
6666
--with-pdo-dblib \
67+
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \
68+
--with-oci8=shared,instantclient,/opt/oracle/instantclient \
6769
--enable-werror \
6870
--with-config-file-path=/etc \
6971
--with-config-file-scan-dir=/etc/php.d

0 commit comments

Comments
 (0)