]> git.pld-linux.org Git - packages/R.git/commitdiff
upstream fix to allow build with curl >= 8
authorJan Palus <atler@pld-linux.org>
Mon, 3 Jul 2023 07:42:21 +0000 (09:42 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 3 Jul 2023 07:42:21 +0000 (09:42 +0200)
R.spec
curl8.patch [new file with mode: 0644]

diff --git a/R.spec b/R.spec
index c6b9dd1f2e5f7e9282ed7b2b1ad7d59bc38b749f..a0ff6fc89a591f6ff82525a923f002c1ff1d1440 100644 (file)
--- a/R.spec
+++ b/R.spec
@@ -23,6 +23,7 @@ Source0:      https://cran.r-project.org/src/base/R-4/%{name}-%{version}.tar.gz
 Source1:       %{name}.desktop
 Source2:       %{name}.xpm
 Patch0:                %{name}-timezone.patch
+Patch1:                curl8.patch
 URL:           https://www.r-project.org/
 # yes, it is, or tests will fail
 BuildRequires: /etc/localtime
@@ -119,6 +120,7 @@ NarzÄ™dzia R w Javie.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p0
 
 %build
 %{__aclocal} -I m4
diff --git a/curl8.patch b/curl8.patch
new file mode 100644 (file)
index 0000000..3fa0bee
--- /dev/null
@@ -0,0 +1,53 @@
+------------------------------------------------------------------------
+r84049 | ripley | 2023-03-25 10:01:30 +0100 (sob, 25 mar 2023) | 1 line
+
+allow libcurl 8 as its API/ABI is said to be unchanged
+
+Index: configure
+===================================================================
+--- configure  (revision 84048)
++++ configure  (revision 84049)
+@@ -51680,8 +51680,8 @@
+ 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
+@@ -51699,7 +51699,7 @@
+ {
+ #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
+Index: m4/R.m4
+===================================================================
+--- m4/R.m4    (revision 84048)
++++ m4/R.m4    (revision 84049)
+@@ -4620,7 +4620,7 @@
+ AC_CHECK_HEADERS(curl/curl.h, [have_libcurl=yes], [have_libcurl=no])
+ if test "x${have_libcurl}" = "xyes"; then
+-AC_CACHE_CHECK([if libcurl is version 7 and >= 7.28.0], [r_cv_have_curl728],
++AC_CACHE_CHECK([if libcurl is >= 7.28.0], [r_cv_have_curl728],
+ [AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <stdlib.h>
+ #include <curl/curl.h>
+@@ -4628,7 +4628,7 @@
+ {
+ #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
+
+------------------------------------------------------------------------
This page took 0.185175 seconds and 4 git commands to generate.