From 0673f33a6ccebfaf35f08035fe7ea93d760bf189 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Jul 25 2018 16:40:46 +0000 Subject: Fix check-rpath which complains about /usr/lib64 in RPATH of some binaries Use the recipe in here to fix the generated `libtool` script: https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath Unfortunately, the configure script in numactl (both 2.0.11 and 2.0.12) does not recognize the --disable-rpath flag yet. Signed-off-by: Filipe Brandenburger --- diff --git a/numactl.spec b/numactl.spec index 52d944b..aa0508e 100644 --- a/numactl.spec +++ b/numactl.spec @@ -52,6 +52,10 @@ cp %{SOURCE1} %{SOURCE2} build-aux/ %build %configure --prefix=/usr --libdir=%{_libdir} +# Using recipe to fix rpaths, from here: +# https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath +sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make clean make CFLAGS="$RPM_OPT_FLAGS -I." @@ -91,6 +95,9 @@ make DESTDIR=$RPM_BUILD_ROOT install %{_mandir}/man3/*.3* %changelog +* Wed Jul 25 2018 Filipe Brandenburger +- Fix check-rpaths warning about including /usr/lib64 in RPATH of the binaries. + * Fri Jul 13 2018 Fedora Release Engineering - 2.0.11-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild