commit: 9e6451c88e3da11e0eb7b0bd6b1497c5ca4fb67f Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Aug 6 04:48:26 2024 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Wed Aug 7 14:39:25 2024 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=9e6451c8
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 <AT> gentoo.org> lib/portage/package/ebuild/doebuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portage/package/ebuild/doebuild.py b/lib/portage/package/ebuild/doebuild.py index 403836b80b..b5fb46df70 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
