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 wget
+dd-schroot-cmd -y -c $mysid apt-get install git autotools-dev gawk dh-autoreconf wget ca-certificates
+
+# Separate as we allow this to fail where it doesn't exist
dd-schroot-cmd -y -c $mysid apt-get install gcc-multilib || true
DATETIME=$(date -u '+%Y-%m-%d-%H%M%S')
mkdir -p ${BDIR}
cd ${BDIR}
+GIT="git -c http.sslcainfo=/etc/ssl/certs/ca-certificates.crt"
cat > ~/build/strace/inside-schroot-test.sh << EOF
#!/bin/sh
set -e
cd ${BDIR}
-git clone -q http://git.code.sf.net/p/strace/code strace.git
+${GIT} clone -q https://github.com/strace/strace strace.git
echo "BUILD ENVIRONMENT INFORMATION"
echo "============================="
echo "Debian architecture"
echo "--------------"
dpkg -s gcc
cd strace.git
-git checkout $POINT
-git log | head -1
+${GIT} checkout $POINT
+${GIT} log | head -1
./bootstrap
-./configure
+./configure --enable-mpers=check
make $PARALLEL && make check VERBOSE=1 && echo SUCCESS > ${BDIR}/RESULT
EOF
base64 < $FILE ; \
echo "END $FILE") | \
mailx -s "strace-build-test $ARCH-$HOSTNAME-${DATETIME} log" \
+ -r "Strace git build logs <93sam@debian.org>" \
steve-strace@einval.com
rm -f $FILE
base64 < $FILE ; \
echo "END $FILE") | \
mailx -s "$DSC package build log: $ARCH on $HOSTNAME " \
+ -r "Strace package build log <93sam@debian.org>" \
steve@einval.com
rm -f $FILE
fi