Hi Christophe,

 > checking for GSSAPI library... looking in /usr/lib

I have attached a patch to this message that I believe will remedy this
issue. Could you please try whether it works for you and let me know the
outcome?

Take care,
Peter


>From 79f7e3dc58896097dc67440d068c7ad00a45ff76 Mon Sep 17 00:00:00 2001
From: Peter Simons <[email protected]>
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 1df30e2..4d256f9 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 89d265c..37af0cd 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5574,9 +5574,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;
-- 
1.8.2.3

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to