From b26328f927e720961d04f0ff6fcc7d24f645b407 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 27 Feb 2015 14:06:42 +0100 Subject: reproducible: add support for creating distro-specific base.tgz. work in progress: not sure yet whether I prefer more jobs instead.. --- bin/reproducible_setup_pbuilder.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index 804acc74..13f44763 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -64,6 +64,8 @@ EOF # setup pbuilder for reproducible builds # setup_pbuilder() { + DISTRO=$1 + shift NAME=$1 shift PACKAGES="$@" @@ -71,7 +73,7 @@ setup_pbuilder() { TMPFILE=$(mktemp) LOG=$(mktemp) create_setup_tmpfile ${TMPFILE} "${PACKAGES}" - sudo pbuilder --create --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution sid + sudo pbuilder --create --basetgz /var/cache/pbuilder/${NAME}-new.tgz --distribution $DISTRO sudo pbuilder --execute --save-after-exec --basetgz /var/cache/pbuilder/${NAME}-new.tgz -- ${TMPFILE} | tee ${LOG} echo echo "Now let's see whether the correct packages where installed..." @@ -85,4 +87,8 @@ setup_pbuilder() { echo } -setup_pbuilder base-reproducible dpkg dpkg-dev debhelper +for SUITE in $SUITES ; do + # FIXME: base-reproducible should be renamed to include the suite + # FIXME: DISTRO=experimental needs sid as base distro + setup_pbuilder $SUITE base-reproducible dpkg dpkg-dev debhelper +done -- cgit v1.2.3-70-g09d2