chantra / rpms / rpm

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