diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_pbuild_run.sh | 18 | ||||
-rwxr-xr-x | bin/reproducible_pbuilder_setup.sh | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/bin/reproducible_pbuild_run.sh b/bin/reproducible_pbuild_run.sh new file mode 100755 index 00000000..659728da --- /dev/null +++ b/bin/reproducible_pbuild_run.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# Copyright 2014 Holger Levsen <holger@layer-acht.org> +# released under the GPLv=2 + +. /srv/jenkins/bin/common-functions.sh +common_init "$@" + +PACKAGE=$1 +apt-get source --download-only ${PACKAGE} +sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc +mkdir b1 b2 +dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b1 +sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes +sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc +dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b2 +sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes + diff --git a/bin/reproducible_pbuilder_setup.sh b/bin/reproducible_pbuilder_setup.sh new file mode 100755 index 00000000..282d61eb --- /dev/null +++ b/bin/reproducible_pbuilder_setup.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Copyright 2014 Holger Levsen <holger@layer-acht.org> +# released under the GPLv=2 + +. /srv/jenkins/bin/common-functions.sh +common_init "$@" + +TMPFILE=$(mktemp=) +cat > $TMPFILE <<- EOF +echo 'deb http://reproducible.alioth.debian.org/debian/ ./' > /etc/apt/sources.list.d/reproducible.list +apt-get update +apt-get install -y dpkg dpkg-dev debhelper dh-python proot +EOF + +sudo cp /var/cache/pbuilder/base.tgz /var/cache/pbuilder/base-reproducible.tgz +sudo pbuilder --execute $TMPFILE --save-after-exec --basetgz /var/cache/pbuilder/base-reproducible.tgz +rm $TMPFILE |