From 7b9cc434526cf498b6e8c3ba44381760d61e8d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Wed, 19 Jul 2023 11:28:51 +0200 Subject: [PATCH] Add missing patch files Thanks .gitignore! --- builder/patches/R-3.3.0.patch | 20 ++++++++++++++++++++ builder/patches/R-3.3.1.patch | 20 ++++++++++++++++++++ builder/patches/R-3.3.2.patch | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 builder/patches/R-3.3.0.patch create mode 100644 builder/patches/R-3.3.1.patch create mode 100644 builder/patches/R-3.3.2.patch diff --git a/builder/patches/R-3.3.0.patch b/builder/patches/R-3.3.0.patch new file mode 100644 index 0000000..f87bf6b --- /dev/null +++ b/builder/patches/R-3.3.0.patch @@ -0,0 +1,20 @@ +diff --git a/configure b/configure +index e53821d..d26fd72 100755 +--- a/configure ++++ b/configure +@@ -35496,10 +35496,11 @@ else + #include + #include + int main() { +-#ifdef ZLIB_VERSION +-/* Work around Debian bug: it uses 1.2.3.4 even though there was no such +- version on the master site zlib.net */ +- exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0); ++#ifdef ZLIB_VERNUM ++ if (ZLIB_VERNUM < 0x1250) { ++ exit(1); ++ } ++ exit(0); + #else + exit(1); + #endif diff --git a/builder/patches/R-3.3.1.patch b/builder/patches/R-3.3.1.patch new file mode 100644 index 0000000..f87bf6b --- /dev/null +++ b/builder/patches/R-3.3.1.patch @@ -0,0 +1,20 @@ +diff --git a/configure b/configure +index e53821d..d26fd72 100755 +--- a/configure ++++ b/configure +@@ -35496,10 +35496,11 @@ else + #include + #include + int main() { +-#ifdef ZLIB_VERSION +-/* Work around Debian bug: it uses 1.2.3.4 even though there was no such +- version on the master site zlib.net */ +- exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0); ++#ifdef ZLIB_VERNUM ++ if (ZLIB_VERNUM < 0x1250) { ++ exit(1); ++ } ++ exit(0); + #else + exit(1); + #endif diff --git a/builder/patches/R-3.3.2.patch b/builder/patches/R-3.3.2.patch new file mode 100644 index 0000000..f87bf6b --- /dev/null +++ b/builder/patches/R-3.3.2.patch @@ -0,0 +1,20 @@ +diff --git a/configure b/configure +index e53821d..d26fd72 100755 +--- a/configure ++++ b/configure +@@ -35496,10 +35496,11 @@ else + #include + #include + int main() { +-#ifdef ZLIB_VERSION +-/* Work around Debian bug: it uses 1.2.3.4 even though there was no such +- version on the master site zlib.net */ +- exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0); ++#ifdef ZLIB_VERNUM ++ if (ZLIB_VERNUM < 0x1250) { ++ exit(1); ++ } ++ exit(0); + #else + exit(1); + #endif