1 |
For USERLAND=BSD, set XARGS="gxargs -r" if gxargs is available, |
2 |
so the code from bug 630292 works for USERLAND=BSD. |
3 |
|
4 |
Fixes: 50283f1abb77 (install-qa-check.d/60pngfix: parallel support (bug 630292)) |
5 |
Reported-by: Michał Górny <mgorny@g.o> |
6 |
Bug: https://bugs.gentoo.org/663256 |
7 |
--- |
8 |
bin/isolated-functions.sh | 6 +++++- |
9 |
1 file changed, 5 insertions(+), 1 deletion(-) |
10 |
|
11 |
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh |
12 |
index 28ca94532..cac42a4c5 100644 |
13 |
--- a/bin/isolated-functions.sh |
14 |
+++ b/bin/isolated-functions.sh |
15 |
@@ -448,7 +448,11 @@ fi |
16 |
if [[ -z ${XARGS} ]] ; then |
17 |
case ${USERLAND} in |
18 |
BSD) |
19 |
- export XARGS="xargs" |
20 |
+ if type -P gxargs > /dev/null; then |
21 |
+ export XARGS="gxargs -r" |
22 |
+ else |
23 |
+ export XARGS="xargs" |
24 |
+ fi |
25 |
;; |
26 |
*) |
27 |
export XARGS="xargs -r" |
28 |
-- |
29 |
2.16.4 |