commit: 3ab961d6aa165a53b7319fefad0540ada676d6cd Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Dec 13 19:50:38 2022 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Dec 13 19:50:38 2022 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=3ab961d6
eclass: fix exported bash functions leak Closes: https://bugs.gentoo.org/836210 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcore/ebuild/eclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkgcore/ebuild/eclass.py b/src/pkgcore/ebuild/eclass.py index 2e970cb68..9c7d1fd20 100644 --- a/src/pkgcore/ebuild/eclass.py +++ b/src/pkgcore/ebuild/eclass.py @@ -384,7 +384,7 @@ class EclassDoc(AttrDict): # TODO: support this via pkgcore's ebd # source eclass to determine PROPERTIES p = subprocess.run( - ['bash', '-c', + ['env', '-i', 'bash', '-c', f'source {shlex.quote(path)}; ' f'compgen -A function; ' f'echo "#"; '
