[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': indicate clearly if some build-depends are not available

Holger Levsen gitlab at salsa.debian.org
Sat May 2 15:54:16 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
54d8e59f by Holger Levsen at 2020-05-02T16:53:38+02:00
reproducible Debian rebuilder 'thing': indicate clearly if some build-depends are not available

this is basically a workaround for an unfiled bug in debrebuild, which should
fail clearly in such cases.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_debian_rebuilder_prototype.sh


Changes:

=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -37,7 +37,7 @@ set -e
 output_echo() {
 	echo "###########################################################################################"
 	echo
-	echo "$(date -u) - $1"
+	echo -e "$(date -u) - $1"
 	echo
 }
 
@@ -72,10 +72,11 @@ if [ -z "$BUILTINPHOPATH" ] ; then
 	OTHER_FILES=$(mktemp)
 	psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND (arch_amd64=true OR arch_all=true)" buildinfo > $OTHER_FILES
 	if [ -s $OTHER_FILES ] ; then
-	output_echo ".buildinfo files known for $PKG and (arch_amd64 or arch_all)"
+		echo ".buildinfo files known for $PKG and (arch_amd64 or arch_all)"
+		echo
 		cat $OTHER_FILES
 	else
-		output_echo "Warning: no .buildinfo exists for $PKG and (arch_amd64 or arch_all)."
+		echo "Warning: no .buildinfo exists for $PKG and (arch_amd64 or arch_all)."
 	fi
 	rm -f $OTHER_FILES
 	exit 1
@@ -140,8 +141,13 @@ output_echo "trying to debrebuild $PKG"
 DISTRO=$(tail -1 $DEBREBUILD | grep '^BASE_DIST=' | cut -d '=' -f2)
 case $DISTRO in
 	stretch|buster|bullseye|bookworm|unstable) ;;
-	*)	output_echo "unknown distro, something went wrong with debrebuild..."
-		cat $DEBREBUILD
+	*)	output_echo "debrebuild failed."
+		if -q egrep 'cannot find .* in dumpavail' $DEBREBUILD ; then
+			#FIXME: file bug, debrebuild should fail clearly on this (and not this subtile)
+			echo "The following build-dependencies are not available on snapshot.debian.org:\n$(egrep 'cannot find .* in dumpavail' $DEBREBUILD)"
+		else
+			echo "Unknown distro, something went wrong with debrebuild..."
+		fi
 		exit 1
 		;;
 esac



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/54d8e59fcd4dfe4c04362a9e2fae519510a62ffd

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/54d8e59fcd4dfe4c04362a9e2fae519510a62ffd
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200502/92a8f072/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list