1 |
W dniu czw, 03.05.2018 o godzinie 15∶03 +0800, użytkownik Jason Zaman |
2 |
napisał: |
3 |
> On Wed, May 02, 2018 at 05:42:19PM +0200, Michał Górny wrote: |
4 |
> > Now that EAPI 7 is accepted and implemented in Portage, provide |
5 |
> > the initial environment blacklist for coming EAPI 7 ebuilds. The list |
6 |
> > is based on existing eclasses, xdg-utils mostly. Rationale is provided |
7 |
> > in the comment above ENV_UNSET. |
8 |
> |
9 |
> What about XAUTHORITY since you're doing DISPLAY? |
10 |
|
11 |
Makes sense. |
12 |
|
13 |
> and maybe SSH_AUTH_SOCK would make sense too? |
14 |
|
15 |
Not sure. Users may actually want the PM to use their SSH keys, e.g. |
16 |
when accessing private git repositories. |
17 |
|
18 |
> |
19 |
> -- Jason |
20 |
> |
21 |
> > --- |
22 |
> > profiles/base/make.defaults | 10 ++++++++++ |
23 |
> > 1 file changed, 10 insertions(+) |
24 |
> > |
25 |
> > diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults |
26 |
> > index bd038bebf167..c9a964360694 100644 |
27 |
> > --- a/profiles/base/make.defaults |
28 |
> > +++ b/profiles/base/make.defaults |
29 |
> > @@ -22,6 +22,16 @@ USE_EXPAND_HIDDEN="USERLAND KERNEL ELIBC ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CPU_F |
30 |
> > CONFIG_PROTECT="/etc" |
31 |
> > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" |
32 |
> > |
33 |
> > +# EAPI 7 environment variable blacklist. |
34 |
> > +# |
35 |
> > +# XDG_* since the values coming from user environment can collide with |
36 |
> > +# ebuild-set ${HOME} (e.g. by referring to user's home directory). |
37 |
> > +# We exclude XDG_DATA_DIRS & XDG_CONFIG_DIRS as those are set in env.d. |
38 |
> > +# |
39 |
> > +# DBUS_SESSION_BUS_ADDRESS to disconnect from user's session bus. |
40 |
> > +# DISPLAY to disconnect from the user's running X server. |
41 |
> > +ENV_UNSET="XDG_DATA_HOME XDG_CONFIG_HOME XDG_CACHE_HOME XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS DISPLAY" |
42 |
> > + |
43 |
> > # Variables that are set exclusively by the profile |
44 |
> > # and not by user configuration files. |
45 |
> > PROFILE_ONLY_VARIABLES="${PROFILE_ONLY_VARIABLES} ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND" |
46 |
> > -- |
47 |
> > 2.17.0 |
48 |
> > |
49 |
> > |
50 |
> |
51 |
> |
52 |
|
53 |
-- |
54 |
Best regards, |
55 |
Michał Górny |