pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/rvault rvault: fix build with curl 7.87



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46998156f2d4
branches:  trunk
changeset: 390581:46998156f2d4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Dec 23 12:40:04 2022 +0000

description:
rvault: fix build with curl 7.87

diffstat:

 security/rvault/distinfo                       |   3 ++-
 security/rvault/patches/patch-core_http__req.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r afd60b2dc6db -r 46998156f2d4 security/rvault/distinfo
--- a/security/rvault/distinfo  Fri Dec 23 12:35:05 2022 +0000
+++ b/security/rvault/distinfo  Fri Dec 23 12:40:04 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 11:18:00 nia Exp $
+$NetBSD: distinfo,v 1.7 2022/12/23 12:40:04 wiz Exp $
 
 BLAKE2s (rvault-0.3.tar.gz) = 4ff52e5edf6156c4c9cc0046f02ef8845e9678a2c4719c64a1f7e83a040bd1b6
 SHA512 (rvault-0.3.tar.gz) = 0687d14cf646adccb3c09a3d5a16e771ef9b046bd4e596a487413e83e06709b27a62c2f08a9a23d47f6253cadc1fb7cbe53262455faa6628d5b23d8539f12271
 Size (rvault-0.3.tar.gz) = 76921 bytes
 SHA1 (patch-core_cli.c) = 8214fe7f75273a0d434751b600d89d70f735a24c
+SHA1 (patch-core_http__req.c) = 35c9eec1588a2602d11d123063895cb1ed96723c
diff -r afd60b2dc6db -r 46998156f2d4 security/rvault/patches/patch-core_http__req.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/rvault/patches/patch-core_http__req.c    Fri Dec 23 12:40:04 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-core_http__req.c,v 1.1 2022/12/23 12:40:04 wiz Exp $
+
+core/http_req.c:55:2: error: 'CURLOPT_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR
+
+--- core/http_req.c.orig       2020-04-22 16:11:18.000000000 +0000
++++ core/http_req.c
+@@ -52,7 +52,7 @@ http_request(const char *url, http_req_t
+       if ((curl = curl_easy_init()) == NULL) {
+               return -1;
+       }
+-      curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);
++      curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, CURLPROTO_HTTPS);
+       if ((res = curl_easy_setopt(curl, CURLOPT_URL, url)) != CURLE_OK) {
+               app_log(LOG_ERR, "http without TLS is not allowed");
+               goto out;



Home | Main Index | Thread Index | Old Index