[Git][qa/jenkins.debian.net][master] rdn, pull184: add rebuilder-debian.sh for new workers

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Sep 6 12:31:10 BST 2025



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


Commits:
035afd48 by Holger Levsen at 2025-09-06T13:31:00+02:00
rdn, pull184: add rebuilder-debian.sh for new workers

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

- - - - -


2 changed files:

- + hosts/ionos16-amd64/etc/rebuilderd-worker/rebuilder-debian.sh
- + hosts/ionos18-amd64/etc/rebuilderd-worker/rebuilder-debian.sh


Changes:

=====================================
hosts/ionos16-amd64/etc/rebuilderd-worker/rebuilder-debian.sh
=====================================
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+set -e
+
+cat <<-EOF
+===============================================================================
+
+About this build: this rebuild has been done as part of reproduce.debian.net
+where we aim to reproduce Debian binary packages distributed via ftp.debian.org,
+by rebuilding using the exact same packages as the original build on the buildds,
+as described in the relevant .buildinfo file from buildinfos.debian.net.
+
+For more information please go to https://reproduce.debian.net or join
+#debian-reproducible on irc.debian.org
+
+===============================================================================
+
+EOF
+echo "Preparing download of sources for $1"
+SOURCE=$(basename "$1" | cut -d '_' -f1)
+# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
+VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
+echo "Source: $SOURCE"
+echo "Version: $VERSION"
+echo "rebuilderd-worker node: $(hostname)"
+echo
+echo "+------------------------------------------------------------------------------+"
+echo "| Downloading sources                          $(date -u -R) |"
+echo "+------------------------------------------------------------------------------+"
+echo
+
+cd "$(dirname "$1")"
+mkdir -p etc/apt
+mkdir -p var/lib/apt/lists/
+export TMPDIR=/srv/rebuilderd/tmp ; mkdir -p $TMPDIR ; chmod 777 $TMPDIR
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie main non-free-firmware' > etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-trixie-security-automatic.gpg] https://deb.debian.org/debian-security trixie-security main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie-updates main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie-proposed-updates main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie-backports main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian forky main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian sid main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian experimental main non-free-firmware' >> etc/apt/sources.list
+apt-get -o Dir=. update -q
+apt-get -o Dir=. source -qq --print-uris "$SOURCE=$VERSION"
+apt-get -o Dir=. source -qq --download-only "$SOURCE=$VERSION"
+dcmd sha256sum *.dsc
+
+echo
+echo "+------------------------------------------------------------------------------+"
+echo "| Calling debrebuild                           $(date -u -R) |"
+echo "+------------------------------------------------------------------------------+"
+echo
+echo "Rebuilding $SOURCE=$VERSION in $(pwd) now."
+set -x
+nice /usr/bin/debrebuild --buildresult="${REBUILDERD_OUTDIR}" --builder=sbuild+unshare --cache=/srv/rebuilderd/cache -- "${1}"
+set +x
+echo
+echo "+------------------------------------------------------------------------------+"
+echo "| Finished running debrebuild                  $(date -u -R) |"
+echo "+------------------------------------------------------------------------------+"
+


=====================================
hosts/ionos18-amd64/etc/rebuilderd-worker/rebuilder-debian.sh
=====================================
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+set -e
+
+cat <<-EOF
+===============================================================================
+
+About this build: this rebuild has been done as part of reproduce.debian.net
+where we aim to reproduce Debian binary packages distributed via ftp.debian.org,
+by rebuilding using the exact same packages as the original build on the buildds,
+as described in the relevant .buildinfo file from buildinfos.debian.net.
+
+For more information please go to https://reproduce.debian.net or join
+#debian-reproducible on irc.debian.org
+
+===============================================================================
+
+EOF
+echo "Preparing download of sources for $1"
+SOURCE=$(basename "$1" | cut -d '_' -f1)
+# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
+VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
+echo "Source: $SOURCE"
+echo "Version: $VERSION"
+echo "rebuilderd-worker node: $(hostname)"
+echo
+echo "+------------------------------------------------------------------------------+"
+echo "| Downloading sources                          $(date -u -R) |"
+echo "+------------------------------------------------------------------------------+"
+echo
+
+cd "$(dirname "$1")"
+mkdir -p etc/apt
+mkdir -p var/lib/apt/lists/
+export TMPDIR=/srv/rebuilderd/tmp ; mkdir -p $TMPDIR ; chmod 777 $TMPDIR
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie main non-free-firmware' > etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-trixie-security-automatic.gpg] https://deb.debian.org/debian-security trixie-security main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie-updates main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie-proposed-updates main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie-backports main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian forky main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian sid main non-free-firmware' >> etc/apt/sources.list
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian experimental main non-free-firmware' >> etc/apt/sources.list
+apt-get -o Dir=. update -q
+apt-get -o Dir=. source -qq --print-uris "$SOURCE=$VERSION"
+apt-get -o Dir=. source -qq --download-only "$SOURCE=$VERSION"
+dcmd sha256sum *.dsc
+
+echo
+echo "+------------------------------------------------------------------------------+"
+echo "| Calling debrebuild                           $(date -u -R) |"
+echo "+------------------------------------------------------------------------------+"
+echo
+echo "Rebuilding $SOURCE=$VERSION in $(pwd) now."
+set -x
+nice /usr/bin/debrebuild --buildresult="${REBUILDERD_OUTDIR}" --builder=sbuild+unshare --cache=/srv/rebuilderd/cache -- "${1}"
+set +x
+echo
+echo "+------------------------------------------------------------------------------+"
+echo "| Finished running debrebuild                  $(date -u -R) |"
+echo "+------------------------------------------------------------------------------+"
+



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/035afd4814730dab36a22b07dd22c6596cb93ae7
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/20250906/ca7b1e03/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list