Lines 164-170
Link Here
|
164 |
# done by including the configfile, and printing the variable with Make. |
164 |
# done by including the configfile, and printing the variable with Make. |
165 |
# It WILL break if your makefile has missing dependencies! |
165 |
# It WILL break if your makefile has missing dependencies! |
166 |
getfilevar() { |
166 |
getfilevar() { |
167 |
local ERROR basefname basedname myARCH="${ARCH}" |
167 |
local ERROR basefname basedname myARCH="${ARCH}" M="${S}" |
168 |
ERROR=0 |
168 |
ERROR=0 |
169 |
|
169 |
|
170 |
[ -z "${1}" ] && ERROR=1 |
170 |
[ -z "${1}" ] && ERROR=1 |
Lines 182-189
Link Here
|
182 |
|
182 |
|
183 |
# We use nonfatal because we want the caller to take care of things #373151 |
183 |
# We use nonfatal because we want the caller to take care of things #373151 |
184 |
[[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; } |
184 |
[[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; } |
|
|
185 |
case ${EBUILD_PHASE_FUNC} in |
186 |
pkg_info|pkg_nofetch|pkg_pretend) M="${T}" ;; |
187 |
esac |
185 |
echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \ |
188 |
echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \ |
186 |
nonfatal emake -C "${basedname}" M="${S}" ${BUILD_FIXES} -s -f - 2>/dev/null |
189 |
nonfatal emake -C "${basedname}" M="${M}" ${BUILD_FIXES} -s -f - 2>/dev/null |
187 |
|
190 |
|
188 |
ARCH=${myARCH} |
191 |
ARCH=${myARCH} |
189 |
fi |
192 |
fi |