From 7fc7fb0c59266664b8c700e21859a7fbcc3d5052 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 12 Jun 2015 21:31:12 +0200 Subject: reproducible: define $TEMPDIR as /tmp/reproducible and teach all the to create temporary files under TEMPDIR (except for builders, they have their own TMPDIR), to avoid polluting /tmp --- bin/reproducible_openwrt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_openwrt.sh') diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index 688fee8a..ebe6941b 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -196,7 +196,7 @@ save_openwrt_results b2 # # create html about toolchain used # -TOOLCHAIN_HTML=$(mktemp) +TOOLCHAIN_HTML=$(mktemp --tmpdir=$TMPDIR) TARGET=$(ls -1d staging_dir/toolchain*|cut -d "-" -f2-|xargs echo) echo "" > $TOOLCHAIN_HTML for i in $(ls -1 build_dir/host/) ; do @@ -216,7 +216,7 @@ for i in gcc binutils bzip2 flex python perl make findutils grep diffutils unzip done echo "
Contents of build_dir/host/
" >> $TOOLCHAIN_HTML # get banner -BANNER_HTML=$(mktemp) +BANNER_HTML=$(mktemp --tmpdir=$TMPDIR) cat $(find build_dir/ -name banner | grep etc/banner|head -1) >> $BANNER_HTML # clean up builddir to save space on tmpfs @@ -230,7 +230,7 @@ DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-${DBDSUITE echo "=============================================================================" echo "$(date -u) - Running $DBDVERSION on OpenWrt images and packages." echo "=============================================================================" -DBD_HTML=$(mktemp) +DBD_HTML=$(mktemp --tmpdir=$TMPDIR) # run debbindiff on the images echo " " > $DBD_HTML GOOD_IMAGES=0 -- cgit v1.2.3-54-g00ecf
Images for $TARGET