]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libldb: Switch to patchelf to remove the RPATH
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Mar 2023 19:33:36 +0000 (20:33 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Mar 2023 19:33:36 +0000 (20:33 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
libldb/libldb.nm

index 8567546a8f0a5fb41fdb31879ce4a6e52a8afc9f..fc242ef82dc04ad524d1a59425e4ef2405e18f4b 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libldb
 version    = 2.6.1
-release    = 1.1
+release    = 2
 thisapp    = ldb-%{version}
 
 groups     = System/Libraries
@@ -22,7 +22,6 @@ source_dl  = https://download.samba.org/pub/ldb/
 
 build
        requires
-               chrpath
                cmocka-devel
                docbook-utils
                docbook-xsl
@@ -32,6 +31,7 @@ build
                libtirpc-devel
                libxcrypt-devel
                lmdb-devel >= 0.9.16
+               patchelf
                popt-devel
                python3-devel
                python3-talloc
@@ -52,7 +52,8 @@ build
 
        install_cmds
                # Remove rpath from binaries.
-               chrpath --delete %{BUILDROOT}%{bindir}/*
+               find %{BUILDROOT}%{bindir} -type f -executable \
+                       -exec patchelf --remove-rpath {} \;
        end
 end