michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 5 months ago
Clone

Blame SOURCES/0001-Use-newline-as-a-delimiter-to-avoid-xargs-messing-up.patch

ed184b
From 09d181d78c16e1751779586c606e85c11f360407 Mon Sep 17 00:00:00 2001
ed184b
From: Florian Festi <ffesti@redhat.com>
ed184b
Date: Tue, 25 Jun 2019 18:04:20 +0200
ed184b
Subject: [PATCH] Use newline as a delimiter to avoid xargs messing up file
ed184b
 names with quotes
ed184b
ed184b
which is the default behaviour otherwise.
ed184b
ed184b
Fixes rhbz#1721348
ed184b
---
ed184b
 scripts/brp-strip-static-archive | 2 +-
ed184b
 1 file changed, 1 insertion(+), 1 deletion(-)
ed184b
ed184b
diff --git a/scripts/brp-strip-static-archive b/scripts/brp-strip-static-archive
ed184b
index 13d9a098b..f7fb26b87 100755
ed184b
--- a/scripts/brp-strip-static-archive
ed184b
+++ b/scripts/brp-strip-static-archive
ed184b
@@ -15,4 +15,4 @@ esac
ed184b
 # Strip static libraries.
ed184b
 find "$RPM_BUILD_ROOT" -type f | \
ed184b
     grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
ed184b
-    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
ed184b
+    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
ed184b
-- 
ed184b
2.21.0
ed184b