From owner-svn-ports-all@freebsd.org Sat Nov 3 22:44:38 2018 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 9DF1110EB10B; Sat, 3 Nov 2018 22:44:37 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D1F9C6F1AE; Sat, 3 Nov 2018 22:44:36 +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 B3E911FFDD; Sat, 3 Nov 2018 22:44:36 +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 wA3Miaxv057433; Sat, 3 Nov 2018 22:44:36 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA3MiaAN057432; Sat, 3 Nov 2018 22:44:36 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201811032244.wA3MiaAN057432@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 3 Nov 2018 22:44:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483945 - head/ftp/rubygem-curb/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/ftp/rubygem-curb/files X-SVN-Commit-Revision: 483945 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D1F9C6F1AE X-Spamd-Result: default: False [-0.11 / 200.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Server: mx1.freebsd.org 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: Sat, 03 Nov 2018 22:44:38 -0000 Author: sunpoet Date: Sat Nov 3 22:44:36 2018 New Revision: 483945 URL: https://svnweb.freebsd.org/changeset/ports/483945 Log: Fix build with curl 7.62.0 Added: head/ftp/rubygem-curb/files/ head/ftp/rubygem-curb/files/patch-ext-curb_errors.c (contents, props changed) Added: head/ftp/rubygem-curb/files/patch-ext-curb_errors.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/ftp/rubygem-curb/files/patch-ext-curb_errors.c Sat Nov 3 22:44:36 2018 (r483945) @@ -0,0 +1,28 @@ +--- ext/curb_errors.c.orig 2018-11-03 08:38:15 UTC ++++ ext/curb_errors.c +@@ -307,9 +307,11 @@ VALUE rb_curl_easy_error(CURLcode code) + exclz = eCurlErrObsolete; + break; + #endif ++#if LIBCURL_VERSION_NUM < 0x073e00 + case CURLE_SSL_PEER_CERTIFICATE: /* 51 - peer's certificate wasn't ok */ + exclz = eCurlErrSSLPeerCertificate; + break; ++#endif + case CURLE_GOT_NOTHING: /* 52 - when this is a specific error */ + exclz = eCurlErrGotNothing; + break; +@@ -334,8 +336,13 @@ VALUE rb_curl_easy_error(CURLcode code) + case CURLE_SSL_CIPHER: /* 59 - couldn't use specified cipher */ + exclz = eCurlErrSSLCipher; + break; ++#if LIBCURL_VERSION_NUM >= 0x073e00 ++ case CURLE_PEER_FAILED_VERIFICATION: /* 60 - problem with the CA cert (path?) */ ++ exclz = eCurlErrSSLPeerCertificate; ++#else + case CURLE_SSL_CACERT: /* 60 - problem with the CA cert (path?) */ + exclz = eCurlErrSSLCACertificate; ++#endif + break; + case CURLE_BAD_CONTENT_ENCODING: /* 61 - Unrecognized transfer encoding */ + exclz = eCurlErrBadContentEncoding;