From cb96115177de291c34eda5a38bbb85d787a798ca Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 11 Jun 2022 10:59:12 +0200 Subject: [PATCH] rstudio: remove update check * fix version information Closes #37494 --- .../patches/0007-disable-check-for-updates.patch | 12 ++++++++++++ srcpkgs/rstudio/template | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 srcpkgs/rstudio/patches/0007-disable-check-for-updates.patch diff --git a/srcpkgs/rstudio/patches/0007-disable-check-for-updates.patch b/srcpkgs/rstudio/patches/0007-disable-check-for-updates.patch new file mode 100644 index 000000000000..dd1eef5eeda2 --- /dev/null +++ b/srcpkgs/rstudio/patches/0007-disable-check-for-updates.patch @@ -0,0 +1,12 @@ +--- a/src/cpp/session/SessionClientInit.cpp ++++ b/src/cpp/session/SessionClientInit.cpp +@@ -443,8 +443,7 @@ + + sessionInfo["disable_packages"] = module_context::disablePackages(); + +- sessionInfo["disable_check_for_updates"] = +- !core::system::getenv("RSTUDIO_DISABLE_CHECK_FOR_UPDATES").empty(); ++ sessionInfo["disable_check_for_updates"] = true; + + sessionInfo["allow_vcs_exe_edit"] = options.allowVcsExecutableEdit(); + sessionInfo["allow_cran_repos_edit"] = options.allowCRANReposEdit(); diff --git a/srcpkgs/rstudio/template b/srcpkgs/rstudio/template index b2c06a205eaa..dccb6b38fffc 100644 --- a/srcpkgs/rstudio/template +++ b/srcpkgs/rstudio/template @@ -47,6 +47,12 @@ pre_configure() { ln -s /usr/bin/node dependencies/common/node/$_node_ver/bin/node cd src/gwt ant draft + + _maj_min=${version%*.*} + export RSTUDIO_VERSION_MAJOR=${_maj_min%.*} + export RSTUDIO_VERSION_MINOR=${_maj_min#*.} + export RSTUDIO_VERSION_PATCH=${version#*.*.*} + export PACKAGE_OS=VoidLinux } post_install() {