changeset 2790:a57beaebd22a

update package gnutls
author Mark Brand <mabrand@mabrand.nl>
date Thu, 27 Sep 2012 11:34:44 +0200
parents f20bbf45b91a
children a4f31aa591e1
files index.html src/gnutls-1-fixes.patch src/gnutls.mk
diffstat 3 files changed, 20 insertions(+), 166 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Wed Sep 26 15:56:53 2012 +0200
+++ b/index.html	Thu Sep 27 11:34:44 2012 +0200
@@ -1185,7 +1185,7 @@
     </tr>
     <tr>
         <td id="gnutls-package">gnutls</td>
-        <td id="gnutls-version">3.1.1</td>
+        <td id="gnutls-version">3.1.2</td>
         <td id="gnutls-website"><a href="http://www.gnu.org/software/gnutls/">GnuTLS</a></td>
     </tr>
     <tr>
--- a/src/gnutls-1-fixes.patch	Wed Sep 26 15:56:53 2012 +0200
+++ b/src/gnutls-1-fixes.patch	Thu Sep 27 11:34:44 2012 +0200
@@ -3,10 +3,10 @@
 
 Contains ad hoc patches for cross building.
 
-From 90387fb055e690a0d47c247f2ec8c2478bc7c942 Mon Sep 17 00:00:00 2001
+From 7cc6a28af1fde387b055cfafe2b73f7e33b48acc Mon Sep 17 00:00:00 2001
 From: Mark Brand <mabrand@mabrand.nl>
 Date: Fri, 28 Oct 2011 09:23:41 +0200
-Subject: [PATCH 1/7] add missing static library linking
+Subject: [PATCH 1/6] add missing static library linking
 
 
 diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
@@ -25,14 +25,14 @@
 1.7.10.4
 
 
-From 622969864d2c2ae3e96572bae6e64e3d585d86eb Mon Sep 17 00:00:00 2001
+From b444c40c36670329480354b1e51b4f24d4f617bf Mon Sep 17 00:00:00 2001
 From: Mark Brand <mabrand@mabrand.nl>
 Date: Thu, 24 Nov 2011 15:06:06 +0100
-Subject: [PATCH 2/7] disable doc and test (mingw-cross-env specific)
+Subject: [PATCH 2/6] disable doc and test (mingw-cross-env specific)
 
 
 diff --git a/Makefile.am b/Makefile.am
-index 2eebb77..1633fcb 100644
+index e866bd3..8fc5d5d 100644
 --- a/Makefile.am
 +++ b/Makefile.am
 @@ -23,7 +23,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-valgrind-tests
@@ -48,19 +48,19 @@
 1.7.10.4
 
 
-From 922dd8e34aeedfd2130339b037b92b61840d72eb Mon Sep 17 00:00:00 2001
+From f7f6a76620f805a7c5f207a1870049719f66d855 Mon Sep 17 00:00:00 2001
 From: Mark Brand <mabrand@mabrand.nl>
 Date: Tue, 3 Apr 2012 13:58:42 +0200
-Subject: [PATCH 3/7] Revert "make dist will also make lzip compressed
+Subject: [PATCH 3/6] Revert "make dist will also make lzip compressed
  tarball"
 
 This reverts commit 97ac1bc58274f651338444693bd75441ba12f46f.
 
 diff --git a/configure.ac b/configure.ac
-index ccd2729..8797ec7 100644
+index d3bec26..23a4d6a 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -25,7 +25,7 @@ AC_INIT([GnuTLS], [3.1.1], [bug-gnutls@gnu.org])
+@@ -25,7 +25,7 @@ AC_INIT([GnuTLS], [3.1.2], [bug-gnutls@gnu.org])
  AC_CONFIG_AUX_DIR([build-aux])
  AC_CONFIG_MACRO_DIR([m4])
  
@@ -73,16 +73,16 @@
 1.7.10.4
 
 
-From fcd06b20700bbf26b740d1c9d22750c829ef6216 Mon Sep 17 00:00:00 2001
+From 51a9cc85a5fda679b63a70fd6d22ccceef02fcc2 Mon Sep 17 00:00:00 2001
 From: Mark Brand <mabrand@mabrand.nl>
 Date: Wed, 6 Jun 2012 09:57:24 +0200
