[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': use sbuild-createchroot to create chroots

Holger Levsen gitlab at salsa.debian.org
Wed Apr 1 17:21:24 BST 2020



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


Commits:
927c1294 by Holger Levsen at 2020-04-01T18:21:13+02:00
reproducible Debian rebuilder 'thing': use sbuild-createchroot to create chroots

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

- - - - -


2 changed files:

- bin/reproducible_debian_rebuilder_prototype.sh
- hosts/common/etc/sudoers.d/jenkins


Changes:

=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -65,6 +65,16 @@ output_echo "trying to debrebuild $PKG..."
 # workaround until devscripts 2.20.3 is released
 /srv/jenkins/bin/rb-debrebuild $FILE 2>&1 | tee $DEBREBUILD
 
+# FIXME: file a bug like '#955123 debrebuild: please provide --sbuild-output-only option' but with --output-only-base-release
+# (parsing the debrebuild output to gather this information is way to fragile)
+DISTRO=bullseye
+output_echo "preparing chroot for $DISTRO"
+sudo sbuild-createchroot $DISTRO /srv/schroots/debrebuild-$DISTRO-amd64 http://deb.debian.org/debian
+
+# I'm a bit surprised this was needed, as debrebuild has code for this...
+# FIXME: a bug should probably be file for this as well
+echo 'Acquire::Check-Valid-Until "false";' | sudo tee /srv/schroots/debrebuild-$DISTRO-amd64/etc/apt/apt.conf.d/23-rebuild
+
 # actually run sbuild
 # - workaround #955123 in devscripts: debrebuild: please provide --sbuild-output-only option
 #   - using tail


=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -1,6 +1,7 @@
 jenkins ALL=  \
 	NOPASSWD: /usr/sbin/debootstrap *, \
 	/usr/bin/mmdebstrap *, \
+	/usr/bin/sbuild-createchroot *, \
 	/bin/systemctl reset-failed, \
 	/usr/bin/tee /schroots/*, \
 	/usr/bin/tee -a /schroots/*, \



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/927c1294fb9da020e777b68c262018dae427169f
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/20200401/3905d817/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list