[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': show sbuild logfile on failures
Holger Levsen
gitlab at salsa.debian.org
Fri May 8 00:09:09 BST 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
bb2dc461 by Holger Levsen at 2020-05-08T01:07:58+02:00
reproducible Debian rebuilder 'thing': show sbuild logfile on failures
(and add another real world test case for dpkg-checkbuilddeps: error: Unmet build dependencies:...)
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
=====================================
@@ -71,7 +71,8 @@ VERSION=$(grep-available -X -S $PKG -s Version $SOURCES | head -1 | cut -d ' ' -
#
#PKG=libofx ; BINARY_PKG=libofx-dev ; VERSION=1:0.9.15-3 # cannot find libdebconfclient0/0.250/amd64 in dumpavail -> impossible to recreate build environment
#PKG=wpewebkit ; BINARY_PKG=wpewebkit-driver ; VERSION=2.28.0-1 # cannot find libc-bin/2.29-10/amd64 in dumpavail -> impossible to recreate build environment
-#PKG=libunibreak ; BINARY_PKG=libunibreak1 ; VERSION=1.1-2 # binNMU (on amd64 in bullseye, but not buster)
+#PKG=libunibreak ; BINARY_PKG=libunibreak1 ; VERSION=1.1-2 # binNMU (on amd64 in bullseye, but not buster)
+PKG=tomcat9 ; BINARY_PKG=tomcat9-user ; VERSION=9.0.34-1 # sbuild fails to build the package because dpkg-checkbuilddeps: error: Unmet build dependencies: - see job #109
output_echo "let's try to rebuild $BINARY_PKG from src:$PKG ($VERSION) from $SUITE/$ARCH"
EVERSION="$(echo $VERSION | cut -d ':' -f2)" # EPOCH_FREE_VERSION is too long
@@ -199,7 +200,20 @@ SBUILD=$(tail -2 $DEBREBUILD | grep '^SBUILD_CMDLINE=' | cut -d '=' -f2- | sed '
output_echo "using this sbuild command line:"
echo $SBUILD
echo
-eval $SBUILD
+set +e
+RESULT=$(eval $SBUILD)
+if [ "$RESULT" != "0" ] ; then
+ output_echo "sbuild failed:"
+ LOGFILE="./${PKG}_${VERSION}_${ARCH}.build"
+ if [ -L $LOGFILE ] ; then
+ cat $LOGFILE
+ else
+ output_echo "and no sbuild logfile found:"
+ ls -lart
+ fi
+ exit 1
+fi
+set -e
# show what we did/created
output_echo "File artifacts:"
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bb2dc461519ee82e8e61aa7a44e19843d95b3c04
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bb2dc461519ee82e8e61aa7a44e19843d95b3c04
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/20200507/1123f0a3/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list