diff options
author | 2024-08-05 21:48:26 -0700 | |
---|---|---|
committer | 2024-08-07 07:39:25 -0700 | |
commit | 9e6451c88e3da11e0eb7b0bd6b1497c5ca4fb67f (patch) | |
tree | cb3ac9332c0c2801f458b75fbad3544270b735f4 | |
parent | ELF: add entries for BPF (diff) | |
download | portage-9e6451c88e3da11e0eb7b0bd6b1497c5ca4fb67f.tar.gz portage-9e6451c88e3da11e0eb7b0bd6b1497c5ca4fb67f.tar.bz2 portage-9e6451c88e3da11e0eb7b0bd6b1497c5ca4fb67f.zip |
doebuild.spawn: Skip socks5 proxy for "depend" phase
Skip the socks5 proxy for the "depend" phase. It should not be needed
because we only allow bash builtin commands during this phase.
Since the socks5 proxy requires portage's event loop to be explictly
closed before exit, skipping it will allow programs like eclean-dist
to avoid the need to explicitly close portage's event loop before exit.
Bug: https://bugs.gentoo.org/937384
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | lib/portage/package/ebuild/doebuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portage/package/ebuild/doebuild.py b/lib/portage/package/ebuild/doebuild.py index 403836b80..b5fb46df7 100644 --- a/lib/portage/package/ebuild/doebuild.py +++ b/lib/portage/package/ebuild/doebuild.py @@ -2009,7 +2009,7 @@ def spawn( if ( not networked - and mysettings.get("EBUILD_PHASE") != "nofetch" + and mysettings.get("EBUILD_PHASE") not in ("depend", "nofetch") and ("network-sandbox-proxy" in features or "distcc" in features) ): # Provide a SOCKS5-over-UNIX-socket proxy to escape sandbox |