From: Stefan Schantl Date: Tue, 21 Mar 2023 19:33:36 +0000 (+0100) Subject: libldb: Switch to patchelf to remove the RPATH X-Git-Url: http://git.ipfire.org/?p=ipfire-3.x.git;a=commitdiff_plain;h=3994a93eea904c62d810e4c11d4248c168ec3e01 libldb: Switch to patchelf to remove the RPATH Signed-off-by: Stefan Schantl --- diff --git a/libldb/libldb.nm b/libldb/libldb.nm index 8567546a8..fc242ef82 100644 --- a/libldb/libldb.nm +++ b/libldb/libldb.nm @@ -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