From c65a3e198c0ea1ad945969aa61185a046728cb83 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 6 Jun 2013 10:43:26 +0200 Subject: [PATCH] heimdal: remove obsolete 1.3.x version --- .../libraries/kerberos/heimdal-1.5.2.nix | 27 ----------- .../libraries/kerberos/heimdal.nix | 6 +-- .../libraries/kerberos/no-md2.patch | 46 ------------------- pkgs/top-level/all-packages.nix | 8 +--- 4 files changed, 4 insertions(+), 83 deletions(-) delete mode 100644 pkgs/development/libraries/kerberos/heimdal-1.5.2.nix delete mode 100644 pkgs/development/libraries/kerberos/no-md2.patch diff --git a/pkgs/development/libraries/kerberos/heimdal-1.5.2.nix b/pkgs/development/libraries/kerberos/heimdal-1.5.2.nix deleted file mode 100644 index 19d4a7893f22..000000000000 --- a/pkgs/development/libraries/kerberos/heimdal-1.5.2.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ stdenv, fetchurl, openldap, readline, db4, openssl, cyrus_sasl, sqlite} : - -stdenv.mkDerivation rec { - name = "heimdal-1.5.2"; - - src = fetchurl { - urls = [ - "http://www.h5l.org/dist/src/${name}.tar.gz" - "http://ftp.pdc.kth.se/pub/heimdal/src/${name}.tar.gz" - ]; - sha256 = "22603f282f31173533b939d289f3374258aa1ccccbe51ee088d7568d321279ec"; - }; - - ## ugly, X should be made an option - configureFlags = [ - "--with-openldap=${openldap}" - "--with-sqlite3=${sqlite}" - "--without-x" - ]; - # dont succeed with --libexec=$out/sbin, so - postInstall = '' - mv $out/libexec/* $out/sbin/ - rmdir $out/libexec - ''; - - propagatedBuildInputs = [ readline db4 openssl openldap cyrus_sasl sqlite]; -} diff --git a/pkgs/development/libraries/kerberos/heimdal.nix b/pkgs/development/libraries/kerberos/heimdal.nix index 72adb808aa15..19d4a7893f22 100644 --- a/pkgs/development/libraries/kerberos/heimdal.nix +++ b/pkgs/development/libraries/kerberos/heimdal.nix @@ -1,18 +1,16 @@ { stdenv, fetchurl, openldap, readline, db4, openssl, cyrus_sasl, sqlite} : stdenv.mkDerivation rec { - name = "heimdal-1.3.3"; + name = "heimdal-1.5.2"; src = fetchurl { urls = [ "http://www.h5l.org/dist/src/${name}.tar.gz" "http://ftp.pdc.kth.se/pub/heimdal/src/${name}.tar.gz" ]; - sha256 = "0c465by1g7niy3nkfs5mwrm6j6w2cvrf4988h3lpmj194lkjp3cc"; + sha256 = "22603f282f31173533b939d289f3374258aa1ccccbe51ee088d7568d321279ec"; }; - patches = [ ./no-md2.patch ]; - ## ugly, X should be made an option configureFlags = [ "--with-openldap=${openldap}" diff --git a/pkgs/development/libraries/kerberos/no-md2.patch b/pkgs/development/libraries/kerberos/no-md2.patch deleted file mode 100644 index c13671c988e3..000000000000 --- a/pkgs/development/libraries/kerberos/no-md2.patch +++ /dev/null @@ -1,46 +0,0 @@ -http://old.nabble.com/-patch--fix-build-with-openssl-1.0-td28388913.html - -diff -Naur -x '*~' heimdal-1.3.2/include/crypto-headers.h heimdal-1.3.2-fix-build-openssl-1.0/include/crypto-headers.h ---- heimdal-1.3.2/include/crypto-headers.h 2010-03-22 05:11:24.000000000 +0100 -+++ heimdal-1.3.2-fix-build-openssl-1.0/include/crypto-headers.h 2010-04-28 14:54:53.000000000 +0200 -@@ -13,7 +13,9 @@ - #include - #include - #include -+#ifdef HAVE_OPENSSL_MD2_H - #include -+#endif - #include - #include - #include -diff -Naur -x '*~' heimdal-1.3.2/lib/hx509/crypto.c heimdal-1.3.2-fix-build-openssl-1.0/lib/hx509/crypto.c ---- heimdal-1.3.2/lib/hx509/crypto.c 2010-03-22 05:11:24.000000000 +0100 -+++ heimdal-1.3.2-fix-build-openssl-1.0/lib/hx509/crypto.c 2010-04-28 15:12:20.000000000 +0200 -@@ -1354,6 +1354,7 @@ - NULL - }; - -+#ifdef HAVE_OPENSSL_MD2_H - static const struct signature_alg md2_alg = { - "rsa-md2", - &asn1_oid_id_rsa_digest_md2, -@@ -1366,6 +1367,7 @@ - evp_md_verify_signature, - NULL - }; -+#endif - - /* - * Order matter in this structure, "best" first for each "key -@@ -1387,7 +1389,9 @@ - &sha256_alg, - &sha1_alg, - &md5_alg, -+#ifdef HAVE_OPENSSL_MD2_H - &md2_alg, -+#endif - NULL - }; - - - diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e2443dbba762..a26c92e21ec5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4107,13 +4107,9 @@ let gwenhywfar = callPackage ../development/libraries/gwenhywfar { }; # TODO : Add MIT Kerberos and let admin choose. - kerberos = heimdal_1_5_2; + kerberos = heimdal; - heimdal = heimdal_1_5_2; - - heimdal_1_3_3 = callPackage ../development/libraries/kerberos/heimdal.nix { }; - - heimdal_1_5_2 = callPackage ../development/libraries/kerberos/heimdal-1.5.2.nix { }; + heimdal = callPackage ../development/libraries/kerberos/heimdal.nix { }; harfbuzz = callPackage ../development/libraries/harfbuzz { };