mysid=sid-93sam-strace-$RANDOM
+cleanup () {
+ schroot -e -c $mysid
+}
+
+trap cleanup 0
+
BASE_CHROOT="sid_$ARCH-dchroot"
schroot -e -c $mysid || true
schroot -b -c $BASE_CHROOT -n $mysid
dd-schroot-cmd -y -c $mysid apt-get update
dd-schroot-cmd -y -c $mysid apt-get build-dep strace
-dd-schroot-cmd -y -c $mysid apt-get install git autotools-dev gawk dh-autoreconf
+dd-schroot-cmd -y -c $mysid apt-get install git autotools-dev gawk dh-autoreconf wget
+dd-schroot-cmd -y -c $mysid apt-get install gcc-multilib || true
DATETIME=$(date -u '+%Y-%m-%d-%H%M%S')
BDIR=~/build/strace/build-test-${DATETIME}
# separate log file but using the same chroot for speed
rm -rf ~/build/strace/package-test
set +e
-wget --ca-certificate=/etc/ssl/ca-global/ca-certificates.crt -O /dev/null $PKG_TEST
+WGET="wget --ca-certificate=/home/93sam/.CA/ca-certificates.crt"
+$WGET -O /dev/null $PKG_TEST/MANIFEST
if [ $? -eq 0 ]; then
# Time to grab sources
mkdir ~/build/strace/package-test
cd ~/build/strace/package-test
- wget --ca-certificate=/etc/ssl/ca-global/ca-certificates.crt -r -nd -np $PKG_TEST
+ $WGET $PKG_TEST/MANIFEST
+ for file in $(cat MANIFEST); do
+ $WGET $PKG_TEST/$file
+ done
DSC=$(ls *.dsc)
cat > ~/build/strace/inside-schroot-test.sh << EOF
rm -rf ~/build/strace/package-test
rm -f ~/build/strace/inside-schroot-test.sh
- cat typescript | \
+ gzip -9 typescript
+ FILE=typescript.gz
+ (echo "START $FILE" ; \
+ base64 < $FILE ; \
+ echo "END $FILE") | \
mailx -s "$DSC package build log: $ARCH on $HOSTNAME " \
steve@einval.com
- rm -f typescript
+ rm -f $FILE
fi
-
-schroot -e -c $mysid
-