From owner-svn-ports-all@freebsd.org Thu May 30 22:12:21 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A48BA15AC460; Thu, 30 May 2019 22:12:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49F2570DBB; Thu, 30 May 2019 22:12:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 21E7C1F4D9; Thu, 30 May 2019 22:12:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4UMCLJX047665; Thu, 30 May 2019 22:12:21 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4UMCKiX047662; Thu, 30 May 2019 22:12:20 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201905302212.x4UMCKiX047662@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Thu, 30 May 2019 22:12:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r503109 - in branches/2019Q2/ftp/curl: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in branches/2019Q2/ftp/curl: . files X-SVN-Commit-Revision: 503109 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 49F2570DBB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.965,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2019 22:12:21 -0000 Author: sunpoet Date: Thu May 30 22:12:20 2019 New Revision: 503109 URL: https://svnweb.freebsd.org/changeset/ports/503109 Log: MFH: r503090 Fix runtime with PROXY disabled - Bump PORTREVISION for package change Obtained from: https://github.com/curl/curl/commit/f4f485c17b9a8b41c23ad1fa9fbcfc1973172ead Approved by: ports-secteam (blanket) Added: branches/2019Q2/ftp/curl/files/patch-src-tool_setopt.c - copied unchanged from r503090, head/ftp/curl/files/patch-src-tool_setopt.c branches/2019Q2/ftp/curl/files/patch-src-tool_setopt.h - copied unchanged from r503090, head/ftp/curl/files/patch-src-tool_setopt.h Modified: branches/2019Q2/ftp/curl/Makefile Directory Properties: branches/2019Q2/ (props changed) Modified: branches/2019Q2/ftp/curl/Makefile ============================================================================== --- branches/2019Q2/ftp/curl/Makefile Thu May 30 21:57:07 2019 (r503108) +++ branches/2019Q2/ftp/curl/Makefile Thu May 30 22:12:20 2019 (r503109) @@ -3,7 +3,7 @@ PORTNAME= curl PORTVERSION= 7.65.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp net www MASTER_SITES= https://curl.haxx.se/download/ \ LOCAL/sunpoet Copied: branches/2019Q2/ftp/curl/files/patch-src-tool_setopt.c (from r503090, head/ftp/curl/files/patch-src-tool_setopt.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q2/ftp/curl/files/patch-src-tool_setopt.c Thu May 30 22:12:20 2019 (r503109, copy of r503090, head/ftp/curl/files/patch-src-tool_setopt.c) @@ -0,0 +1,61 @@ +Obtained from: https://github.com/curl/curl/commit/f4f485c17b9a8b41c23ad1fa9fbcfc1973172ead + +--- src/tool_setopt.c.orig 2019-05-16 20:54:53 UTC ++++ src/tool_setopt.c +@@ -713,4 +713,56 @@ CURLcode tool_setopt(CURL *curl, bool st + return ret; + } + ++#else /* CURL_DISABLE_LIBCURL_OPTION */ ++ ++#include "tool_cfgable.h" ++#include "tool_setopt.h" ++ + #endif /* CURL_DISABLE_LIBCURL_OPTION */ ++ ++CURLcode tool_real_error(CURLcode result, CURLoption tag) ++{ ++#ifdef CURL_DISABLE_PROXY ++ switch(tag) { ++ case CURLOPT_HAPROXYPROTOCOL: ++ case CURLOPT_HTTPPROXYTUNNEL: ++ case CURLOPT_NOPROXY: ++ case CURLOPT_PRE_PROXY: ++ case CURLOPT_PROXY: ++ case CURLOPT_PROXYAUTH: ++ case CURLOPT_PROXY_CAINFO: ++ case CURLOPT_PROXY_CAPATH: ++ case CURLOPT_PROXY_CRLFILE: ++ case CURLOPT_PROXYHEADER: ++ case CURLOPT_PROXY_KEYPASSWD: ++ case CURLOPT_PROXYPASSWORD: ++ case CURLOPT_PROXY_PINNEDPUBLICKEY: ++ case CURLOPT_PROXYPORT: ++ case CURLOPT_PROXY_SERVICE_NAME: ++ case CURLOPT_PROXY_SSLCERT: ++ case CURLOPT_PROXY_SSLCERTTYPE: ++ case CURLOPT_PROXY_SSL_CIPHER_LIST: ++ case CURLOPT_PROXY_SSLKEY: ++ case CURLOPT_PROXY_SSLKEYTYPE: ++ case CURLOPT_PROXY_SSL_OPTIONS: ++ case CURLOPT_PROXY_SSL_VERIFYHOST: ++ case CURLOPT_PROXY_SSL_VERIFYPEER: ++ case CURLOPT_PROXY_SSLVERSION: ++ case CURLOPT_PROXY_TLS13_CIPHERS: ++ case CURLOPT_PROXY_TLSAUTH_PASSWORD: ++ case CURLOPT_PROXY_TLSAUTH_TYPE: ++ case CURLOPT_PROXY_TLSAUTH_USERNAME: ++ case CURLOPT_PROXY_TRANSFER_MODE: ++ case CURLOPT_PROXYTYPE: ++ case CURLOPT_PROXYUSERNAME: ++ case CURLOPT_PROXYUSERPWD: ++ return CURLE_OK; /* pretend it worked */ ++ default: ++ break; ++ } ++#else ++ (void)tag; ++#endif ++ return result; ++} ++ Copied: branches/2019Q2/ftp/curl/files/patch-src-tool_setopt.h (from r503090, head/ftp/curl/files/patch-src-tool_setopt.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q2/ftp/curl/files/patch-src-tool_setopt.h Thu May 30 22:12:20 2019 (r503109, copy of r503090, head/ftp/curl/files/patch-src-tool_setopt.h) @@ -0,0 +1,90 @@ +Obtained from: https://github.com/curl/curl/commit/f4f485c17b9a8b41c23ad1fa9fbcfc1973172ead + +--- src/tool_setopt.h.orig 2019-04-15 07:05:14 UTC ++++ src/tool_setopt.h +@@ -29,11 +29,14 @@ + * Macros used in operate() + */ + +-#define SETOPT_CHECK(v) do { \ +- result = (v); \ +- if(result) \ +- goto show_error; \ +-} WHILE_FALSE ++#define SETOPT_CHECK(v,opt) do { \ ++ result = tool_real_error((v), opt); \ ++ if(result) \ ++ goto show_error; \ ++ } WHILE_FALSE ++ ++/* allow removed features to simulate success: */ ++CURLcode tool_real_error(CURLcode result, CURLoption tag); + + #ifndef CURL_DISABLE_LIBCURL_OPTION + +@@ -97,25 +100,25 @@ CURLcode tool_setopt(CURL *curl, bool st + const char *name, CURLoption tag, ...); + + #define my_setopt(x,y,z) \ +- SETOPT_CHECK(tool_setopt(x, FALSE, global, #y, y, z)) ++ SETOPT_CHECK(tool_setopt(x, FALSE, global, #y, y, z), y) + + #define my_setopt_str(x,y,z) \ +- SETOPT_CHECK(tool_setopt(x, TRUE, global, #y, y, z)) ++ SETOPT_CHECK(tool_setopt(x, TRUE, global, #y, y, z), y) + + #define my_setopt_enum(x,y,z) \ +- SETOPT_CHECK(tool_setopt_enum(x, global, #y, y, setopt_nv_ ## y, z)) ++ SETOPT_CHECK(tool_setopt_enum(x, global, #y, y, setopt_nv_ ## y, z), y) + + #define my_setopt_flags(x,y,z) \ +- SETOPT_CHECK(tool_setopt_flags(x, global, #y, y, setopt_nv_ ## y, z)) ++ SETOPT_CHECK(tool_setopt_flags(x, global, #y, y, setopt_nv_ ## y, z), y) + + #define my_setopt_bitmask(x,y,z) \ +- SETOPT_CHECK(tool_setopt_bitmask(x, global, #y, y, setopt_nv_ ## y, z)) ++ SETOPT_CHECK(tool_setopt_bitmask(x, global, #y, y, setopt_nv_ ## y, z), y) + + #define my_setopt_mimepost(x,y,z) \ +- SETOPT_CHECK(tool_setopt_mimepost(x, global, #y, y, z)) ++ SETOPT_CHECK(tool_setopt_mimepost(x, global, #y, y, z), y) + + #define my_setopt_slist(x,y,z) \ +- SETOPT_CHECK(tool_setopt_slist(x, global, #y, y, z)) ++ SETOPT_CHECK(tool_setopt_slist(x, global, #y, y, z), y) + + #define res_setopt(x,y,z) tool_setopt(x, FALSE, global, #y, y, z) + +@@ -126,25 +129,25 @@ CURLcode tool_setopt(CURL *curl, bool st + /* No --libcurl, so pass options directly to library */ + + #define my_setopt(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define my_setopt_str(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define my_setopt_enum(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define my_setopt_flags(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define my_setopt_bitmask(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define my_setopt_mimepost(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define my_setopt_slist(x,y,z) \ +- SETOPT_CHECK(curl_easy_setopt(x, y, z)) ++ SETOPT_CHECK(curl_easy_setopt(x, y, z), y) + + #define res_setopt(x,y,z) curl_easy_setopt(x,y,z) +