summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2026-03-27 08:41:02 +0100
committerRicardo Wurmus <rekado@elephly.net>2026-04-13 18:12:10 +0200
commit2dd509dce78cc514046075fd68fed33e287785c1 (patch)
tree533e3a178f720980d23b6ba6a6b42f809bf19236 /patches
parent98e7385b132e236eac9cf164f3321efdadf40d15 (diff)
rstudio: rstudio-server: Update to 2025.05.1+513.
* patches/rstudio-server-panmirror.patch: Delete file. * patches/rstudio-server-install.patch: Update to changes in 2025.05.1+513. * guix-science/packages/rstudio-node.scm: Replace file with newly generated contents. * guix-science/packages/rstudio.scm (js-panmirror): Update to 0.1.0. (gsl-lite-for-rstudio, rapidjson-for-rstudio, hunspell-for-rstudio, yaml-cpp-for-rstudio): New variables. (rstudio-server): Update to 2025.05.1+513. [source]: Remove rstudio-server-panmirror.patch. [arguments]: Disable copilot support; add phase 'find-hunspell-and-rapidjson; update phase 'patch-paths to patch search for system libraries; add phase 'patch-rapidjson. [native-inputs]: Add libexpected and pkg-config. [inputs]: Replace boost-1.83 with boost-1.88; replace yaml-cpp with yaml-cpp-for-rstudio; add fmt-11, gsl-lite-for-rstudio, hunspell-for-rstudio, rapidjson-for-rstudio, and websocketpp-next.
Diffstat (limited to 'patches')
-rw-r--r--patches/rstudio-server-install.patch154
-rw-r--r--patches/rstudio-server-panmirror.patch31
2 files changed, 136 insertions, 49 deletions
diff --git a/patches/rstudio-server-install.patch b/patches/rstudio-server-install.patch
index 56b8616..89bdee4 100644
--- a/patches/rstudio-server-install.patch
+++ b/patches/rstudio-server-install.patch
@@ -1,16 +1,49 @@
1Avoid copying all of mathjax, pandoc, and node to the output. 1Avoid copying all of mathjax, pandoc, and node to the output.
2Avoid building copies of existing libraries. Link with Guix-provided libraries instead.
2 3
3--- a/src/cpp/session/CMakeLists.txt 4--- a/src/cpp/session/CMakeLists.txt
4+++ b/src/cpp/session/CMakeLists.txt 5+++ b/src/cpp/session/CMakeLists.txt
5@@ -688,7 +688,4 @@ 6@@ -469,18 +469,6 @@
7 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../../../NOTICE
8 ${CMAKE_CURRENT_SOURCE_DIR}/resources COPYONLY)
9
10-# configure custom panmirror script into the resources directory
11-#
12-# On Linux and Windows builders, found in the tools directory, on Mac and dev
13-# environments found in the source tree.
14-set(RSTUDIO_PANMIRROR_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../../gwt/lib/quarto/packages/editor-server/src/resources/md-writer.lua)
15-if(NOT EXISTS "${RSTUDIO_PANMIRROR_SCRIPT}")
16- set(RSTUDIO_PANMIRROR_SCRIPT ${RSTUDIO_TOOLS_ROOT}/../src/gwt/lib/quarto/packages/editor-server/src/resources/md-writer.lua)
17-endif()
18-file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/resources/panmirror-scripts)
19-configure_file(${RSTUDIO_PANMIRROR_SCRIPT}
20- ${CMAKE_CURRENT_SOURCE_DIR}/resources/panmirror-scripts/ COPYONLY)
21-
22 # set include directories
23 include_directories(
24 include
25@@ -682,9 +670,6 @@
26 # notice
27 install(FILES "resources/NOTICE"
28 DESTINATION ${RSTUDIO_INSTALL_SUPPORTING}/resources)
29- # panmirror scripts
30- install(DIRECTORY "resources/panmirror-scripts"
31- DESTINATION ${RSTUDIO_INSTALL_SUPPORTING}/resources)
32
33 # citation
34 configure_file("resources/CITATION.in"
35@@ -721,10 +706,6 @@
36 install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DICTIONARIES_DIR}"
37 DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")
6 38
7- # install mathjax for local html preview 39- # install mathjax for local html preview
8- install(DIRECTORY "${RSTUDIO_DEPENDENCIES_MATHJAX_DIR}" 40- install(DIRECTORY "${RSTUDIO_DEPENDENCIES_MATHJAX_DIR}"
9- DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources") 41- DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")
10 42-
11 # install quarto (or pandoc if quarto disabled) 43 # install quarto (or pandoc if quarto disabled)
12 if(QUARTO_ENABLED) 44 if(QUARTO_ENABLED)
13@@ -722,9 +722,6 @@ 45 # install some quarto folders into Resources, as needed
46@@ -742,9 +723,6 @@
14 EXCLUDE) 47 EXCLUDE)
15 endif() 48 endif()
16 else() 49 else()
@@ -19,20 +52,105 @@ Avoid copying all of mathjax, pandoc, and node to the output.
19- USE_SOURCE_PERMISSIONS) 52- USE_SOURCE_PERMISSIONS)
20 endif() 53 endif()
21 54
22 # install embedded packages 55 # install Copilot Language Server
23 56--- a/src/cpp/ext/CMakeLists.txt
24--- a/src/cpp/session/CMakeLists.txt 57+++ b/src/cpp/ext/CMakeLists.txt
25+++ b/src/cpp/session/CMakeLists.txt 58@@ -228,30 +228,3 @@
26@@ -712,12 +712,6 @@ 59 websocketpp WEBSOCKETPP
27 DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources") 60 yaml-cpp YAML_CPP
61 zlib ZLIB)
62-
63-# Create rapidjson target.
64-add_library(rstudio-rapidjson INTERFACE EXCLUDE_FROM_ALL)
65-target_compile_definitions(rstudio-rapidjson INTERFACE "-DRAPIDJSON_NO_SIZETYPEDEFINE")
66-target_include_directories(rstudio-rapidjson INTERFACE "${RAPIDJSON_SOURCE_DIR}/include")
67-
68-
69-# Create websocketpp target.
70-add_library(rstudio-websocketpp INTERFACE EXCLUDE_FROM_ALL)
71-target_include_directories(rstudio-websocketpp INTERFACE "${WEBSOCKETPP_SOURCE_DIR}")
72-
73-
74-# Create hunspell target.
75-file(GLOB HUNSPELL_HEADER_FILES "${HUNSPELL_SOURCE_DIR}/src/hunspell/*.h*")
76-file(GLOB HUNSPELL_SOURCE_FILES "${HUNSPELL_SOURCE_DIR}/src/hunspell/*.c*")
77-add_library(rstudio-hunspell STATIC ${HUNSPELL_SOURCE_FILES} ${HUNSPELL_HEADER_FILES})
78-set_target_properties(rstudio-hunspell PROPERTIES LINKER_LANGUAGE CXX)
79-target_include_directories(rstudio-hunspell SYSTEM AFTER INTERFACE "${HUNSPELL_SOURCE_DIR}/src")
80-target_compile_definitions(rstudio-hunspell PUBLIC HUNSPELL_STATIC=1)
81-
82-if(WIN32)
83- target_include_directories(rstudio-hunspell SYSTEM AFTER PRIVATE "${HUNSPELL_PREFIX_DIR}/msvc")
84- target_compile_options(rstudio-hunspell PRIVATE /wd4244 /wd4267)
85- target_compile_options(rstudio-hunspell INTERFACE /wd4996)
86-else()
87- target_compile_options(rstudio-hunspell PRIVATE -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused-but-set-variable)
88-endif()
89--- a/src/cpp/shared_core/CMakeLists.txt
90+++ b/src/cpp/shared_core/CMakeLists.txt
91@@ -46,6 +46,8 @@
92 set (SHARED_INCLUDE_DIRS
93 include
94 ${BOOST_INCLUDEDIR}
95+ ${rapidjson_INCLUDE_DIRS}
96+ ${gsl_lite_INCLUDE_DIRS}
97 ${EXT_SOURCE_DIR})
28 98
99 # UNIX specific
100@@ -93,7 +94,7 @@
101 ${Boost_LIBRARIES}
102 ${SHARED_CORE_SYSTEM_LIBS}
103- gsl::gsl-lite-v1
104+ ${gsl_lite_LIBRARIES}
105- rstudio-rapidjson)
106+ ${rapidjson_LIBRARIES})
29 107
30- # install node 108 # Define executable for running unit tests
31- install( 109 if (RSTUDIO_UNIT_TESTS_ENABLED)
32- DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/node/${RSTUDIO_INSTALLED_NODE_VERSION}-patched/" 110--- a/src/cpp/core/CMakeLists.txt
33- DESTINATION "${RSTUDIO_INSTALL_BIN}/node" 111+++ b/src/cpp/core/CMakeLists.txt
34- USE_SOURCE_PERMISSIONS) 112@@ -318,6 +318,10 @@
35- 113 ${EXT_SOURCE_DIR}
36 # install quarto (or pandoc if quarto disabled) 114 ${CMAKE_CURRENT_BINARY_DIR}
37 if(QUARTO_ENABLED) 115 ${TESTS_INCLUDE_DIR}
38 # install some quarto folders into Resources, as needed 116+ ${hunspell_INCLUDE_DIRS}
117+ ${tl-expected_INCLUDE_DIRS}
118+ ${gsl_lite_INCLUDE_DIRS}
119+ ${websocketpp_INCLUDE_DIRS}
120 )
121
122 # define shared library
123@@ -327,8 +329,8 @@
124 # link dependencies
125 target_link_libraries(rstudio-core
126 rstudio-shared-core
127- rstudio-hunspell
128- rstudio-websocketpp
129+ ${hunspell_LIBRARIES}
130+ ${websocketpp_LIBRARIES}
131 ${Boost_LIBRARIES}
132 ${CRASHPAD_LIBRARIES}
133 ${SOCI_LIBRARIES}
134@@ -361,7 +363,7 @@
135 rstudio-shared-core
136 rstudio-core
137 rstudio-core-synctex
138- rstudio-hunspell
139+ ${hunspell_LIBRARIES}
140 ${Boost_LIBRARIES}
141 ${SOCI_LIBRARIES}
142 ${CORE_SYSTEM_LIBRARIES}
143--- a/src/cpp/CMakeLists.txt
144+++ b/src/cpp/CMakeLists.txt
145@@ -492,5 +492,11 @@
146
147 find_package(OpenSSL REQUIRED)
148 include_directories(SYSTEM "${OPENSSL_INCLUDE_DIR}")
149+ find_package(fmt REQUIRED)
150+ find_package(gsl-lite REQUIRED)
151+ find_package(tl-expected REQUIRED)
152+ find_package(yaml-cpp REQUIRED)
153+ find_package(hunspell REQUIRED)
154+ include_directories(SYSTEM "${hunspell_INCLUDE_DIRS}")
155
156 endif()
diff --git a/patches/rstudio-server-panmirror.patch b/patches/rstudio-server-panmirror.patch
deleted file mode 100644
index d0c2ca0..0000000
--- a/patches/rstudio-server-panmirror.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1--- a/src/cpp/session/CMakeLists.txt
2+++ b/src/cpp/session/CMakeLists.txt
3@@ -456,18 +456,6 @@
4 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../../../NOTICE
5 ${CMAKE_CURRENT_SOURCE_DIR}/resources COPYONLY)
6
7-# configure custom panmirror script into the resources directory
8-#
9-# On Linux and Windows builders, found in the tools directory, on Mac and dev
10-# environments found in the source tree.
11-set(RSTUDIO_PANMIRROR_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../../gwt/lib/quarto/packages/editor-server/src/resources/md-writer.lua)
12-if(NOT EXISTS "${RSTUDIO_PANMIRROR_SCRIPT}")
13- set(RSTUDIO_PANMIRROR_SCRIPT ${RSTUDIO_TOOLS_ROOT}/../src/gwt/lib/quarto/packages/editor-server/src/resources/md-writer.lua)
14-endif()
15-file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/resources/panmirror-scripts)
16-configure_file(${RSTUDIO_PANMIRROR_SCRIPT}
17- ${CMAKE_CURRENT_SOURCE_DIR}/resources/panmirror-scripts/ COPYONLY)
18-
19 # set include directories
20 include_directories(
21 include
22@@ -672,9 +660,6 @@
23 # notice
24 install(FILES "resources/NOTICE"
25 DESTINATION ${RSTUDIO_INSTALL_SUPPORTING}/resources)
26- # panmirror scripts
27- install(DIRECTORY "resources/panmirror-scripts"
28- DESTINATION ${RSTUDIO_INSTALL_SUPPORTING}/resources)
29
30 # citation
31 configure_file("resources/CITATION.in"