From 65ba7f0bc4108f56c0267646bab2fcb94718165a Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Thu, 6 Apr 2023 01:26:14 +0800 Subject: [PATCH] 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(+) create mode 100644 math/libRmath/files/patch-curl 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