-Subject: [PATCH 4/7] AM_PROG_AR for automake 1.12 compatibility
+Subject: [PATCH 4/6] AM_PROG_AR for automake 1.12 compatibility
 
 Taken from
 http://lists.gnu.org/archive/html/automake/2012-05/msg00014.html
 
 diff --git a/configure.ac b/configure.ac
-index 8797ec7..fb167f9 100644
+index 23a4d6a..63760b3 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -37,6 +37,7 @@ dnl Checks for programs.
@@ -97,17 +97,17 @@
 1.7.10.4
 
 
-From 6b6c5670a25161c61c6bc24a45ede8a4daf6590b Mon Sep 17 00:00:00 2001
+From e91df6db4077b54c0003ca23ace3eba48402af1c Mon Sep 17 00:00:00 2001
 From: Mark Brand <mabrand@mabrand.nl>
 Date: Thu, 16 Aug 2012 11:13:47 +0200
-Subject: [PATCH 5/7] allow automake warnings not to be errors
+Subject: [PATCH 5/6] allow automake warnings not to be errors
 
 
 diff --git a/configure.ac b/configure.ac
-index fb167f9..36b4026 100644
+index 63760b3..4f7622a 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -25,7 +25,7 @@ AC_INIT([GnuTLS], [3.1.1], [bug-gnutls@gnu.org])
+@@ -25,7 +25,7 @@ AC_INIT([GnuTLS], [3.1.2], [bug-gnutls@gnu.org])
  AC_CONFIG_AUX_DIR([build-aux])
  AC_CONFIG_MACRO_DIR([m4])
  
@@ -120,156 +120,10 @@
 1.7.10.4
 
 
