 by chanyufei » Wed Dec 11, 2013 8:42 am
by chanyufei » Wed Dec 11, 2013 8:42 am 
			
			Hi,
I am trying to compile rstudio-server from 
AUR but without any luck. And I just found 
this post mentioning that:
$this->bbcode_second_pass_quote('', 'j')ust change /src/gwt/tools/compiler/compiler.jar to 
https://code.google.com/p/closure-compi ... n=2&q=Where should I change this in the 
PKGBUILD? Or should like change something in the "arch-build.patch" file? Right now it reads:
$this->bbcode_second_pass_code('', 'diff -Naur a/src/cpp/server/extras/admin/rstudio-server.in b/src/cpp/server/extras/admin/rstudio-server.in
--- a/src/cpp/server/extras/admin/rstudio-server.in	2013-09-20 09:14:14.000000000 -0500
+++ b/src/cpp/server/extras/admin/rstudio-server.in	2013-09-25 21:02:42.569397076 -0500
@@ -1,13 +1,7 @@
 #!/bin/sh 
 daemonCmd() {
-  if test -e /etc/init/rstudio-server.conf
-  then
-     eval "initctl $1 rstudio-server"
-  else
-     eval "/etc/init.d/rstudio-server $1"
-  fi
-  return $?
+  systemctl $1 rstudio-server
 } 
 testConfig() {
diff -Naur a/src/cpp/session/CMakeLists.txt b/src/cpp/session/CMakeLists.txt
--- a/src/cpp/session/CMakeLists.txt	2013-09-20 09:14:14.000000000 -0500
+++ b/src/cpp/session/CMakeLists.txt	2013-09-25 21:01:51.713369905 -0500
@@ -18,12 +18,12 @@
 add_subdirectory(workers) 
 # verify that install-dictionaries and install-mathjax have been run
-if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries")
-  message(FATAL_ERROR "Dictionaries not found (re-run install-dependencies script to install)")
-endif()
-if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax")
-  message(FATAL_ERROR "Mathjax not found (re-run install-dependencies script to install)")
-endif()
+#if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries")
+#  message(FATAL_ERROR "Dictionaries not found (re-run install-dependencies script to install)")
+#endif()
+#if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax")
+#  message(FATAL_ERROR "Mathjax not found (re-run install-dependencies script to install)")
+#endif() 
 # include files
 file(GLOB_RECURSE SESSION_HEADER_FILES "*.h*")
@@ -293,12 +293,12 @@  
    # install hunspell dictionaries
-   install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries"
-           DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")
+   #install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries"
+   #        DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources") 
    # install mathjax for local html preview
-   install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax"
-           DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")
+   #install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax"
+   #        DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources") 
    # install 64 bit binaries if we are on win64
    if(WIN32)
diff -Naur a/src/gwt/build.xml b/src/gwt/build.xml
--- a/src/gwt/build.xml	2013-09-20 09:14:14.000000000 -0500
+++ b/src/gwt/build.xml	2013-09-25 21:01:51.716703197 -0500
@@ -20,7 +20,7 @@
             classname="com.google.javascript.jscomp.ant.CompileTask"
             classpath="./tools/compiler/compiler.jar"/>
    <!-- Configure path to GWT SDK -->
-   <property name="gwt.sdk" value="lib/gwt/2.5.1"/>
+   <property name="gwt.sdk" value="/opt/gwt"/> 
    <property name="gwt.extra.args" value=""/>
    <property name="gwt.main.module" value="org.rstudio.studio.RStudio"/>
@@ -29,7 +29,8 @@
    <path id="project.class.path">
       <pathelement location="bin"/>
       <fileset dir="${gwt.sdk}" includes="*.jar"/>
-      <fileset dir="lib/gin/1.5" includes="*.jar"/>
+      <fileset dir="/usr/share/java/google-guice" includes="*.jar"/>
+      <fileset dir="/usr/share/java/gin" includes="*.jar"/>
    </path> 
    <target name="ext">
')
Thank you for the help!