From 115dcc7054f5934a2c8e26fd8a8eed5f3e29e9ce Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 28 Mar 2023 09:49:11 +0100 Subject: gentoo auto-resync : 28:03:2023 - 09:49:10 --- dev-lang/R/files/R-4.2.3-curl-8.patch | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 dev-lang/R/files/R-4.2.3-curl-8.patch (limited to 'dev-lang/R/files') diff --git a/dev-lang/R/files/R-4.2.3-curl-8.patch b/dev-lang/R/files/R-4.2.3-curl-8.patch new file mode 100644 index 000000000000..92ee3b0d5702 --- /dev/null +++ b/dev-lang/R/files/R-4.2.3-curl-8.patch @@ -0,0 +1,59 @@ +https://bugs.gentoo.org/902993 + +--- a/configure ++++ b/configure +@@ -48533,7 +48533,7 @@ + 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\n" "$as_me:${as_lineno-$LINENO}: checking if libcurl is version 7 and >= 7.28.0 or version 8" >&5 + printf %s "checking if libcurl is version 7 and >= 7.28.0... " >&6; } + if test ${r_cv_have_curl728+y} + then : +@@ -48551,8 +48551,10 @@ + int main(int argc, const char * argv[]) + { + #ifdef LIBCURL_VERSION_MAJOR +-#if LIBCURL_VERSION_MAJOR > 7 ++#if LIBCURL_VERSION_MAJOR > 8 + exit(1); ++#elif LIBCURL_VERSION_MAJOR == 8 ++ exit(0); + #elif LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 28 + exit(0); + #else +--- a/m4/R.m4 ++++ b/m4/R.m4 +@@ -4300,15 +4300,17 @@ + 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 version 7 and >= 7.28.0 or verion 8], [r_cv_have_curl728_8], + [AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include + #include + int main(int argc, const char * argv[]) + { + #ifdef LIBCURL_VERSION_MAJOR +-#if LIBCURL_VERSION_MAJOR > 7 ++#if LIBCURL_VERSION_MAJOR > 8 + exit(1); ++#elif LIBCURL_VERSION_MAJOR == 8 ++ exit(0); + #elif LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 28 + exit(0); + #else +@@ -4318,9 +4320,9 @@ + exit(1); + #endif + } +-]])], [r_cv_have_curl728=yes], [r_cv_have_curl728=no], [r_cv_have_curl728=no])]) ++]])], [r_cv_have_curl728_8=yes], [r_cv_have_curl728_8=no], [r_cv_have_curl728_8=no])]) + fi +-if test "x${r_cv_have_curl728}" = xno; then ++if test "x${r_cv_have_curl728_8}" = xno; then + have_libcurl=no + fi + -- cgit v1.2.3