Skip to content
Commits on Source (4)
......@@ -204,10 +204,9 @@ diff_copy_buildlogs() {
gzip -9vn $DIFF
gzip -9cvn b2/build.log > $DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build2.log.gz
chmod 644 $DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build2.log.gz
elif [ $FTBFS -eq 0 ] ; then
elif [ "${1:-}" = "ftbfs" ] ; then
log_warning "No second build log, what happened?"
fi
set -x # # to debug diffoscope/schroot problems
echo "Compressing the 1st log..."
gzip -9cvn b1/build.log > $DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build1.log.gz
chmod 644 $DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build1.log.gz
......@@ -237,6 +236,7 @@ handle_depwait() {
update_db_and_html "depwait"
if [ $SAVE_ARTIFACTS -eq 1 ] ; then SAVE_ARTIFACTS=0 ; fi
if [ -n "$NOTIFY" ] ; then NOTIFY="depwait" ; fi
exit 0
}
handle_NFU() {
......@@ -253,7 +253,7 @@ handle_NFU() {
handle_ftbfs() {
echo "${SRCPACKAGE} failed to build from source."
cleanup_pkg_files
diff_copy_buildlogs
diff_copy_buildlogs ftbfs
update_rbuildlog
local BUILD NEEDLE
for BUILD in "1" "2"; do
......@@ -264,9 +264,8 @@ handle_ftbfs() {
if [ ! -f "$DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ] ; then
continue
fi
if zgrep -F "E: pbuilder-satisfydepends failed." "$DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
if zgrep -q -F "E: pbuilder-satisfydepends failed." "$DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
handle_depwait
return
fi
for NEEDLE in \
'^tar:.*Cannot write: No space left on device' \
......@@ -280,9 +279,8 @@ handle_ftbfs() {
'^dpkg-source: error: cannot create directory .* No space left on device$' \
'Requested size .* exceeds available storage space .*\(No space left on device\)$' \
; do
if zgrep -e "$NEEDLE" "$DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
if zgrep -q -e "$NEEDLE" "$DEBIAN_BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
handle_enospace $node
return
fi
done
# notify about unkown diskspace issues where we are not 100% sure yet those are diskspace issues
......