I noticed the jenkins.debian.net reproducible pbuilder chroots download
the full package descriptions, but this isn't necessary for a build
machine, and consumes a bit of bandwidth and disk space. The patch below
configures APT (and anything that respects apt.conf.d) to not download

Also should be available in the "no-package-descriptions" branch on
alioth (once alioth syncs):


It's untested, so I've looked it over at least three times. I hope it's
actually happening early enough to be useful...

Keep on reproducibilitizing!

live well,

From ff8da4f3ef9674503da93e38be565c3a7837c7d2 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@debian.org>
Date: Sat, 9 Apr 2016 16:43:31 -0700
Subject: [PATCH] Disable download of package descripts by setting apt.conf
 languages to none. This should save some disk space and download bandwidth,
 as the full descriptions really shouldn't be needed in a build chroot.

 bin/reproducible_setup_pbuilder.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/reproducible_setup_pbuilder.sh 
index 57ef3e8..b272d5b 100755
--- a/bin/reproducible_setup_pbuilder.sh
+++ b/bin/reproducible_setup_pbuilder.sh
@@ -61,6 +61,9 @@ echo
 echo "Configuring APT to ignore the Release file expiration"
 echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/398future
+echo "Configuring APT to not download package descriptions"
+echo 'Acquire::Languages "none";' > 
 apt-get update
 apt-get -y upgrade
 apt-get install -y $@

Attachment: signature.asc
Description: PGP signature

Reproducible-builds mailing list

Reply via email to