Blame SOURCES/rpm-4.14.3-ELF-files-strip-when-debuginfo-disabled.patch

1e84b1
diff -up rpm-4.14.3/scripts/brp-strip.orig rpm-4.14.3/scripts/brp-strip
1e84b1
--- rpm-4.14.3/scripts/brp-strip.orig	2021-02-09 14:43:35.393940550 +0100
1e84b1
+++ rpm-4.14.3/scripts/brp-strip	2021-02-09 14:43:49.459222054 +0100
1e84b1
@@ -12,9 +12,8 @@ Darwin*) exit 0 ;;
1e84b1
 esac
1e84b1
 
1e84b1
 # Strip ELF binaries
1e84b1
-for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
1e84b1
+for f in `find "$RPM_BUILD_ROOT" -type f -exec file {} \; | \
1e84b1
         grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
1e84b1
-	grep -v ' shared object,' | \
1e84b1
 	sed -n -e 's/^\(.*\):[ 	]*ELF.*, not stripped.*/\1/p'`; do
1e84b1
 	$STRIP -g "$f" || :
1e84b1
 done