[packages/R] upstream fix to allow build with curl >= 8
atler
atler at pld-linux.org
Mon Jul 3 10:55:11 CEST 2023
commit f69d6bb9c03b90c0e4989b5a0c31f5a0dc92624a
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 3 09:42:21 2023 +0200
upstream fix to allow build with curl >= 8
R.spec | 2 ++
curl8.patch | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
---
diff --git a/R.spec b/R.spec
index c6b9dd1..a0ff6fc 100644
--- 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
index 0000000..3fa0bee
--- /dev/null
+++ b/curl8.patch
@@ -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
+
+------------------------------------------------------------------------
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/R.git/commitdiff/493f10fc63c979ad2f4dae03fc77108bbbf136b3
More information about the pld-cvs-commit
mailing list