dcavalca / rpms / rpm

Forked from rpms/rpm a year ago
Clone

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

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