From ca043e020f13c11a190c7d27fa72c8acb56c1237 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Apr 23 2020 14:26:58 +0000 Subject: Use newline as a delimiter to avoid xargs messing up file names with quotes which is the default behaviour otherwise. Fixes rhbz#1721348 --- diff --git a/scripts/brp-strip-static-archive b/scripts/brp-strip-static-archive index 13d9a09..f7fb26b 100755 --- a/scripts/brp-strip-static-archive +++ b/scripts/brp-strip-static-archive @@ -15,4 +15,4 @@ esac # Strip static libraries. find "$RPM_BUILD_ROOT" -type f | \ grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \ - 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 + 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