From 869221cfb69cf8f4d8476cc392fd3c258e87f6f1 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 14 Jan 2021 16:24:29 +0100 Subject: [PATCH] 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. --- azure/apt.yml | 10 ++++++++++ azure/configure.yml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/azure/apt.yml b/azure/apt.yml index 8c21d1c45f5..9166509dcca 100644 --- a/azure/apt.yml +++ b/azure/apt.yml @@ -52,3 +52,13 @@ steps: firebird-dev \ ${{ parameters.packages }} displayName: 'APT' + - script: | + mkdir /opt/oracle + wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip + unzip instantclient-basiclite-linuxx64.zip + wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip + unzip instantclient-sdk-linuxx64.zip + mv instantclient_*_* /opt/oracle/instantclient + # Interferes with libldap2 headers. + rm /opt/oracle/instantclient/sdk/include/ldap.h + displayName: 'Install Oracle Instant Client' diff --git a/azure/configure.yml b/azure/configure.yml index 2f7b28e15d7..9869de514e8 100644 --- a/azure/configure.yml +++ b/azure/configure.yml @@ -64,6 +64,8 @@ steps: --with-pdo-odbc=unixODBC,/usr \ --with-pdo-firebird \ --with-pdo-dblib \ + --with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \ + --with-oci8=shared,instantclient,/opt/oracle/instantclient \ --enable-werror \ --with-config-file-path=/etc \ --with-config-file-scan-dir=/etc/php.d