Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: James Le Cuirot <chewi@g.o>
Cc: gentoo-dev@l.g.o, gentoo-pms <gentoo-pms@l.g.o>, Gentoo Prefix <prefix@g.o>
Subject: Re: [gentoo-dev] [PMS] [PATCH] Correct the definition of ESYSROOT as EPREFIX isn't always applicable
Date: Mon, 29 Jul 2019 12:05:25
Message-Id: 20190729140510.021da85d@gentoo.org
In Reply to: [gentoo-dev] [PMS] [PATCH] Correct the definition of ESYSROOT as EPREFIX isn't always applicable by James Le Cuirot
1 On Sun, 28 Jul 2019 22:37:35 +0100
2 James Le Cuirot <chewi@g.o> wrote:
3
4 [...]
5 > - & \t{BDEPEND} &
6 > \t{DEPEND} & \t{RDEPEND}, \t{PDEPEND} \\
7 > + & \t{BDEPEND} &
8 > \t{DEPEND} & \t{RDEPEND}, \t{PDEPEND} \\
9 > \midrule
10
11
12 There seems to be unneeded whitespace only changes here that make the
13 diff less readable
14
15 [...]
16 > \t{ESYSROOT} &
17 > Ditto &
18 > No &
19 > - Contains the concatenation of the paths in the \t{SYSROOT} and
20 > \t{EPREFIX} variables,
21 > - for convenience. See also the \t{EPREFIX} variable. Only for
22 > EAPIs listed
23 > - in table~\ref{tab:offset-env-vars-table} as supporting
24 > \t{ESYSROOT}. \\
25 > + Contains the concatenation of the \t{SYSROOT} path and
26 > applicable prefix value. The prefix value
27 > + is \t{EPREFIX}, \t{BROOT}, or blank if \t{SYSROOT} is equal to
28 > \t{ROOT}, \t{/}, or something
29 > + else respectively. Only for EAPIs listed in
30 > table~\ref{tab:offset-env-vars-table} as supporting
31 > + \t{ESYSROOT}. \\
32 > \t{BROOT} &
33 > Ditto &
34 > No &
35
36 Admittedly without a full understanding of the problem, but this looks
37 wrong to me: SYSROOT, EPREFIX and BROOT are only relevant in build
38 phases (src_*); (EPREFIX is a little special here but mostly for
39 convenience). ROOT is only relevant in pkg_* phases. I don't see how
40 this can work. Say I build a binpkg with ROOT=/ then use that binpkg
41 with ROOT=/somewhere, you can't go back and change SYSROOT.
42
43 Also, I think the wording could be more "programmatic" (if ... then
44 ESYSROOT is ... else ... ) to avoid confusion.
45
46
47 Alexis.

Replies