Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>, Ulrich Mueller <ulm@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] install-qa-check.d/60pngfix: parallel support (bug 630292)
Date: Thu, 09 Aug 2018 20:14:53
Message-Id: d541d231-2efa-f180-a21e-f361e7ad2311@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] install-qa-check.d/60pngfix: parallel support (bug 630292) by "Michał Górny"
1 On 08/09/2018 02:13 AM, Michał Górny wrote:
2 > W dniu czw, 09.08.2018 o godzinie 11∶09 +0200, użytkownik Ulrich Mueller
3 > napisał:
4 >>>>>>> On Thu, 09 Aug 2018, Michał Górny wrote:
5 >>>> + if xargs --help | grep -q -- --max-procs=; then
6 >>> '--help' is not a valid argument on FreeBSD, so this spews errors
7 >>> to stderr:
8 >>
9 >> IIRC, GNU findutils is required by PMS?
10 >>
11 >
12 > Yes, using gxargs is another option. I suppose the usual ebuild env
13 > override is not used in this phase.
14
15 The 'alias xargs=gxargs' from profiles/default/bsd/fbsd/profile.bashrc
16 is ineffective because it doesn't apply to the XARGS variable that
17 portage defines in isolated-functions.sh:
18
19 case ${USERLAND} in
20 BSD)
21 export XARGS="xargs"
22 ;;
23 *)
24 export XARGS="xargs -r"
25 ;;
26 esac
27
28 I guess it should simply use gxargs if available. However, I don't see
29 anything in PMS about the 'g' prefix, though I do see this in the
30 findutils ebuilds:
31
32 program_prefix=$(usex userland_GNU '' g)
33 --
34 Thanks,
35 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature