diff options
-rw-r--r-- | var/spack/repos/builtin/packages/r-rmariadb/configure_add_rpath.patch | 13 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/r-rmariadb/package.py | 4 |
2 files changed, 2 insertions, 15 deletions
diff --git a/var/spack/repos/builtin/packages/r-rmariadb/configure_add_rpath.patch b/var/spack/repos/builtin/packages/r-rmariadb/configure_add_rpath.patch deleted file mode 100644 index a5c865400f..0000000000 --- a/var/spack/repos/builtin/packages/r-rmariadb/configure_add_rpath.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/configure b/configure -index 6c0f43c..bd7f627 100755 ---- a/configure -+++ b/configure -@@ -29,7 +29,7 @@ fi - if [ "$INCLUDE_DIR" ] || [ "$LIB_DIR" ]; then - echo "Found INCLUDE_DIR and/or LIB_DIR!" - PKG_CFLAGS="-I$INCLUDE_DIR $PKG_CFLAGS" -- PKG_LIBS="-L$LIB_DIR $PKG_LIBS" -+ PKG_LIBS="-L$LIB_DIR -Wl,-rpath,$LIB_DIR $PKG_LIBS" - elif [ "$PKGCONFIG_CFLAGS" ] || [ "$PKGCONFIG_LIBS" ]; then - echo "Found mysql_config/mariadb_config cflags and libs!" - PKG_CFLAGS=${PKGCONFIG_CFLAGS} diff --git a/var/spack/repos/builtin/packages/r-rmariadb/package.py b/var/spack/repos/builtin/packages/r-rmariadb/package.py index 251e8c0be9..3158031c5b 100644 --- a/var/spack/repos/builtin/packages/r-rmariadb/package.py +++ b/var/spack/repos/builtin/packages/r-rmariadb/package.py @@ -30,8 +30,8 @@ class RRmariadb(RPackage): depends_on('r-plogr', type=('build', 'run')) depends_on('mariadb-client') - patch('configure_add_rpath.patch') - + # Set the library explicitly to prevent configure from finding a system + # mysql-client def configure_vars(self): lib_dir = self.spec['mariadb-client'].prefix.lib.mariadb inc_dir = self.spec['mariadb-client'].prefix.include.mariadb |