From 7af7297ca8a3b0a38ec22baad190b37a36b5dc84 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 10 Jan 2017 10:54:21 +0100 Subject: [PATCH] buildserver: support installing packages from Debian/testing Sometimes, a build process requires newer versions of build tools than are available in Debian/stable. Oftentimes, using the package straight from Debian/testing works fine when a package is not available as a backport. libtool 2.4.6 is needed for building VLC, so it is one example of this. The preferences file sets up the apt "pinning" so that all updates are not installed from testing, only the packages that are requested by adding "/testing" after then package name. closes #224 --- buildserver/provision-apt-get-install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildserver/provision-apt-get-install b/buildserver/provision-apt-get-install index 8f2a9b58..a60cdb99 100644 --- a/buildserver/provision-apt-get-install +++ b/buildserver/provision-apt-get-install @@ -16,6 +16,8 @@ printf 'APT::Acquire::Retries "20";\n' \ if grep --quiet jessie /etc/apt/sources.list; then echo "deb $debian_mirror jessie-backports main" > /etc/apt/sources.list.d/backports.list + echo "deb $debian_mirror testing main" > /etc/apt/sources.list.d/testing.list + printf "Package: *\nPin: release o=Debian,a=testing\nPin-Priority: -300\n" > /etc/apt/preferences.d/debian-testing fi dpkg --add-architecture i386 @@ -59,8 +61,8 @@ packages=" libsaxonb-java libssl-dev libstdc++6:i386 - libtool - libtool-bin + libtool/testing + libtool-bin/testing make maven mercurial