redhat-rpm-config/redhat-rpm-config-9.0.3-brpssa-speedup.patch
Adam Jackson 621c75fd0f - redhat-rpm-config-9.0.4-brpssa-speedup.patch: When looking for static
archives, only run file(1) on files named *.a. (#517101)
2009-08-13 17:24:04 +00:00

13 lines
651 B
Diff

diff -up redhat-rpm-config-9.0.3/brp-strip-static-archive.jx redhat-rpm-config-9.0.3/brp-strip-static-archive
--- redhat-rpm-config-9.0.3/brp-strip-static-archive.jx 2008-05-06 19:08:20.000000000 -0400
+++ redhat-rpm-config-9.0.3/brp-strip-static-archive 2009-08-12 10:52:07.000000000 -0400
@@ -8,7 +8,7 @@ fi
[ -z "$STRIP" ] && STRIP=strip
# Strip static libraries.
-for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \
+for f in `find $RPM_BUILD_ROOT -name \*.a -a -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep 'current ar archive' | \
sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p'`; do