summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-11-26 14:12:39 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-11-26 14:12:39 +0000
commit98c92816575dbb5fbec7b964324a4531a649b5ef (patch)
tree878e330443c761cce38e45cbaace831b04c9672a
parent17ce5fcd2c771e9a4b283b5d01f3e6a37e692032 (diff)
downloadmidipix_build-98c92816575dbb5fbec7b964324a4531a649b5ef.tar.bz2
midipix_build-98c92816575dbb5fbec7b964324a4531a649b5ef.tar.xz
subr/build_init.subr:buildp_init_files(): export TMP{,DIR}=${BUILD_WORKDIR}.
subr/pkgtool_init.subr:pkgtoolp_init_args(): export TMP{,DIR}=${BUILD_WORKDIR}.
-rw-r--r--subr/build_init.subr3
-rw-r--r--subr/pkgtool_init.subr2
2 files changed, 3 insertions, 2 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr
index 03063b46..3dd39012 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -107,7 +107,8 @@ buildp_init_files() {
_rc=1; _status="Error: failed to clean environment.";
elif ! rtl_check_path_vars "${DEFAULT_CHECK_PATH_VARS}"; then
_rc=1; _status="${_status}";
- else touch "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}";
+ else export TMP="${BUILD_WORKDIR}" TMPDIR="${BUILD_WORKDIR}";
+ touch "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}";
if [ -e "${DEFAULT_BUILD_LOG_FNAME}" ]; then
while [ -e "${DEFAULT_BUILD_LOG_FNAME}.${_log_last_num}" ]; do
: $((_log_last_num+=1));
diff --git a/subr/pkgtool_init.subr b/subr/pkgtool_init.subr
index 4d096e12..2ea27904 100644
--- a/subr/pkgtool_init.subr
+++ b/subr/pkgtool_init.subr
@@ -10,7 +10,7 @@ pkgtoolp_init_args() {
&& [ -z "${ARG_RESTART_AT}" ]\
&& [ "${ARG_UPDATE_DIFF:-0}" -eq 0 ]; then
cat etc/pkgtool.usage; _rc=1; _status="Error: one of -i, -r, -s, or -t must be specified.";
- else _rc=0;
+ else _rc=0; export TMP="${BUILD_WORKDIR}" TMPDIR="${BUILD_WORKDIR}";
fi; return "${_rc}";
};