-From 46635a2529108e077ee2585bd3de5532415cf68b Mon Sep 17 00:00:00 2001
-From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-Date: Sat, 15 Sep 2012 13:43:28 +0200
-Subject: [PATCH 6/7] mingw32 support. Based on patch by LRN. (cherry picked
- from commit 2cc740eb52abac318176c49f8e8358666c8457cd)
-
-
-diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
-index 8b84f46..4c9eabf 100644
---- a/lib/gnutls_global.c
-+++ b/lib/gnutls_global.c
-@@ -270,6 +270,13 @@ gnutls_global_init (void)
-       goto out;
-     }
- 
-+  result = gnutls_system_global_init ();
-+  if (result < 0)
-+    {
-+      gnutls_assert ();
-+      goto out;
-+    }
-+
- #ifdef ENABLE_PKCS11
-   gnutls_pkcs11_init (GNUTLS_PKCS11_FLAG_AUTO, NULL);
- #endif
-@@ -302,6 +309,7 @@ gnutls_global_deinit (void)
-       asn1_delete_structure (&_gnutls_pkix1_asn);
-       _gnutls_crypto_deregister ();
-       _gnutls_cryptodev_deinit ();
-+      gnutls_system_global_deinit ();
- #ifdef ENABLE_PKCS11
-       gnutls_pkcs11_deinit ();
- #endif
-diff --git a/lib/system.c b/lib/system.c
-index 067f189..b22e07d 100644
---- a/lib/system.c
-+++ b/lib/system.c
-@@ -31,6 +31,11 @@
- #ifdef _WIN32
- # include <windows.h>
- # include <wincrypt.h>
-+#  if defined(__MINGW32__) && !defined(__MINGW64__) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
-+typedef PCCRL_CONTEXT WINAPI (*Type_CertEnumCRLsInStore) (HCERTSTORE hCertStore, PCCRL_CONTEXT pPrevCrlContext);
-+static Type_CertEnumCRLsInStore Loaded_CertEnumCRLsInStore;
-+static HMODULE Crypt32_dll;
-+#  endif
- 
- #else
- # ifdef HAVE_PTHREAD_LOCKS
-@@ -51,10 +56,7 @@
- /* System specific function wrappers.
-  */
- 
--/* wrappers for write() and writev()
-- */
- #ifdef _WIN32
--
- int
- system_errno (gnutls_transport_ptr p)
- {
-@@ -150,9 +152,6 @@ int fd = GNUTLS_POINTER_TO_INT(ptr);
- /* Thread stuff */
- 
- #ifdef HAVE_WIN32_LOCKS
--
--
--/* FIXME: win32 locks are untested */
- static int
- gnutls_system_mutex_init (void **priv)
- {
-@@ -285,6 +284,41 @@ mutex_deinit_func gnutls_mutex_deinit = gnutls_system_mutex_deinit;
- mutex_lock_func gnutls_mutex_lock = gnutls_system_mutex_lock;
- mutex_unlock_func gnutls_mutex_unlock = gnutls_system_mutex_unlock;
- 
-+int
-+gnutls_system_global_init ()
-+{
-+#ifdef _WIN32
-+# if defined(__MINGW32__) && !defined(__MINGW64__) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
-+  HMODULE crypto;
-+  crypto = LoadLibraryA ("Crypt32.dll");
-+
-+  if (crypto == NULL)
-+    return GNUTLS_E_CRYPTO_INIT_FAILED;
-+
-+  Loaded_CertEnumCRLsInStore = (Type_CertEnumCRLsInStore) GetProcAddress (crypto, "CertEnumCRLsInStore");
-+  if (Loaded_CertEnumCRLsInStore == NULL)
-+    {
-+      FreeLibrary (crypto);
-+      return GNUTLS_E_CRYPTO_INIT_FAILED;
-+    }
-+
-+  Crypt32_dll = crypto;
-+# endif
-+#endif
-+  return 0;
-+}
-+
-+void
-+gnutls_system_global_deinit ()
-+{
-+#ifdef _WIN32
-+# if defined(__MINGW32__) && !defined(__MINGW64__) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
-+  FreeLibrary (Crypt32_dll);
-+# endif
-+#endif
-+}
-+
-+
- #define CONFIG_PATH ".gnutls"
- 
- /* Returns a path to store user-specific configuration
-@@ -392,7 +426,7 @@ gnutls_x509_trust_list_add_system_trust(gnutls_x509_trust_list_t list,
-     if (store == NULL) return GNUTLS_E_FILE_ERROR;
- 
-     cert = CertEnumCertificatesInStore(store, NULL);
--    crl = CertEnumCRLsInStore(store, NULL);
-+    crl = Loaded_CertEnumCRLsInStore(store, NULL);
- 
-     while(cert != NULL) 
-       {
-@@ -414,7 +448,7 @@ gnutls_x509_trust_list_add_system_trust(gnutls_x509_trust_list_t list,
-             data.size = crl->cbCrlEncoded;
-             gnutls_x509_trust_list_add_trust_mem(list, NULL, &data, GNUTLS_X509_FMT_DER, tl_flags, tl_vflags);
-           }
--        crl = CertEnumCRLsInStore(store, crl);
-+        crl = Loaded_CertEnumCRLsInStore(store, crl);
-       }
-     CertCloseStore(store, 0);
-   }
-diff --git a/lib/system.h b/lib/system.h
-index 0178bd5..0afbdd2 100644
---- a/lib/system.h
-+++ b/lib/system.h
-@@ -71,4 +71,7 @@ struct timespec ts;
- 
- int _gnutls_find_config_path(char* path, size_t max_size);
- 
-+int gnutls_system_global_init ();
-+void gnutls_system_global_deinit ();
-+
- #endif /* SYSTEM_H */
--- 
-1.7.10.4
-
-
-From ee1fab5fb04a698fb50e6ba2b571424ef40ffbbe Mon Sep 17 00:00:00 2001
+From 969e618b7945e786fe23bc5a3643bf5e9e8adbd4 Mon Sep 17 00:00:00 2001
 From: Mark Brand <mabrand@mabrand.nl>
 Date: Thu, 20 Sep 2012 12:59:19 +0200
-Subject: [PATCH 7/7] add missing libs to Libs.private
+Subject: [PATCH 6/6] add missing libs to Libs.private
 
 
 diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
--- a/src/gnutls.mk	Wed Sep 26 15:56:53 2012 +0200
+++ b/src/gnutls.mk	Thu Sep 27 11:34:44 2012 +0200
@@ -2,7 +2,7 @@
 # See index.html for further information.
 
 PKG             := gnutls
-$(PKG)_CHECKSUM := 4badef78839de0d2606cb1767f44232fb606d941
+$(PKG)_CHECKSUM := 38591da6484e7f47effaf301adde5fec00b18c2d
 $(PKG)_SUBDIR   := gnutls-$($(PKG)_VERSION)
 $(PKG)_FILE     := gnutls-$($(PKG)_VERSION).tar.xz
 $(PKG)_URL      := http://ftp.gnu.org/gnu/gnutls/$($(PKG)_FILE)