File 0001-Unbundle-mathjax-and-pandoc.patch of Package rstudio
From 0e2903f2de5fc939c0d0a6c84b5f7a6cebb8ed77 Mon Sep 17 00:00:00 2001
From: haem <mixosaurus+obs@pm.me>
Date: Fri, 12 Sep 2025 17:16:25 +0200
Subject: [PATCH 01/12] Unbundle mathjax and pandoc
---
src/cpp/session/CMakeLists.txt | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/src/cpp/session/CMakeLists.txt b/src/cpp/session/CMakeLists.txt
index 2bf55f9f..75850da1 100644
--- a/src/cpp/session/CMakeLists.txt
+++ b/src/cpp/session/CMakeLists.txt
@@ -76,33 +76,6 @@ else()
endif()
-# validate our dependencies exist
-foreach(VAR RSTUDIO_DEPENDENCIES_DICTIONARIES_DIR
- RSTUDIO_DEPENDENCIES_MATHJAX_DIR
- RSTUDIO_DEPENDENCIES_PANDOC_DIR
- RSTUDIO_DEPENDENCIES_QUARTO_DIR
- RSTUDIO_DEPENDENCIES_COPILOT_DIR)
-
-
- # skip quarto if not enabled
- if("${VAR}" STREQUAL "RSTUDIO_DEPENDENCIES_QUARTO_DIR" AND NOT QUARTO_ENABLED)
- continue()
- endif()
-
- # skip Copilot if not enabled
- if("${VAR}" STREQUAL "RSTUDIO_DEPENDENCIES_COPILOT_DIR" AND NOT RSTUDIO_ENABLE_COPILOT)
- continue()
- endif()
-
- # validate existence
- if(NOT EXISTS "${${VAR}}")
- message(FATAL_ERROR "${${VAR}} not found (re-run install-dependencies script to install")
- endif()
-
- # cache variables so they can be seen by configure_file
- set("${VAR}" "${${VAR}}" CACHE INTERNAL "")
-
-endforeach()
# verify embedded packages are available
foreach(PKG ${RSTUDIO_EMBEDDED_PACKAGES})
--
2.51.0