On 08/09/2018 02:13 AM, Michał Górny wrote:
> W dniu czw, 09.08.2018 o godzinie 11∶09 +0200, użytkownik Ulrich Mueller
> napisał:
>>>>>>> On Thu, 09 Aug 2018, Michał Górny wrote:
>>>> +  if xargs --help | grep -q -- --max-procs=; then
>>> '--help' is not a valid argument on FreeBSD, so this spews errors
>>> to stderr:
>>
>> IIRC, GNU findutils is required by PMS?
>>
> 
> Yes, using gxargs is another option.  I suppose the usual ebuild env
> override is not used in this phase.

The 'alias xargs=gxargs' from profiles/default/bsd/fbsd/profile.bashrc
is ineffective because it doesn't apply to the XARGS variable that
portage defines in isolated-functions.sh:

        case ${USERLAND} in
        BSD)
                export XARGS="xargs"
                ;;
        *)
                export XARGS="xargs -r"
                ;;
        esac

I guess it should simply use gxargs if available. However, I don't see
anything in PMS about the 'g' prefix, though I do see this in the
findutils ebuilds:

  program_prefix=$(usex userland_GNU '' g)
-- 
Thanks,
Zac

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to