summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-19 21:37:35 +0100
committerSam James <sam@gentoo.org>2022-04-19 21:42:42 +0100
commit5b80c7730d73c42607c826270e2de85fce40ac79 (patch)
treef14aa2a21f367fa517eea7af557d6403e4348b22 /eclass/toolchain.eclass
parentapp-emacs/shell-split-string: new package; add version 0.1 (diff)
downloadgentoo-5b80c7730d73c42607c826270e2de85fce40ac79.tar.gz
gentoo-5b80c7730d73c42607c826270e2de85fce40ac79.tar.bz2
gentoo-5b80c7730d73c42607c826270e2de85fce40ac79.zip
toolchain.eclass: fix S definition
S isn't _blank_ by default. Fixes: 5a7ea1cef34c3c3026a999d566bc4badc1dccc9c Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 3 insertions, 1 deletions
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}