summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-04-10 12:06:08 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-04-11 11:22:23 +0200
commit3be135f0bd48ec0b46adc0f2bd4b073c55dfe71f (patch)
tree5f1ed2ce9e7f6fed21ad59ee86d6fd21d3c497e2 /scripts
parent84b29f568f3e778b6a3c3f3e2cf2d1588d097268 (diff)
downloadptxdist-3be135f0bd48ec0b46adc0f2bd4b073c55dfe71f.tar.gz
ptxdist-3be135f0bd48ec0b46adc0f2bd4b073c55dfe71f.tar.xz
wrapper: disable icecc in fakeroot
icecc creates temporary files with the username in the name. In fakeroot the username is 'root' so this can cause collisions in multi-user environments. Nothing is supposed to be compiled in fakeroot, but it can happen during 'make install' due to broken dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wrapper/libwrapper.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wrapper/libwrapper.sh b/scripts/wrapper/libwrapper.sh
index 330332448..2d61d4f73 100644
--- a/scripts/wrapper/libwrapper.sh
+++ b/scripts/wrapper/libwrapper.sh
@@ -25,6 +25,9 @@ wrapper_exec() {
if [ "${PTXDIST_VERBOSE}" = 1 -a -n "${PTXDIST_FD_LOGFILE}" ]; then
echo "wrapper: ${PTXDIST_ICECC}${PTXDIST_CCACHE} ${0##*/} ${ARG_LIST} $* ${LATE_ARG_LIST}" >&${PTXDIST_FD_LOGFILE}
fi
+ if [ -n "${FAKEROOTKEY}" ]; then
+ unset PTXDIST_ICECC
+ fi
exec ${PTXDIST_ICECC}${PTXDIST_CCACHE} "${0%/*}/real/${0##*/}" ${ARG_LIST} "$@" ${LATE_ARG_LIST}
}