chiark / gitweb /
buildserver: support installing packages from Debian/testing
authorHans-Christoph Steiner <hans@eds.org>
Tue, 10 Jan 2017 09:54:21 +0000 (10:54 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 10 Jan 2017 09:56:03 +0000 (10:56 +0100)
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

index 8f2a9b5809123a8c97006314159e9f3296380c1e..a60cdb991ee1e61113d4b68fadce5b1f2a1e1e8d 100644 (file)
@@ -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