From 2e618df5324c56fbaa30af16aa19deded3d40387 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 9 Jun 2013 19:25:46 +0200 Subject: [PATCH] bind: avoid build impurity by explicitly enabling/disabling features The BIND configure script finds extra dependencies in /usr/include and /usr/lib, and activates additional features if it does. This may cause the build to fail on systems that cannot use a chroot environment. Actively disabling those additional features prevents this issue from occurring. --- pkgs/servers/dns/bind/default.nix | 18 +++++++++++++++--- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index 1df30e25491..4d256f92626 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -17,9 +17,21 @@ stdenv.mkDerivation rec { buildInputs = [ openssl libtool perl libxml2 ]; - /* Why --with-libtool? */ - configureFlags = [ "--with-libtool" "--with-openssl=${openssl}" - "--localstatedir=/var" ]; + configureFlags = [ + "--localstatedir=/var" + "--with-libtool" + "--with-libxml2=${libxml2}" + "--with-openssl=${openssl}" + "--without-atf" + "--without-dlopen" + "--without-docbook-xsl" + "--without-gssapi" + "--without-idn" + "--without-idnlib" + "--without-pkcs11" + "--without-purify" + "--without-python" + ]; meta = { homepage = "http://www.isc.org/software/bind"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b9231c8abf..4ff49789812 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5581,9 +5581,7 @@ let sabnzbd = callPackage ../servers/sabnzbd { }; - bind = callPackage ../servers/dns/bind { - inherit openssl libtool perl; - }; + bind = callPackage ../servers/dns/bind { }; couchdb = callPackage ../servers/http/couchdb { spidermonkey = spidermonkey_185;