Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2025 11:24:30 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2f6fdf67a283 - main - filesystems/httpdirfs: Fix build with curl 8.16.0
Message-ID:  <202510061124.596BOUee089979@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f6fdf67a2837662d814cf6c1553d76ccae7062a

commit 2f6fdf67a2837662d814cf6c1553d76ccae7062a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-06 10:21:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-06 10:21:44 +0000

    filesystems/httpdirfs: Fix build with curl 8.16.0
    
    Approved by:    portmgr (blanket)
---
 filesystems/httpdirfs/files/patch-curl | 51 ++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/filesystems/httpdirfs/files/patch-curl b/filesystems/httpdirfs/files/patch-curl
new file mode 100644
index 000000000000..6b888715536d
--- /dev/null
+++ b/filesystems/httpdirfs/files/patch-curl
@@ -0,0 +1,51 @@
+--- src/link.c.orig	2024-11-01 20:22:40 UTC
++++ src/link.c
+@@ -66,14 +66,14 @@ static CURL *Link_to_curl(Link *link)
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }
+-    ret = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
++    ret = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }
+     /*
+      * for following directories without the '/'
+      */
+-    ret = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 2);
++    ret = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 2L);
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }
+@@ -81,11 +81,11 @@ static CURL *Link_to_curl(Link *link)
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }
+-    ret = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1);
++    ret = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }
+-    ret = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 15);
++    ret = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 15L);
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }
+@@ -118,7 +118,7 @@ static CURL *Link_to_curl(Link *link)
+         }
+     }
+     if (CONFIG.insecure_tls) {
+-        ret = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
++        ret = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
+         if (ret) {
+             lprintf(error, "%s", curl_easy_strerror(ret));
+         }
+@@ -197,7 +197,7 @@ static void Link_req_file_stat(Link *this_link)
+ {
+     lprintf(debug, "%s\n", this_link->f_url);
+     CURL *curl = Link_to_curl(this_link);
+-    CURLcode ret = curl_easy_setopt(curl, CURLOPT_NOBODY, 1);
++    CURLcode ret = curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
+     if (ret) {
+         lprintf(error, "%s", curl_easy_strerror(ret));
+     }


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510061124.596BOUee089979>