pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/curl curl: fix a regression with -O -J in 7.61.0 u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/921c05fea6a1
branches:  trunk
changeset: 311050:921c05fea6a1
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jul 31 09:34:49 2018 +0000

description:
curl: fix a regression with -O -J in 7.61.0 using upstream patch.

Bump PKGREVISION.

diffstat:

 www/curl/Makefile                          |   3 ++-
 www/curl/distinfo                          |   3 ++-
 www/curl/patches/patch-src_tool__cb__hdr.c |  29 +++++++++++++++++++++++++++++
 3 files changed, 33 insertions(+), 2 deletions(-)

diffs (59 lines):

diff -r 9c6e08ddb56d -r 921c05fea6a1 www/curl/Makefile
--- a/www/curl/Makefile Tue Jul 31 07:04:29 2018 +0000
+++ b/www/curl/Makefile Tue Jul 31 09:34:49 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.197 2018/07/11 18:13:26 adam Exp $
+# $NetBSD: Makefile,v 1.198 2018/07/31 09:34:49 wiz Exp $
 
 DISTNAME=      curl-7.61.0
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  https://curl.haxx.se/download/
 EXTRACT_SUFX=  .tar.bz2
diff -r 9c6e08ddb56d -r 921c05fea6a1 www/curl/distinfo
--- a/www/curl/distinfo Tue Jul 31 07:04:29 2018 +0000
+++ b/www/curl/distinfo Tue Jul 31 09:34:49 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.144 2018/07/11 18:13:26 adam Exp $
+$NetBSD: distinfo,v 1.145 2018/07/31 09:34:49 wiz Exp $
 
 SHA1 (curl-7.61.0.tar.bz2) = ddebde47541b514f6ba6ea03a488f053ae95af1a
 RMD160 (curl-7.61.0.tar.bz2) = 6101f3a189c5a7cc7b0bdd56fc6e80dc37ccdaa8
@@ -7,3 +7,4 @@
 SHA1 (patch-configure) = ba8abac55f11a53d07235e57d21ce5b32a421902
 SHA1 (patch-curl-config.in) = 363359665985cc14f36ddf47fc3480f1200e3533
 SHA1 (patch-lib_hostcheck.c) = 8e772d3f91cdafae17281cc19004269ece0cf308
+SHA1 (patch-src_tool__cb__hdr.c) = ac3b75a7d8702e25f4eb0596f615a8d60d4066f7
diff -r 9c6e08ddb56d -r 921c05fea6a1 www/curl/patches/patch-src_tool__cb__hdr.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/curl/patches/patch-src_tool__cb__hdr.c        Tue Jul 31 09:34:49 2018 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_tool__cb__hdr.c,v 1.1 2018/07/31 09:34:49 wiz Exp $
+
+curl: use Content-Disposition before the "URL end" for -OJ
+
+Regression introduced in 7.61.0
+
+https://github.com/curl/curl/commit/e78f2cfe56c39a6c32191c207aae683de0e9a042
+
+--- src/tool_cb_hdr.c.orig     2018-07-09 06:42:12.000000000 +0000
++++ src/tool_cb_hdr.c
+@@ -103,9 +103,6 @@ size_t tool_header_cb(char *ptr, size_t 
+      (protocol & (CURLPROTO_HTTPS|CURLPROTO_HTTP))) {
+     const char *p = str + 20;
+ 
+-    if(!outs->stream && !tool_create_output_file(outs, FALSE))
+-      return failure;
+-
+     /* look for the 'filename=' parameter
+        (encoded filenames (*=) are not supported) */
+     for(;;) {
+@@ -153,6 +150,8 @@ size_t tool_header_cb(char *ptr, size_t 
+       }
+       break;
+     }
++    if(!outs->stream && !tool_create_output_file(outs, FALSE))
++      return failure;
+   }
+ 
+   if(hdrcbdata->config->show_headers &&



Home | Main Index | Thread Index | Old Index