commit: 249ecdadd63b2b743d670f2776fe976d22e8808c Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Aug 30 08:58:36 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Aug 31 14:06:14 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=249ecdad
ebuild.sh: Explicitly ban get_libdir in global scope The value of get_libdir depends on the profile, and so it is not useful for dependency calculations. Furthermore, it seems that Portage does not handle defining it in global scope well due to EAPI checking magic. Ban it completely where it is defined as EAPI function to let developers catch their mistakes early rather than see them as 'command not found' errors during dependency calculation / cache updates. Bug: https://bugs.gentoo.org/629010 Closes: https://github.com/gentoo/portage/pull/197 Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> bin/ebuild.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index a400ef72e..f1ac3f278 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -66,6 +66,7 @@ else use useq usev use_with use_enable" ___eapi_has_usex && funcs+=" usex" ___eapi_has_in_iuse && funcs+=" in_iuse" + ___eapi_has_get_libdir && funcs+=" get_libdir" # These functions die because calls to them during the "depend" phase # are considered to be severe QA violations. funcs+=" best_version has_version portageq"
