Gentoo Archives: gentoo-portage-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] bin/isolated-functions.sh USERLAND setting
Date: Thu, 28 Jul 2022 17:57:53
Message-Id: CALaCa4yTaHXedDhjPMxwUuA8RAxLyxs2sM7pXuNEScBePHB8zQ@mail.gmail.com
In Reply to: [gentoo-portage-dev] bin/isolated-functions.sh USERLAND setting by Fabian Groffen
1 2022-07-28 17:47 UTCに、Fabian Groffen <grobian@g.o>は書いた:
2 > bin/isolated-functions.sh does the following bit:
3 >
4 > if [[ -z ${USERLAND} ]] ; then
5 > case $(uname -s) in
6 > *BSD|DragonFly)
7 > export USERLAND="BSD"
8 > ;;
9 > *)
10 > export USERLAND="GNU"
11 > ;;
12 > esac
13 > fi
14 >
15 > (after which it uses USERLAND for a single purpose, to export XARGS to
16 > either GNU '[g]xargs -r', or BSD 'xargs')
17 >
18 > This bit is problematic for Prefix, because Prefix may run on *BSD, but
19 > use USERLAND=GNU.
20
21 But this code starts with 'if [[ -z ${USERLAND} ]]', so it should not
22 be run when USERLAND="GNU".
23
24 USERLAND="GNU" is set in make.defaults, which is parsed by Portage
25 early (at Python side) and these values are passed by Portage to
26 ebuild.sh subprocess.

Replies

Subject Author
Re: [gentoo-portage-dev] bin/isolated-functions.sh USERLAND setting Fabian Groffen <grobian@g.o>