summaryrefslogtreecommitdiff
path: root/patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2026-05-13 22:39:12 +0200
committerRicardo Wurmus <rekado@elephly.net>2026-05-16 12:20:02 +0200
commit24317029245eddca35f64b81280a831a18bc680c (patch)
treed5fd85712862401b88177dca3f86792f53f62b14 /patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch
parentc0321213ed34a76fc513a0f930d5d072b6785bec (diff)
rstudio: rstudio-server: Update to 2026.04.0+526.
* patches/rstudio-server-install.patch: Update file. * patches/rstudio-server-multi-version/0001-handleClientInit-Store-R-versions-in-sessionInfo.patch, patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch, patches/rstudio-server-multi-version/0003-NewProjectWizard-Unhide-version-selector-widget.patch, patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch, patches/rstudio-server-multi-version/0005-Add-version-switcher-widget-to-toolbar.patch, patches/rstudio-server-multi-version/0006-Look-at-.local-share-rstudio-r-versions-for-custom-R.patch, patches/rstudio-server-multi-version/0007-detectRLocationsUsingR-Restore-R_HOME-at-the-end.patch: Update to latest version. * guix-science/packages/rstudio.scm (dtl-for-rstudio, utfcpp-for-rstudio): New variables. (rstudio-server): Update to 2026.04.0+526. [arguments]: Do not use #:OUT-OF-SOURCE?, add extra configure flags; update generated cmake files; rename phase 'unpack-dictionary to 'unpack-extras and unpack GWT sources; update patching in 'patch-paths; update location of script in 'generate-server-options. [native-inputs]: Replace openjdk11:jdk with openjdk:jdk; add googletest and r-here; add origin for gwt sources. [inputs]: Replace boost-1.88 with boost; add dtl-for-rstudio, libgit2, and utfcpp-for-rstudio.
Diffstat (limited to 'patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch')
-rw-r--r--patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch27
1 files changed, 18 insertions, 9 deletions
diff --git a/patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch b/patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch
index b39088c..3e75fdb 100644
--- a/patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch
+++ b/patches/rstudio-server-multi-version/0002-launchAndTrackSession-Configure-R-version-from-activ.patch
@@ -1,4 +1,4 @@
1From 2005f097b76582e5781a32aafa7cfcf35e369e7b Mon Sep 17 00:00:00 2001 1From faf9b22bc1caa538009356a3be1f0ee3ac8205f0 Mon Sep 17 00:00:00 2001
2From: Ricardo Wurmus <rekado@elephly.net> 2From: Ricardo Wurmus <rekado@elephly.net>
3Date: Fri, 18 Dec 2020 10:32:01 +0100 3Date: Fri, 18 Dec 2020 10:32:01 +0100
4Subject: [PATCH 2/7] launchAndTrackSession: Configure R version from active 4Subject: [PATCH 2/7] launchAndTrackSession: Configure R version from active
@@ -20,11 +20,11 @@ procedure to configure the R environment using the R version that has
20been recorded in the active session. 20been recorded in the active session.
21(launchAndTrackSession): Register loadRVersion as a config filter. 21(launchAndTrackSession): Register loadRVersion as a config filter.
22--- 22---
23 .../server/session/ServerSessionManager.cpp | 47 +++++++++++++++++++ 23 .../server/session/ServerSessionManager.cpp | 49 +++++++++++++++++++
24 1 file changed, 47 insertions(+) 24 1 file changed, 49 insertions(+)
25 25
26diff --git a/src/cpp/server/session/ServerSessionManager.cpp b/src/cpp/server/session/ServerSessionManager.cpp 26diff --git a/src/cpp/server/session/ServerSessionManager.cpp b/src/cpp/server/session/ServerSessionManager.cpp
27index ab7aab1842..fa67ed0b56 100644 27index 17bcd10b56..e107b89dff 100644
28--- a/src/cpp/server/session/ServerSessionManager.cpp 28--- a/src/cpp/server/session/ServerSessionManager.cpp
29+++ b/src/cpp/server/session/ServerSessionManager.cpp 29+++ b/src/cpp/server/session/ServerSessionManager.cpp
30@@ -2,6 +2,7 @@ 30@@ -2,6 +2,7 @@
@@ -35,7 +35,15 @@ index ab7aab1842..fa67ed0b56 100644
35 * 35 *
36 * Unless you have received this program directly from Posit Software pursuant 36 * Unless you have received this program directly from Posit Software pursuant
37 * to the terms of a commercial license agreement with Posit Software, then 37 * to the terms of a commercial license agreement with Posit Software, then
38@@ -24,10 +25,14 @@ 38@@ -14,6 +15,7 @@
39 */
40
41 #include <server/session/ServerSessionManager.hpp>
42+#include <session/SessionScopes.hpp>
43
44 #include <boost/format.hpp>
45
46@@ -22,10 +24,14 @@
39 #include <core/SocketRpc.hpp> 47 #include <core/SocketRpc.hpp>
40 #include <core/system/System.hpp> 48 #include <core/system/System.hpp>
41 #include <core/system/Process.hpp> 49 #include <core/system/Process.hpp>
@@ -50,7 +58,7 @@ index ab7aab1842..fa67ed0b56 100644
50 #include <session/SessionConstants.hpp> 58 #include <session/SessionConstants.hpp>
51 59
52 #include <monitor/MonitorClient.hpp> 60 #include <monitor/MonitorClient.hpp>
53@@ -373,6 +378,45 @@ void setProcessConfigFilter(const core::system::ProcessConfigFilter& filter) 61@@ -380,6 +386,46 @@ void setProcessConfigFilter(const core::system::ProcessConfigFilter& filter)
54 END_LOCK_MUTEX 62 END_LOCK_MUTEX
55 } 63 }
56 64
@@ -60,7 +68,8 @@ index ab7aab1842..fa67ed0b56 100644
60+ FilePath storageDir = 68+ FilePath storageDir =
61+ system::xdg::userDataDir(user.getUsername(), user.getHomePath()); 69+ system::xdg::userDataDir(user.getUsername(), user.getHomePath());
62+ std::shared_ptr<r_util::IActiveSessionsStorage> sessionStorage = 70+ std::shared_ptr<r_util::IActiveSessionsStorage> sessionStorage =
63+ std::shared_ptr<r_util::IActiveSessionsStorage>(new r_util::FileActiveSessionsStorage(storageDir)); 71+ std::shared_ptr<r_util::IActiveSessionsStorage>(new r_util::FileActiveSessionsStorage(storageDir, rstudio::session::filePathToProjectId(storageDir, FilePath(server::options().getOverlayOption(kSessionSharedStoragePath)))));
72+
64+ std::unique_ptr<r_util::ActiveSessions> activeSessions = 73+ std::unique_ptr<r_util::ActiveSessions> activeSessions =
65+ std::unique_ptr<r_util::ActiveSessions>(new r_util::ActiveSessions(sessionStorage, storageDir)); 74+ std::unique_ptr<r_util::ActiveSessions>(new r_util::ActiveSessions(sessionStorage, storageDir));
66+ std::vector<boost::shared_ptr<r_util::ActiveSession> > sessions = 75+ std::vector<boost::shared_ptr<r_util::ActiveSession> > sessions =
@@ -96,7 +105,7 @@ index ab7aab1842..fa67ed0b56 100644
96 // default session launcher -- does the launch then tracks the pid 105 // default session launcher -- does the launch then tracks the pid
97 // for later reaping 106 // for later reaping
98 Error SessionManager::launchAndTrackSession( 107 Error SessionManager::launchAndTrackSession(
99@@ -383,6 +427,9 @@ Error SessionManager::launchAndTrackSession( 108@@ -390,6 +436,9 @@ Error SessionManager::launchAndTrackSession(
100 using namespace rstudio::core::system; 109 using namespace rstudio::core::system;
101 std::string runAsUser = realUserIsRoot() ? profile.context.username : ""; 110 std::string runAsUser = realUserIsRoot() ? profile.context.username : "";
102 111
@@ -107,5 +116,5 @@ index ab7aab1842..fa67ed0b56 100644
107 LOCK_MUTEX(s_configFilterMutex) 116 LOCK_MUTEX(s_configFilterMutex)
108 { 117 {
109-- 118--
1102.52.0 1192.54.0
111 120