git: 65ba7f0bc410 - 2023Q2 - math/libRmath: Allow build with curl 8.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 18 Apr 2023 21:23:04 UTC
The branch 2023Q2 has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65ba7f0bc4108f56c0267646bab2fcb94718165a

commit 65ba7f0bc4108f56c0267646bab2fcb94718165a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-05 17:26:14 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-18 21:22:23 +0000

    math/libRmath: Allow build with curl 8.0.0+
    
    (cherry picked from commit 73ce71d9616a830defac91ade52cee661069b02d)
---
 math/libRmath/files/patch-curl | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/math/libRmath/files/patch-curl b/math/libRmath/files/patch-curl
new file mode 100644
index 000000000000..aa271203410e
--- /dev/null
+++ b/math/libRmath/files/patch-curl
@@ -0,0 +1,22 @@
+--- configure.orig	2022-10-23 22:16:12 UTC
++++ configure
+@@ -47584,8 +47584,8 @@ fi
+ done
+ 
+ if test "x${have_libcurl}" = "xyes"; then
+-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcurl is version 7 and >= 7.28.0" >&5
+-printf %s "checking if libcurl is version 7 and >= 7.28.0... " >&6; }
++{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcurl is >= 7.28.0" >&5
++printf %s "checking if libcurl is >= 7.28.0... " >&6; }
+ if test ${r_cv_have_curl728+y}
+ then :
+   printf %s "(cached) " >&6
+@@ -47603,7 +47603,7 @@ int main()
+ {
+ #ifdef LIBCURL_VERSION_MAJOR
+ #if LIBCURL_VERSION_MAJOR > 7
+-  exit(1);
++  exit(0);
+ #elif LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 28
+   exit(0);
+ #else