From e49d0834bd0804375719d89742570b88d77125aa Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 15:21:51 +0000 Subject: Apply patch rpm-4.14.3-ELF-files-strip-when-debuginfo-disabled.patch patch_name: rpm-4.14.3-ELF-files-strip-when-debuginfo-disabled.patch present_in_specfile: true location_in_specfile: 36 --- diff --git a/scripts/brp-strip b/scripts/brp-strip index 5e64566..b8be93e 100755 --- a/scripts/brp-strip +++ b/scripts/brp-strip @@ -12,9 +12,8 @@ Darwin*) exit 0 ;; esac # Strip ELF binaries -for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \ +for f in `find "$RPM_BUILD_ROOT" -type f -exec file {} \; | \ grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \ - grep -v ' shared object,' | \ sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p'`; do $STRIP -g "$f" || : done