1 |
Now that EAPI 7 is accepted and implemented in Portage, provide |
2 |
the initial environment blacklist for coming EAPI 7 ebuilds. The list |
3 |
is based on existing eclasses, xdg-utils mostly. Rationale is provided |
4 |
in the comment above ENV_UNSET. |
5 |
--- |
6 |
profiles/base/make.defaults | 10 ++++++++++ |
7 |
1 file changed, 10 insertions(+) |
8 |
|
9 |
diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults |
10 |
index bd038bebf167..c9a964360694 100644 |
11 |
--- a/profiles/base/make.defaults |
12 |
+++ b/profiles/base/make.defaults |
13 |
@@ -22,6 +22,16 @@ USE_EXPAND_HIDDEN="USERLAND KERNEL ELIBC ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CPU_F |
14 |
CONFIG_PROTECT="/etc" |
15 |
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" |
16 |
|
17 |
+# EAPI 7 environment variable blacklist. |
18 |
+# |
19 |
+# XDG_* since the values coming from user environment can collide with |
20 |
+# ebuild-set ${HOME} (e.g. by referring to user's home directory). |
21 |
+# We exclude XDG_DATA_DIRS & XDG_CONFIG_DIRS as those are set in env.d. |
22 |
+# |
23 |
+# DBUS_SESSION_BUS_ADDRESS to disconnect from user's session bus. |
24 |
+# DISPLAY to disconnect from the user's running X server. |
25 |
+ENV_UNSET="XDG_DATA_HOME XDG_CONFIG_HOME XDG_CACHE_HOME XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS DISPLAY" |
26 |
+ |
27 |
# Variables that are set exclusively by the profile |
28 |
# and not by user configuration files. |
29 |
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" |
30 |
-- |
31 |
2.17.0 |