Date: Sat, 3 Nov 2018 22:44:36 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483945 - head/ftp/rubygem-curb/files Message-ID: <201811032244.wA3MiaAN057432@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811032244.wA3MiaAN057432>