From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5086A1382C5 for ; Thu, 3 May 2018 07:39:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 170A4E0AC7; Thu, 3 May 2018 07:39:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BE662E0AB7 for ; Thu, 3 May 2018 07:39:15 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 4F95B335C8D; Thu, 3 May 2018 07:39:14 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH v2] profiles/base: Set initial ENV_UNSET (EAPI 7) Date: Thu, 3 May 2018 09:39:09 +0200 Message-Id: <20180503073909.10001-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.17.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: df88c290-815b-41b1-b319-62b0e8cb6334 X-Archives-Hash: 142fc0f71dbb2fad669bb16027d039e8 Now that EAPI 7 is accepted and implemented in Portage, provide the initial environment blacklist for coming EAPI 7 ebuilds. The list is based on existing eclasses, xdg-utils mostly. Rationale is provided in the comment above ENV_UNSET. --- profiles/base/make.defaults | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults index bd038bebf167..cbc527e954e5 100644 --- a/profiles/base/make.defaults +++ b/profiles/base/make.defaults @@ -22,6 +22,18 @@ USE_EXPAND_HIDDEN="USERLAND KERNEL ELIBC ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CPU_F CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" +# EAPI 7 environment variable blacklist. +# +# DBUS_SESSION_BUS_ADDRESS to avoid trying to access the user's session +# bus. +# +# DISPLAY and XAUTHORITY to avoid trying to access the user's X11. +# +# XDG_* since the values coming from user environment can collide with +# ebuild-set ${HOME} (e.g. by referring to user's home directory). +# We exclude XDG_DATA_DIRS & XDG_CONFIG_DIRS as those are set in env.d. +ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" + # Variables that are set exclusively by the profile # and not by user configuration files. 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" -- 2.17.0