1 |
commit: c54e5e702dbf2ade6cba311101fcc08f2cc4c6eb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 2 15:39:54 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 07:45:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c54e5e70 |
7 |
|
8 |
profiles/base: Set initial ENV_UNSET (EAPI 7) |
9 |
|
10 |
Now that EAPI 7 is accepted and implemented in Portage, provide |
11 |
the initial environment blacklist for coming EAPI 7 ebuilds. The list |
12 |
is based on existing eclasses, xdg-utils mostly. Rationale is provided |
13 |
in the comment above ENV_UNSET. |
14 |
|
15 |
profiles/base/make.defaults | 12 ++++++++++++ |
16 |
1 file changed, 12 insertions(+) |
17 |
|
18 |
diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults |
19 |
index bd038bebf16..cbc527e954e 100644 |
20 |
--- a/profiles/base/make.defaults |
21 |
+++ b/profiles/base/make.defaults |
22 |
@@ -22,6 +22,18 @@ USE_EXPAND_HIDDEN="USERLAND KERNEL ELIBC ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CPU_F |
23 |
CONFIG_PROTECT="/etc" |
24 |
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" |
25 |
|
26 |
+# EAPI 7 environment variable blacklist. |
27 |
+# |
28 |
+# DBUS_SESSION_BUS_ADDRESS to avoid trying to access the user's session |
29 |
+# bus. |
30 |
+# |
31 |
+# DISPLAY and XAUTHORITY to avoid trying to access the user's X11. |
32 |
+# |
33 |
+# XDG_* since the values coming from user environment can collide with |
34 |
+# ebuild-set ${HOME} (e.g. by referring to user's home directory). |
35 |
+# We exclude XDG_DATA_DIRS & XDG_CONFIG_DIRS as those are set in env.d. |
36 |
+ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" |
37 |
+ |
38 |
# Variables that are set exclusively by the profile |
39 |
# and not by user configuration files. |
40 |
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" |