alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
f6faf3
From 09d181d78c16e1751779586c606e85c11f360407 Mon Sep 17 00:00:00 2001
f6faf3
From: Florian Festi <ffesti@redhat.com>
f6faf3
Date: Tue, 25 Jun 2019 18:04:20 +0200
f6faf3
Subject: [PATCH] Use newline as a delimiter to avoid xargs messing up file
f6faf3
 names with quotes
f6faf3
f6faf3
which is the default behaviour otherwise.
f6faf3
f6faf3
Fixes rhbz#1721348
f6faf3
---
f6faf3
 scripts/brp-strip-static-archive | 2 +-
f6faf3
 1 file changed, 1 insertion(+), 1 deletion(-)
f6faf3
f6faf3
diff --git a/scripts/brp-strip-static-archive b/scripts/brp-strip-static-archive
f6faf3
index 13d9a098b..f7fb26b87 100755
f6faf3
--- a/scripts/brp-strip-static-archive
f6faf3
+++ b/scripts/brp-strip-static-archive
f6faf3
@@ -15,4 +15,4 @@ esac
f6faf3
 # Strip static libraries.
f6faf3
 find "$RPM_BUILD_ROOT" -type f | \
f6faf3
     grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
f6faf3
-    xargs -r -P$NCPUS -n32 sh -c "file \"\$@\" | sed 's/:  */: /' | grep 'current ar archive' | sed -n -e 's/^\(.*\):[  ]*current ar archive/\1/p' | xargs -I\{\} $STRIP -g \{\}" ARG0
f6faf3
+    xargs -d '\n' -r -P$NCPUS -n32 sh -c "file \"\$@\" | sed 's/:  */: /' | grep 'current ar archive' | sed -n -e 's/^\(.*\):[  ]*current ar archive/\1/p' | xargs -d '\n' -I\{\} $STRIP -g \{\}" ARG0
f6faf3
-- 
f6faf3
2.21.0
f6faf3