From 17faf910b76841e7ad4b31036be86a0e309c274e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 30 Jun 2016 11:06:34 +0200 Subject: [PATCH] gnutls: fixup various problems - disable a test that started failing due to date expiration, see #16610 - bash doesn't need adding - defining patchPhase was overriding passed postPatch and patches --- pkgs/development/libraries/gnutls/generic.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/gnutls/generic.nix b/pkgs/development/libraries/gnutls/generic.nix index 3af07f4c6f9f..709da27e7978 100644 --- a/pkgs/development/libraries/gnutls/generic.nix +++ b/pkgs/development/libraries/gnutls/generic.nix @@ -11,11 +11,17 @@ assert guileBindings -> guile != null; stdenv.mkDerivation { name = "gnutls-${version}"; - inherit src patches postPatch; + inherit src patches; outputs = [ "dev" "out" "bin" "man" "docdev" ]; outputInfo = "docdev"; + postPatch = '' + sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \ + -i tests/cert-tests/name-constraints + '' + postPatch; + + preConfigure = "patchShebangs ."; configureFlags = lib.optional stdenv.isLinux "--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt" ++ [ @@ -29,7 +35,7 @@ stdenv.mkDerivation { # for the actual fix. enableParallelBuilding = !guileBindings; - buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen nettools bash ] + buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen nettools ] ++ lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) libiconv ++ lib.optional (tpmSupport && stdenv.isLinux) trousers ++ [ unbound ] @@ -37,10 +43,6 @@ stdenv.mkDerivation { nativeBuildInputs = [ perl pkgconfig ] ++ nativeBuildInputs; - patchPhase = '' - patchShebangs . - ''; - # XXX: Gnulib's `test-select' fails on FreeBSD: # http://hydra.nixos.org/build/2962084/nixlog/1/raw . doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);