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

index 000db01b25455087d8b87a3da3f112bcab361245..699c1b20d0e75f5516285e47d59412031619157e 100644 (file)
@@ -31,12 +31,12 @@ sources    = %{thisapp}.tar.xz
 build
        requires
                bison
-               chrpath
                expat-devel
                glib2-devel
                libunistring-devel
                libxml2-devel
                ncurses-devel
+               patchelf
        end
 
        configure_options += \
@@ -59,7 +59,7 @@ build
                # cleanup rpaths
                for i in $(find %{BUILDROOT}%{bindir} %{BUILDROOT}%{libdir} -type f); do
                        if file ${i} | grep "ELF 64-bit" >/dev/null; then
-                               chrpath -l ${i} && chrpath --delete ${i}
+                               patchelf --remove-rpath ${i}
                        fi
                done