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