scons-utils.eclass: Force pass-through of envvars (in 3.0.1-r1+)
authorMichał Górny <mgorny@gentoo.org>
Wed, 9 May 2018 15:23:57 +0000 (17:23 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 May 2018 15:25:52 +0000 (17:25 +0200)
Use GENTOO_SCONS_ENV_PASSTHROUGH variable introduced by scons-3.0.1-r1
patch to force passing through of all environment variables when
building ebuilds.

eclass/scons-utils.eclass

index 02c9061ba95d09cb30b1cfdc6ed1c5b2075df321..4ffa92ae4a354c9c4d4b9930ceea04c53ddcf5ff 100644 (file)
@@ -135,6 +135,9 @@ escons() {
                _scons_clean_makeopts
        fi
 
+       # pass ebuild environment variables through!
+       local -x GENTOO_SCONS_ENV_PASSTHROUGH=1
+
        set -- scons ${SCONSOPTS} ${EXTRA_ESCONS} "${@}"
        echo "${@}" >&2
        "${@}"