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. |