diff --git a/srcpkgs/rstudio/patches/fix-build.patch b/srcpkgs/rstudio/patches/fix-build.patch new file mode 100644 index 00000000000..da91b9baf59 --- /dev/null +++ b/srcpkgs/rstudio/patches/fix-build.patch @@ -0,0 +1,34 @@ +Ref: https://www.mail-archive.com/commit@lists.opensuse.org/msg43991.html + +From 872e2806f74e922a25e0f9586faa6624883728ca Mon Sep 17 00:00:00 2001 +From: Kevin Ushey +Date: Wed, 21 Jul 2021 19:56:34 -0700 +Subject: [PATCH] support compilation with r-devel + +--- + src/cpp/r/session/RSession.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/cpp/r/session/RSession.cpp b/src/cpp/r/session/RSession.cpp +index 0066a61c1b6..6c5f986f6a0 100644 +--- a/src/cpp/r/session/RSession.cpp ++++ b/src/cpp/r/session/RSession.cpp +@@ -68,6 +68,9 @@ + + #include + ++extern "C" { ++int Rf_countContexts(int, int); ++} + #define CTXT_BROWSER 16 + + // get rid of windows TRUE and FALSE definitions +@@ -493,7 +496,7 @@ bool isSuspendable(const std::string& currentPrompt) + + return true; + } +- ++ + + bool browserContextActive() + {