* [gentoo-portage-dev] [PATCH] ecompress: fix "Argument list too long" for sed (bug 727522)
@ 2020-06-24 0:36 99% Zac Medico
0 siblings, 0 replies; 1+ results
From: Zac Medico @ 2020-06-24 0:36 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Patrick McLean, Zac Medico
From: Patrick McLean <chutzpah@gentoo.org>
Use sed -f to feed commands to sed via stdin, in order to avoid
the "Argument list too long" error reported in bug 727522.
Fixes: 5508bf7a6db5 ("ecompress: ignore docompress -x files in precompressed QA check (bug 721516)")
Bug: https://bugs.gentoo.org/727522
Signed-off-by: Zac Medico <zmedico@gentoo.org>
---
bin/ecompress | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/ecompress b/bin/ecompress
index 7aabc8e4c..1ab07ccd7 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -38,9 +38,10 @@ while [[ $# -gt 0 ]] ; do
if [[ ${#skip_files[@]} -gt 0 && -s ${T}/.ecompress_had_precompressed ]]; then
sed_args=()
for f in "${skip_files[@]}"; do
- sed_args+=(-e "s|^${f}\$||")
+ sed_args+=("s|^${f}\$||;")
done
- sed "${sed_args[@]}" -e '/^$/d' -i "${T}/.ecompress_had_precompressed" || die
+ sed_args+=('/^$/d')
+ sed -f - -i "${T}/.ecompress_had_precompressed" <<< "${sed_args[@]}" || die
fi
exit 0
--
2.25.3
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-06-24 0:36 99% [gentoo-portage-dev] [PATCH] ecompress: fix "Argument list too long" for sed (bug 727522) Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox