Package Details: rstudio-server-git v2022.02.3+492.r1692.g7faaa81408-1

Git Clone URL: https://aur.archlinux.org/rstudio-server-git.git (read-only, click to copy)
Package Base: rstudio-server-git
Description: A new integrated development environment (IDE) for R programming language
Upstream URL: http://www.rstudio.org/
Licenses: AGPL3
Conflicts: rstudio-server
Submitter: None
Maintainer: nobodyinperson
Last Packager: nobodyinperson
Votes: 9
Popularity: 0.000047
First Submitted: 2012-08-02 13:07 (UTC)
Last Updated: 2022-08-01 18:10 (UTC)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

nobodyinperson commented on 2022-06-28 13:21 (UTC)

node version needed to be bumped again. A working PKGBUILD can be found here: https://gitlab.com/tue-umphy/workgroup-software/repository/-/snippets/2229434

nobodyinperson commented on 2022-01-04 11:33 (UTC)

@balwierz This is solved by switching to Java 8 as default with archlinux-java set java-8-openjdk (hint here). @hwkiller, could you please include @mjandrews' working patch? Here is a repository with a working PKGBUILD.

balwierz commented on 2021-10-28 18:47 (UTC)

After applying mjandrews' patch build fails at late stage:

     [java] Compiling module org.rstudio.studio.RStudio
     [java]    Computing all possible rebind results for 'org.rstudio.studio.client.RStudioGinjector'
     [java]       Rebinding org.rstudio.studio.client.RStudioGinjector
     [java]          Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
     [java]             [ERROR] Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw an exception while rebinding 'org.rstudio.studio.client.RStudioGinjector'
     [java] com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
     [java]     at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
     [java]     at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:49)
     [java]     at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:125)
     [java]     at com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:507)
     [java]     at com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:159)
     [java]     at com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
     [java]     at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:122)
     [java]     at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:95)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:72)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:62)
     [java]     at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:74)
     [java]     at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
     [java]     at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)
     [java]     at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:103)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:251)
     [java]     at com.google.gwt.dev.PrecompilationContextCreator$1.getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:519)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:487)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.maybeHandleMagicMethodCall(UnifyAst.java:415)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:402)
     [java]     at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
     [java]     at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:76)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
     [java]     at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)
     [java]     at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:94)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
     [java]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
     [java]     at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java]     at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786)
     [java]     at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1401)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:896)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:243)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:190)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:131)
     [java]     at com.google.gwt.dev.Compiler.compile(Compiler.java:192)
     [java]     at com.google.gwt.dev.Compiler.compile(Compiler.java:143)
     [java]     at com.google.gwt.dev.Compiler.compile(Compiler.java:132)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:110)
     [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
     [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:113)
     [java] Caused by: java.lang.ExceptionInInitializerError
     [java]     at com.google.inject.internal.cglib.reflect.$FastClassEmitter.<init>(FastClassEmitter.java:67)
     [java]     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72)
     [java]     at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
     [java]     at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216)
     [java]     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64)
     [java]     at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:207)
     [java]     at com.google.inject.internal.DefaultConstructionProxyFactory.create(DefaultConstructionProxyFactory.java:53)
     [java]     at com.google.inject.internal.ProxyFactory.create(ProxyFactory.java:153)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:89)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:28)
     [java]     at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:36)
     [java]     at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:32)
     [java]     at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
     [java]     ... 68 more
     [java] Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @757277dc
     [java]     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
     [java]     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
     [java]     at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
     [java]     at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
     [java]     at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
     [java]     at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
     [java]     at com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46)
     [java]     ... 82 more
     [java]    [ERROR] Errors in 'org/rstudio/studio/client/RStudioGinjector.java'
     [java]       [ERROR] Line 359: Failed to resolve 'org.rstudio.studio.client.RStudioGinjector' via deferred binding

mjandrews commented on 2021-10-25 22:01 (UTC) (edited on 2021-10-25 22:02 (UTC) by mjandrews)

I made some changes to PKGBUILD to get makepkg -s etc to work, which it does. In particular, I added the quarto dependencies and changed the _nodever as per artemklevtsov's suggestion. Here's my patch:

From ef640acaf0a62d332040f2dc7a6247839eb4f664 Mon Sep 17 00:00:00 2001
From: Mark Andrews <mjandrews.org@gmail.com>
Date: Mon, 25 Oct 2021 20:03:04 +0100
Subject: [PATCH] Updating dependencies in PKGBUILD

* Add the quarto dependencies
* Change _nodever to 14.17.5
---
 PKGBUILD | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 50b67b7..a66b484 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,13 +11,13 @@ _gitname="rstudio"
 pkgver=v1.4.1717.r350.g0c2d46e04b
 _gwtver=2.8.2
 _ginver=2.1.2
-_nodever=10.19.0
+_nodever=14.17.5
 pkgrel=1
 pkgdesc="A new integrated development environment (IDE) for R programming language"
 arch=('i686' 'x86_64')
 url="http://www.rstudio.org/"
 license=('AGPL3')
-depends=('r>=3.0.1' 'boost-libs>=1.69' 'openssl' 'mathjax2' 'pandoc' 'clang' 'postgresql-libs' 'sqlite3' 'soci' 'yaml-cpp' 'hunspell-en_US')
+depends=('r>=3.0.1' quarto-cli-bin 'boost-libs>=1.69' 'openssl' 'mathjax2' 'pandoc' 'clang' 'postgresql-libs' 'sqlite3' 'soci' 'yaml-cpp' 'hunspell-en_US')
 makedepends=('git' 'cmake>=3.4.3' 'boost>=1.69' 'jdk8-openjdk' 'apache-ant' 'unzip' 'bzip2' 'pango' 'pam' 'zlib' 'wget' 'yarn')
 install="${pkgname}.install"
 conflicts=('rstudio-server')
@@ -31,7 +31,7 @@ md5sums=('SKIP'
          'eea28f7865720f6c8d5de12f3f631880'
          'e2617189fe5c138945b8cc95f26bd476'
          'c295406d68c5ef364e445068599aa6d4'
-         '441a8e19ab9cd9884cbd24f85840c7a6')
+         '3cd3b18e1412067aabd2e1b23b93106e')


 pkgver() {
@@ -59,6 +59,7 @@ prepare () {

            ln -sfT "/usr/share/myspell/dicts" dictionaries
            ln -sfT "/usr/share/mathjax2" mathjax-27
+           ln -sfT /opt/quarto quarto
            ln -sfT "/usr/bin/pandoc" pandoc/${_pandocver}/pandoc
            ln -sfT "/usr/bin/pandoc-citeproc" pandoc/${_pandocvec}/pandoc-citeproc

@@ -72,6 +73,7 @@ prepare () {
            # Fix links for src/cpp/session/CMakeLists.txt
            cd "${srcdir}/${_gitname}/dependencies"
            ln -sfT common/dictionaries dictionaries
+           ln -sfT common/quarto quarto
            ln -sfT common/mathjax-27 mathjax-27
            ln -sfT common/pandoc pandoc

--
2.33.1



artemklevtsov commented on 2021-10-05 15:33 (UTC)

Please fix _nodever to 14.17.5. Proof: https://gitlab.com/aur1/rstudio/-/jobs/1644280132#L3550

hwkiller commented on 2021-06-03 01:28 (UTC)

Hey mjandrews - Thank you for this. I'll review it and test it as well. I'll pull in the patch and push if all goes well.

mjandrews commented on 2021-06-03 00:54 (UTC) (edited on 2021-06-03 00:58 (UTC) by mjandrews)

I ran into multiple problems when trying to makepkg -s. I eventually got it to work with this patch.

From 7878f64db1d0af46ad12ef5fa5f846ead6c89666 Mon Sep 17 00:00:00 2001
From: Mark Andrews <mjandrews.org@gmail.com>
Date: Wed, 2 Jun 2021 23:01:48 +0100
Subject: [PATCH] Update PKGBUILD

* Replace amazonaws for googleapis URL for gwt-2.8.2.zip
* Add DRSTUDIO_USE_SYSTEM_YAML_CPP=yes to cmake command in build()
* Add symlinks to mathjax dependencies
* Install pandoc version
* Add symlinks to pandoc
---
 PKGBUILD | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 61c7637..308d075 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
 #
 pkgname=rstudio-server-git
 _gitname="rstudio"
-pkgver=v1.3.1073.r4250.gbdf0b8b38b
+pkgver=v1.4.1717.r224.gf07571f0c1
 _gwtver=2.8.2
 _ginver=2.1.2
 _nodever=10.19.0
@@ -24,7 +24,7 @@ conflicts=('rstudio-server')
 source=('git+https://github.com/rstudio/rstudio.git'
    'rstudio-server.service'
    "https://s3.amazonaws.com/rstudio-buildtools/gin-${_ginver}.zip"
-   "https://s3.amazonaws.com/rstudio-buildtools/gwt-${_gwtver}.zip"
+        "https://storage.googleapis.com/gwt-releases/gwt-${_gwtver}.zip"
    "https://nodejs.org/dist/v${_nodever}/node-v${_nodever}-linux-x64.tar.gz"
 )
 md5sums=('SKIP'
@@ -53,8 +53,16 @@ prepare () {
        unzip -qo "${srcdir}/gin-${_ginver}.zip" -d lib/gin/${_ginver}
        cp -r "${srcdir}/gwt-${_gwtver}/"* lib/gwt/${_gwtver}

-       cd "${srcdir}/${_gitname}/dependencies/common"
-       install -d pandoc 
+
+
+    cd "${srcdir}/${_gitname}/dependencies/common"
+    _pandocver=$(grep -oP "(?<=PANDOC_VERSION=\").*(?=\"$)" install-pandoc)
+    install -d pandoc/${_pandocver}
+ 
+    ln -sfT /usr/bin/pandoc pandoc/${_pandocver}/pandoc
+    ln -sfT /usr/bin/pandoc-citeproc pandoc/${_pandocver}/pandoc-citeproc
+
+

        ln -sfT "/usr/share/mathjax2" mathjax-27
        ln -sfT "/usr/bin/pandoc" pandoc/pandoc
@@ -72,6 +80,11 @@ prepare () {
        ./install-dictionaries
        msg "Downloading and installing R packages..."
        ./install-packages
+
+            cd "${srcdir}/${_gitname}/dependencies"
+    ln -sfT common/dictionaries dictionaries
+    ln -sfT common/mathjax-27 mathjax-27
+    ln -sfT common/pandoc pandoc
 }


@@ -89,7 +102,7 @@ build() {
   cd "${srcdir}/$_gitname/build"
   # Configure cmake 
   #cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio-server -DCMAKE_DL_LIBRARIES=/usr/lib64/libdl.so -DCMAKE_LIBR_DOC_DIR=/usr/share/doc/R -DCMAKE_LIBR_EXECUTABLE=/usr/bin/R -DCMAKE_LIBR_HOME=/usr/lib64/R -DCMAKE_LIBR_INCLUDE_DIRS=/usr/include/R -DCMAKE_LIBR_CORE_LIBRARY=usr/lib64/R/lib/libR.so  -DRSTUDIO_USE_SYSTEM_BOOST=Yes ..
-  cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio-server -DRSTUDIO_USE_SYSTEM_BOOST=yes -DBoost_NO_BOOST_CMAKE=ON -DRSTUDIO_USE_SYSTEM_SOCI=yes ..
+  cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio-server -DRSTUDIO_USE_SYSTEM_BOOST=yes -DRSTUDIO_USE_SYSTEM_YAML_CPP=yes -DBoost_NO_BOOST_CMAKE=ON -DRSTUDIO_USE_SYSTEM_SOCI=yes ..

 }

-- 
2.31.1

alienzj commented on 2021-04-10 22:42 (UTC)

Please add yaml-cpp to the deps.

artemklevtsov commented on 2021-02-05 03:55 (UTC)

Please add yaml-cpp to the deps.

hwkiller commented on 2020-07-15 06:18 (UTC)

@mjandrews

Excellent; thank you for submitting that.