alexk / rpms / rpm

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