From 2d2ba482a77ac385b318afe2f4db22ceaad70d76 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Jul 2012 17:38:37 +0000 Subject: backported from rpm.org (Jeff Tickle , 2011-09-06) $RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843) - This patch adds quotes around $RPM_BUILD_ROOT in places that I noticed they were missing, and attempts to handle some of the problems that can occur when looping over the output of find. --- brp-strip-static-archive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'brp-strip-static-archive') diff --git a/brp-strip-static-archive b/brp-strip-static-archive index 6831239..366d597 100755 --- a/brp-strip-static-archive +++ b/brp-strip-static-archive @@ -5,7 +5,7 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then fi # Strip static libraries. -for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \ +for f in `find "$RPM_BUILD_ROOT" -type f -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 -- cgit v1.2.1