summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-24 10:40:31 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-24 10:40:31 +0200
commite6637cf623c24aa5d573fa5e90ddf5fc8d1198e1 (patch)
treec99c859809dfc66a2d4137d3b5e052bf9bfbfc34 /bin
parent789f218ce7715298e2b95cb0536079fa3b2bf3bc (diff)
downloadjenkins.debian.net-e6637cf623c24aa5d573fa5e90ddf5fc8d1198e1.tar.xz
reproducible: first build finally succeeded...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index b93479c3..bb3580f3 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -21,6 +21,9 @@ echo "The following source packages will be build: $@"
echo "=============================================================="
echo
set -x
+# this needs sid entries in sources.list:
+grep deb-src /etc/apt/sources.list | grep sid
+sudo apt-get update
COUNT_TOTAL=0
COUNT_GOOD=0
@@ -38,13 +41,13 @@ for SRCPACKAGE in "$@" ; do
SOURCELESS="${SOURCELESS} ${SRCPACKAGE}"
echo "Warning: ${SRCPACKAGE} is not a source package, or was removed or renamed. Please investigate."
else
- sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${SRCPACKAGE}_*.dsc
+ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc
RESULT=$?
if [ $RESULT = 0 ] ; then
mkdir b1 b2
dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b1
sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes
- sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${SRCPACKAGE}_*.dsc
+ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc
dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b2
sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes
set -e
@@ -60,7 +63,7 @@ for SRCPACKAGE in "$@" ; do
else
echo "Warning: ${SRCPACKAGE} failed to build reproducible."
let "COUNT_BAD=COUNT_BAD+1"
- GOOD="${SRCPACKAGE} ${BAD}"
+ BAD="${SRCPACKAGE} ${BAD}"
fi
rm b1 b2 ${TMPFILE} -rf
fi