changeset 2098:3aab74b6f626

update package curl
author Mark Brand <mabrand@mabrand.nl>
date Wed, 16 Nov 2011 00:59:15 +0100
parents 0147945b61e6
children 201698debdf0
files src/curl-1-fixes.patch src/curl.mk
diffstat 2 files changed, 5 insertions(+), 89 deletions(-) [+]
line wrap: on
line diff
--- a/src/curl-1-fixes.patch	Tue Nov 15 21:30:15 2011 +0100
+++ b/src/curl-1-fixes.patch	Wed Nov 16 00:59:15 2011 +0100
@@ -5,94 +5,10 @@
 http://github.com/bagder/curl
 Also contains mingw-cross-env specific fixes.
 
-From 39817fb04ff2ea4a693a1e853ca5fbd469c2b531 Mon Sep 17 00:00:00 2001
-From: Tim Harder <radhermit@gmail.com>
-Date: Wed, 19 Oct 2011 10:08:56 +0200
-Subject: [PATCH 1/3] gtls: only call gnutls_transport_set_lowat with
- <gnutls-2.12.0
-
-The default lowat level for gnutls-2.12* is set to zero to avoid
-unnecessary system calls and the gnutls_transport_set_lowat function has
-been totally removed in >=gnutls-3 which causes build failures.
-
-Therefore, the function shouldn't be used except for versions that
-require it, <gnutls-2.12.0.
-(cherry picked from commit 8036da870c5b413a83097b3486c58d13910a471a)
----
- lib/gtls.c |    2 ++
- 1 files changed, 2 insertions(+), 0 deletions(-)
-
-diff --git a/lib/gtls.c b/lib/gtls.c
-index f75a815..7ca46c8 100644
---- a/lib/gtls.c
-+++ b/lib/gtls.c
-@@ -476,8 +476,10 @@ gtls_connect_step1(struct connectdata *conn,
-   gnutls_transport_set_push_function(session, Curl_gtls_push);
-   gnutls_transport_set_pull_function(session, Curl_gtls_pull);
- 
-+#if GNUTLS_VERSION_NUMBER < 0x020c00
-   /* lowat must be set to zero when using custom push and pull functions. */
-   gnutls_transport_set_lowat(session, 0);
-+#endif
- 
-   /* This might be a reconnect, so we check for a session ID in the cache
-      to speed up things */
--- 
-1.7.7
-
-
-From 878969d2e89751ff445b1f6cb6ac05ad0bc07eb6 Mon Sep 17 00:00:00 2001
-From: Yang Tse <yangsita@gmail.com>
-Date: Sat, 29 Oct 2011 14:58:50 +0200
-Subject: [PATCH 2/3] gtls.c: gnutls_transport_set_global_errno() deprecated
- in version 2.12.3 (cherry picked from commit
- f5bb37018647f6088398ca127235ce776eec9bbe)
-
----
- lib/gtls.c |   13 +++++++++++--
- 1 files changed, 11 insertions(+), 2 deletions(-)
-
-diff --git a/lib/gtls.c b/lib/gtls.c
-index 7ca46c8..c1e9cae 100644
---- a/lib/gtls.c
-+++ b/lib/gtls.c
-@@ -78,6 +78,17 @@ static void tls_log_func(int level, const char *str)
- #endif
- static bool gtls_inited = FALSE;
- 
-+#if defined(GNUTLS_VERSION_NUMBER)
-+#  if (GNUTLS_VERSION_NUMBER >= 0x020c00)
-+#    undef gnutls_transport_set_lowat
-+#    define gnutls_transport_set_lowat(A,B) Curl_nop_stmt
-+#  endif
-+#  if (GNUTLS_VERSION_NUMBER >= 0x020c03)
-+#    undef gnutls_transport_set_global_errno
-+#    define gnutls_transport_set_global_errno(A) SET_ERRNO((A))
-+#  endif
-+#endif
-+
- /*
-  * Custom push and pull callback functions used by GNU TLS to read and write
-  * to the socket.  These functions are simple wrappers to send() and recv()
-@@ -476,10 +487,8 @@ gtls_connect_step1(struct connectdata *conn,
-   gnutls_transport_set_push_function(session, Curl_gtls_push);
-   gnutls_transport_set_pull_function(session, Curl_gtls_pull);
- 
--#if GNUTLS_VERSION_NUMBER < 0x020c00
-   /* lowat must be set to zero when using custom push and pull functions. */
-   gnutls_transport_set_lowat(session, 0);
--#endif
- 
-   /* This might be a reconnect, so we check for a session ID in the cache
-      to speed up things */
--- 
-1.7.7
-
-
-From 40ebff7ac932dd2c920d02c8a7aa9da584eafda1 Mon Sep 17 00:00:00 2001
+From 292b5d892f8858a6e9a6f0c94e08c4b15e547e87 Mon Sep 17 00:00:00 2001
 From: Volker Grabsch <vog@notjusthosting.com>
 Date: Fri, 28 Oct 2011 13:48:04 +0200
-Subject: [PATCH 3/3] static linking for mingw-cross-env
+Subject: [PATCH] static linking for mingw-cross-env
 
 ---
  include/curl/curlbuild.h.in |    3 +++
@@ -113,5 +29,5 @@
  /* header file ws2tcpip.h must be included by the external interface. */
  #undef CURL_PULL_WS2TCPIP_H
 -- 
-1.7.7
+1.7.7.3
 
--- a/src/curl.mk	Tue Nov 15 21:30:15 2011 +0100
+++ b/src/curl.mk	Wed Nov 16 00:59:15 2011 +0100
@@ -4,8 +4,8 @@
 # cURL
 PKG             := curl
 $(PKG)_IGNORE   :=
-$(PKG)_VERSION  := 7.22.0
-$(PKG)_CHECKSUM := 8e7b2b0ca933812614ec0eade2f83e77632247d6
+$(PKG)_VERSION  := 7.23.0
+$(PKG)_CHECKSUM := 026cbf70672174f96ac719d96025a505e00e3f6b
 $(PKG)_SUBDIR   := curl-$($(PKG)_VERSION)
 $(PKG)_FILE     := curl-$($(PKG)_VERSION).tar.bz2
 $(PKG)_WEBSITE  := http://curl.haxx.se/libcurl/