summaryrefslogtreecommitdiff
path: root/www/curl/patches
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2015-08-08 02:44:16 +0000
committerspz <spz@pkgsrc.org>2015-08-08 02:44:16 +0000
commit7c5aede27833f5e4d2b54da0560fd505c3ed1261 (patch)
treee33d97d5a6f7977b5d097795bc775719d75fe94e /www/curl/patches
parent40b78b0f7fa3cecd4e060bd72424c6a1b82e753b (diff)
downloadpkgsrc-7c5aede27833f5e4d2b54da0560fd505c3ed1261.tar.gz
reanimate curl-7.43.0 and add the upstream fix for
http://curl.haxx.se/mail/lib-2015-06/0122.html found in https://github.com/bagder/curl/commit/903b6e05565bf826b4194447864288642214b094
Diffstat (limited to 'www/curl/patches')
-rw-r--r--www/curl/patches/patch-aa34
-rw-r--r--www/curl/patches/patch-curl-config.in4
-rw-r--r--www/curl/patches/patch-lib_hostcheck.c6
-rw-r--r--www/curl/patches/patch-lib_http2.c18
-rw-r--r--www/curl/patches/patch-lib_multi.c21
-rw-r--r--www/curl/patches/patch-lib_transfer.c21
6 files changed, 60 insertions, 44 deletions
diff --git a/www/curl/patches/patch-aa b/www/curl/patches/patch-aa
index 5dd9c050bfa..790578ad599 100644
--- a/www/curl/patches/patch-aa
+++ b/www/curl/patches/patch-aa
@@ -1,9 +1,9 @@
-$NetBSD: patch-aa,v 1.32 2015/06/30 23:00:21 spz Exp $
+$NetBSD: patch-aa,v 1.33 2015/08/08 02:44:16 spz Exp $
builtin krb5-config in platforms such as solaris do not support
the gssapi option, and need an explicit -lgss
---- configure.orig 2015-04-21 07:21:35.000000000 +0000
+--- configure.orig 2015-06-15 21:31:47.000000000 +0000
+++ configure
@@ -3703,6 +3703,7 @@ $as_echo "$as_me: $xc_bad_var_msg librar
;;
@@ -13,7 +13,7 @@ the gssapi option, and need an explicit -lgss
if test $xc_bad_var_cflags = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
-@@ -16682,7 +16683,7 @@ squeeze() {
+@@ -16689,7 +16690,7 @@ squeeze() {
#
@@ -22,19 +22,20 @@ the gssapi option, and need an explicit -lgss
#
if test "$compiler_id" = "GNU_C" ||
test "$compiler_id" = "CLANG"; then
-@@ -21131,6 +21132,11 @@ $as_echo "yes" >&6; }
+@@ -21137,7 +21138,11 @@ $as_echo "yes" >&6; }
+ if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
- elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
- GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
-+ if $GSSAPI_ROOT/bin/krb5-config --cflags gssapi 2>&1 | grep "Unknown option" >/dev/null; then
-+ GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags`
+ elif test -f "$KRB5CONFIG"; then
+- GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
++ if `$KRB5CONFIG --cflags gssapi` 2>&1 | grep "Unknown option" >/dev/null; then
++ GSSAPI_INCS=`$KRB5CONFIG --cflags`
+ else
-+ GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
++ GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
+ fi
- elif test -f "$KRB5CONFIG"; then
- GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
elif test "$GSSAPI_ROOT" != "yes"; then
-@@ -21305,7 +21311,7 @@ $as_echo "#define HAVE_GSSAPI 1" >>confd
+ GSSAPI_INCS="-I$GSSAPI_ROOT/include"
+ fi
+@@ -21310,7 +21315,7 @@ $as_echo "#define HAVE_GSSAPI 1" >>confd
LIBS="-lgss $LIBS"
;;
*)
@@ -43,12 +44,3 @@ the gssapi option, and need an explicit -lgss
;;
esac
fi
-@@ -24264,7 +24270,7 @@ _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
- $as_echo "$capath (capath)" >&6; }
- fi
-- if test "x$ca" == "xno" && test "x$capath" == "xno"; then
-+ if test "x$ca" = "xno" && test "x$capath" = "xno"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
diff --git a/www/curl/patches/patch-curl-config.in b/www/curl/patches/patch-curl-config.in
index fc3476a6aea..723caa8b4e9 100644
--- a/www/curl/patches/patch-curl-config.in
+++ b/www/curl/patches/patch-curl-config.in
@@ -1,8 +1,8 @@
-$NetBSD: patch-curl-config.in,v 1.6 2015/06/30 23:00:21 spz Exp $
+$NetBSD: patch-curl-config.in,v 1.7 2015/08/08 02:44:16 spz Exp $
- make "curl-config --libs" return proper ldflags for shared libraries
---- curl-config.in.orig 2014-01-05 22:07:54.000000000 +0000
+--- curl-config.in.orig 2015-06-03 07:38:20.000000000 +0000
+++ curl-config.in
@@ -148,9 +148,9 @@ while test $# -gt 0; do
CURLLIBDIR=""
diff --git a/www/curl/patches/patch-lib_hostcheck.c b/www/curl/patches/patch-lib_hostcheck.c
index d0480af87b3..1ac2251f5e4 100644
--- a/www/curl/patches/patch-lib_hostcheck.c
+++ b/www/curl/patches/patch-lib_hostcheck.c
@@ -1,11 +1,11 @@
-$NetBSD: patch-lib_hostcheck.c,v 1.3 2015/06/30 23:00:21 spz Exp $
+$NetBSD: patch-lib_hostcheck.c,v 1.4 2015/08/08 02:44:16 spz Exp $
Add missing header for DragonflyBSD.
PR 48691 by David Shao.
---- lib/hostcheck.c.orig 2014-03-25 22:01:37.000000000 +0000
+--- lib/hostcheck.c.orig 2015-06-03 07:38:20.000000000 +0000
+++ lib/hostcheck.c
-@@ -31,6 +31,13 @@
+@@ -34,6 +34,13 @@
#include "inet_pton.h"
#include "curl_memory.h"
diff --git a/www/curl/patches/patch-lib_http2.c b/www/curl/patches/patch-lib_http2.c
deleted file mode 100644
index 72e400298b7..00000000000
--- a/www/curl/patches/patch-lib_http2.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-lib_http2.c,v 1.3 2015/06/30 23:00:21 spz Exp $
-
-Update compatibility for nghttp2 1.0. This patch should become obsolete
-with curl-7.43.
-
---- lib/http2.c.orig 2015-04-29 06:06:52.000000000 +0000
-+++ lib/http2.c
-@@ -1019,8 +1019,8 @@ CURLcode Curl_http2_switched(struct conn
-
- rv = (int) ((Curl_send*)httpc->send_underlying)
- (conn, FIRSTSOCKET,
-- NGHTTP2_CLIENT_CONNECTION_PREFACE,
-- NGHTTP2_CLIENT_CONNECTION_PREFACE_LEN,
-+ NGHTTP2_CLIENT_MAGIC,
-+ NGHTTP2_CLIENT_MAGIC_LEN,
- &result);
- if(result)
- /* TODO: This may get CURLE_AGAIN */
diff --git a/www/curl/patches/patch-lib_multi.c b/www/curl/patches/patch-lib_multi.c
new file mode 100644
index 00000000000..8ac73899785
--- /dev/null
+++ b/www/curl/patches/patch-lib_multi.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-lib_multi.c,v 1.3 2015/08/08 02:44:16 spz Exp $
+
+part of
+https://github.com/bagder/curl/commit/903b6e05565bf826b4194447864288642214b094
+fixing
+http://curl.haxx.se/mail/lib-2015-06/0122.html
+
+--- lib/multi.c.orig 2015-06-15 21:14:25.000000000 +0000
++++ lib/multi.c
+@@ -402,11 +402,6 @@ CURLMcode curl_multi_add_handle(CURLM *m
+ /* Point to the multi's connection cache */
+ data->state.conn_cache = &multi->conn_cache;
+
+- if(data->set.httpreq == HTTPREQ_PUT)
+- data->state.infilesize = data->set.filesize;
+- else
+- data->state.infilesize = data->set.postfieldsize;
+-
+ /* This adds the new entry at the 'end' of the doubly-linked circular
+ list of SessionHandle structs to try and maintain a FIFO queue so
+ the pipelined requests are in order. */
diff --git a/www/curl/patches/patch-lib_transfer.c b/www/curl/patches/patch-lib_transfer.c
new file mode 100644
index 00000000000..c99b0df5134
--- /dev/null
+++ b/www/curl/patches/patch-lib_transfer.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-lib_transfer.c,v 1.1 2015/08/08 02:44:16 spz Exp $
+
+part of
+https://github.com/bagder/curl/commit/903b6e05565bf826b4194447864288642214b094
+fixing
+http://curl.haxx.se/mail/lib-2015-06/0122.html
+
+--- lib/transfer.c.orig 2015-06-14 21:31:01.000000000 +0000
++++ lib/transfer.c
+@@ -1315,6 +1315,11 @@ CURLcode Curl_pretransfer(struct Session
+ Curl_safefree(data->info.wouldredirect);
+ data->info.wouldredirect = NULL;
+
++ if(data->set.httpreq == HTTPREQ_PUT)
++ data->state.infilesize = data->set.filesize;
++ else
++ data->state.infilesize = data->set.postfieldsize;
++
+ /* If there is a list of cookie files to read, do it now! */
+ if(data->change.cookielist)
+ Curl_cookie_loadfiles(data);