From 3994a93eea904c62d810e4c11d4248c168ec3e01 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 21 Mar 2023 20:33:36 +0100 Subject: [PATCH] libldb: Switch to patchelf to remove the RPATH Signed-off-by: Stefan Schantl --- libldb/libldb.nm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2