commit: 5b80c7730d73c42607c826270e2de85fce40ac79
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 20:37:35 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 19 20:42:42 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b80c773
toolchain.eclass: fix S definition
S isn't _blank_ by default.
Fixes: 5a7ea1cef34c3c3026a999d566bc4badc1dccc9c
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 38e4ccd55688..46e5ecb7ce39 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -266,9 +266,11 @@ PDEPEND=">=sys-devel/gcc-config-2.3"
#---->> S + SRC_URI essentials <<----
+: ${TOOLCHAIN_SET_S:=yes}
+
# Set the source directory depending on whether we're using
# a live git tree, snapshot, or release tarball.
-if [[ -z ${S} ]] ; then
+if [[ ${TOOLCHAIN_SET_S} == yes ]] ; then
S=$(
if tc_is_live ; then
echo ${EGIT_CHECKOUT_DIR}