(travis) Fix unixodbc-dev overwrite on newer CI images
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 10_before_install.bash
index 157320e..547fa8b 100755 (executable)
@@ -124,9 +124,11 @@ if [[ "$CLEANTEST" != "true" ]]; then
     "sudo dpkg -i $( echo ${manual_debs[@]/#/$CACHE_DIR/*/*/} ) || sudo bash -c 'source maint/travis-ci_scripts/common.bash && apt_install -f'"
 
 
-  # needs to happen separately and *after* db2exc, as the former shits all over /usr/include (wtf?!)
-  # for more info look at /opt/ibm/db2/V9.7/instance/db2iutil :: create_links()
-  apt_install unixodbc-dev
+  # Needs to happen separately and *after* db2exc, as the former shits all over /usr/include (wtf?!)
+  # For more info look at /opt/ibm/db2/V9.7/instance/db2iutil :: create_links()
+  # The --reinstall is there in case it was already in place and got destroyed
+  # (this is the case on newer trusty images)
+  apt_install --reinstall unixodbc-dev
 
 
 ### config memcached
@@ -186,7 +188,6 @@ if [[ "$CLEANTEST" != "true" ]]; then
         cd "$(mktemp -d)"
         wget -qO- https://github.com/dbsrgits/Firebird-ODBC-driver/archive/2.0.2.153.tar.gz | tar -zx --strip-components 1
         cd Builds/Gcc.lin
-        perl -p -i -e "s|/usr/lib64|/usr/lib/x86_64-linux-gnu|g" ../makefile.environ
         make -f makefile.linux
         sudo make -f makefile.linux install
       '