openldap: Add gcc5 compat patch

This commit is contained in:
William A. Kennington III
2015-06-17 17:51:12 -07:00
parent 4e5e44140b
commit ebb2e41611
2 changed files with 53 additions and 1 deletions
@@ -1,4 +1,4 @@
{stdenv, fetchurl, openssl, cyrus_sasl, db, groff}:
{ stdenv, fetchurl, autoconf, openssl, cyrus_sasl, db, groff }:
stdenv.mkDerivation rec {
name = "openldap-2.4.40";
@@ -8,8 +8,17 @@ stdenv.mkDerivation rec {
sha256 = "1nyslrgwxwilgv5sixc37svls5rbvhsv9drb7hlrjr2vqaji29ni";
};
# Last tested for openldap 2.4.40
patches = [ ./fix-libdb-detection-gcc5.patch ];
nativeBuildInputs = [ autoconf ];
buildInputs = [ openssl cyrus_sasl db groff ];
# NOTE: Only needed for the gcc5 patch
preConfigure = ''
autoconf
'';
configureFlags =
[ "--enable-overlays"
"--disable-dependency-tracking" # speeds up one-time build