Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365595 - [science overlay] sci-mathematics/rstudio (New package)
Summary: [science overlay] sci-mathematics/rstudio (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 6 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.rstudio.org
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2011-05-01 17:11 UTC by Jerome Asselin
Modified: 2013-02-20 14:30 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for RStudio (rstudio-ebuild-0.94.59.tar.gz,4.04 KB, application/octet-stream)
2011-06-07 11:16 UTC, Martijn Hoogendoorn
Details
rstudio-0.94.92.ebuild (rstudio-0.94.92.ebuild,3.60 KB, text/plain)
2011-08-21 19:18 UTC, Eric Johnson
Details
rstudio-0.94.92-prefs.patch (rstudio-0.94.92-prefs.patch,972 bytes, patch)
2011-08-21 19:19 UTC, Eric Johnson
Details | Diff
rstudio-0.94.92-paths.patch (rstudio-0.94.92-paths.patch,4.84 KB, patch)
2011-08-21 19:19 UTC, Eric Johnson
Details | Diff
rstudio-0.94.92-linker_flags.patch (rstudio-0.94.92-linker_flags.patch,641 bytes, patch)
2011-08-21 19:20 UTC, Eric Johnson
Details | Diff
rstudio-0.94.106.ebuild (rstudio-0.94.106.ebuild,3.60 KB, text/plain)
2011-09-24 08:25 UTC, Eric Johnson
Details
rstudio-0.94.106-prefs.patch (rstudio-0.94.106-prefs.patch,1.02 KB, patch)
2011-09-24 08:26 UTC, Eric Johnson
Details | Diff
rstudio-0.94.106-paths.patch (rstudio-0.94.106-paths.patch,5.19 KB, patch)
2011-09-24 08:27 UTC, Eric Johnson
Details | Diff
rstudio-0.94.106-linker_flags.patch (rstudio-0.94.106-linker_flags.patch,729 bytes, patch)
2011-09-24 08:27 UTC, Eric Johnson
Details | Diff
rstudio-0.94.110.ebuild (rstudio-0.94.110.ebuild,3.60 KB, text/plain)
2011-10-15 04:46 UTC, Eric Johnson
Details
rstudio-0.94.110-prefs.patch (rstudio-0.94.110-prefs.patch,1.02 KB, patch)
2011-10-15 04:47 UTC, Eric Johnson
Details | Diff
rstudio-0.94.110-paths.patch (rstudio-0.94.110-paths.patch,5.21 KB, text/plain)
2011-10-15 04:47 UTC, Eric Johnson
Details
rstudio-0.94.110-linker_flags.patch (rstudio-0.94.110-linker_flags.patch,735 bytes, patch)
2011-10-15 04:48 UTC, Eric Johnson
Details | Diff
gdb backtrace of SIGILL (gdb.log,2.80 KB, text/plain)
2011-10-31 12:23 UTC, Richard H.
Details
rstudio-rserver.initd (rstudio-rserver.initd,376 bytes, text/plain)
2012-03-23 16:10 UTC, Ryan Hope
Details
rstudio-rstudio.desktop (rstudio-rstudio.desktop,182 bytes, text/plain)
2012-03-23 16:10 UTC, Ryan Hope
Details
rstudio-0.95.263-prefs.patch (rstudio-0.95.263-prefs.patch,809 bytes, patch)
2012-03-23 16:11 UTC, Ryan Hope
Details | Diff
rstudio-0.95.263-paths.patch (rstudio-0.95.263-paths.patch,5.12 KB, patch)
2012-03-23 16:11 UTC, Ryan Hope
Details | Diff
rstudio-0.95.263-linker_flags.patch (rstudio-0.95.263-linker_flags.patch,539 bytes, patch)
2012-03-23 16:12 UTC, Ryan Hope
Details | Diff
rstudio-0.95.263.ebuild (rstudio-0.95.263.ebuild,4.37 KB, text/plain)
2012-03-23 16:30 UTC, Ryan Hope
Details
RStudio 0.96.230 (rstudio-0.96.230.ebuild,4.81 KB, text/plain)
2012-06-11 13:22 UTC, José María Fernández González
Details
rstudio-0.96.230-prefs.patch (rstudio-0.96.230-prefs.patch,810 bytes, patch)
2012-06-11 13:23 UTC, José María Fernández González
Details | Diff
rstudio-0.96.230-paths.patch (rstudio-0.96.230-paths.patch,5.12 KB, patch)
2012-06-11 13:25 UTC, José María Fernández González
Details | Diff
rstudio-0.96.230-linker_flags.patch (rstudio-0.96.230-linker_flags.patch,539 bytes, patch)
2012-06-11 13:25 UTC, José María Fernández González
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Asselin 2011-05-01 17:11:28 UTC
I would like the following two components to be added to portage.

RStudio Desktop:
An IDE for R.

RStudio Server:
If you run R on a Linux server and want to enable users to remotely access RStudio using a web browser.

License: GNU AFFERO GENERAL PUBLIC LICENSE

Help in writing the ebuild(s) would be appreciated.
Comment 1 Jerome Asselin 2011-05-01 17:14:09 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Martijn Hoogendoorn 2011-06-07 11:15:55 UTC
I have tried my hand at making an ebuild for these programs. Currently one ebuild for both the desktop and server components (can use USE flags to select one or both).

untar the attachment in /usr/local/portage, add:
PORTDIR_OVERLAY="/usr/local/portage"
to /etc/make.conf and it should work (as it does for me).

As this is my first ever ebuild, comments/tips/etc would be appreciated.
Comment 3 Martijn Hoogendoorn 2011-06-07 11:16:04 UTC
Created attachment 276129 [details]
Ebuild for RStudio
Comment 4 Naohiro Aota gentoo-dev 2011-07-02 15:23:47 UTC
(In reply to comment #3)
> Created attachment 276129 [details]
> Ebuild for RStudio

Hi, I'm interesting in this package..

I've read your ebuild. Comments below

- S, WORKDIR, FILESDIR should be quoted or you can't deal with " "
- Please avoid useless blank lines
- java-ant-2.eclass has a function named java-ant_xml-rewrite() Your ebuild may use it
- sed lines is a bit complicated. I don't think they are patched dynamically (or depending on each machine status) How about writing a patch and apply it?
Comment 5 Jerome Asselin 2011-08-01 01:09:46 UTC
Thank you Martin for this ebuild!

It installs fine on amd64, with and without the "server" use flag.

Jerome
Comment 6 Eric Johnson 2011-08-21 19:18:35 UTC
Created attachment 284155 [details]
rstudio-0.94.92.ebuild
Comment 7 Eric Johnson 2011-08-21 19:19:12 UTC
Created attachment 284157 [details, diff]
rstudio-0.94.92-prefs.patch
Comment 8 Eric Johnson 2011-08-21 19:19:37 UTC
Created attachment 284159 [details, diff]
rstudio-0.94.92-paths.patch
Comment 9 Eric Johnson 2011-08-21 19:20:09 UTC
Created attachment 284161 [details, diff]
rstudio-0.94.92-linker_flags.patch
Comment 10 Eric Johnson 2011-09-24 08:25:56 UTC
Created attachment 287583 [details]
rstudio-0.94.106.ebuild
Comment 11 Eric Johnson 2011-09-24 08:26:40 UTC
Created attachment 287585 [details, diff]
rstudio-0.94.106-prefs.patch
Comment 12 Eric Johnson 2011-09-24 08:27:13 UTC
Created attachment 287587 [details, diff]
rstudio-0.94.106-paths.patch
Comment 13 Eric Johnson 2011-09-24 08:27:54 UTC
Created attachment 287589 [details, diff]
rstudio-0.94.106-linker_flags.patch
Comment 14 Eric Johnson 2011-10-15 04:46:26 UTC
Created attachment 289843 [details]
rstudio-0.94.110.ebuild
Comment 15 Eric Johnson 2011-10-15 04:47:06 UTC
Created attachment 289845 [details, diff]
rstudio-0.94.110-prefs.patch
Comment 16 Eric Johnson 2011-10-15 04:47:34 UTC
Created attachment 289847 [details]
rstudio-0.94.110-paths.patch
Comment 17 Eric Johnson 2011-10-15 04:48:08 UTC
Created attachment 289849 [details, diff]
rstudio-0.94.110-linker_flags.patch
Comment 18 Richard H. 2011-10-17 16:04:10 UTC
I get an illegal instruction on amd64. Anybody else having this? :(
Comment 19 Eric Johnson 2011-10-20 09:12:49 UTC
(In reply to comment #18)
> I get an illegal instruction on amd64. Anybody else having this? :(

I haven't had access until recently to an amd64 processor machine. Early next week, I should have some time to build it up and test RStudio. 

Let us know if you track anything down - what you were doing when it occurs, maybe console/stack output, and the like.
Comment 20 Richard H. 2011-10-31 12:19:16 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > I get an illegal instruction on amd64. Anybody else having this? :(
> 
> I haven't had access until recently to an amd64 processor machine. Early next
> week, I should have some time to build it up and test RStudio. 
> 
> Let us know if you track anything down - what you were doing when it occurs,
> maybe console/stack output, and the like.

I am attaching you a gdb trace. Hope it helps so far, I have no debuggable system installed right now.
Comment 21 Richard H. 2011-10-31 12:23:10 UTC
Created attachment 291355 [details]
gdb backtrace of SIGILL

gdb backtrace. It seems to be something lib QtWebkit - but I don't have a debug (non stripped) version of qt installed right now.
Comment 22 Richard H. 2011-10-31 12:24:39 UTC
chain@richIx61t ~ $ emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo-richIx61t x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-richIx61t-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 29 Oct 2011 21:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo hardened-dev kde sunrise x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 PUEL cadsoft dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ "
LANG="de_AT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j1"
PKGDIR="/home/chain/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hardened-development /var/lib/layman/kde /var/lib/layman/sunrise /home/chain/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apm avahi berkdb bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dri dts dvb dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac foomaticdb fortran gdbm gdu geoip gif gnome-keyring gnutls gphoto2 gpm gps hddtemp iconv idn ieee1394 imap ipv6 jabber jack java6 javascript jikes jingle joystick jpeg kde kdehiddenvisibility kipi lcms libnotify libwww lm_sensors mad memlimit mikmod mime minimal mmx mng modplug modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses netboot networkmanager nls nocd nptl nptlonly nsplugin ogg opengl openmp pam pango pcmcia pcre pdf phonon plasma png policykit ppds pppd pulseaudio qt3support qt4 readline rss samba scanner sdl semantic-desktop session sid slang smartcard sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd threads tiff timidity truetype udev unicode usb v4l v4l2 vcd vorbis wifi x264 xattr xcb xcomposite xine xinerama xml xorg xscreensaver xsl xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" NETBEANS_MODULES="ide java" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------

chain@richIx61t ~ $ eix -e qt-webkit
[I] x11-libs/qt-webkit
     Available versions:  (4) 4.6.2 4.6.2-r1 ~4.6.3 4.6.3-r1 ~4.6.3-r2 4.7.2 ~4.7.3 ~4.7.4
        {aqua dbus debug +exceptions +jit kde pch}
     Installed versions:  4.7.2(4)(14:55:55 2011-04-21)(dbus exceptions jit kde -aqua -debug -pch)
     Homepage:            http://qt.nokia.com/
     Description:         The Webkit module for the Qt toolkit
Comment 23 Richard H. 2011-11-02 19:57:07 UTC
(In reply to comment #22)

Never mind. I re-merged qt-webkit and it works now. I was getting the SIGILL in kmail too now, so I thought it would be time. md5 and sha1 differ, so I guess something was bad on my system. re-re-merging turned out the same md5 and sha1.

Anyways, everything is fine now :)
Comment 24 Ryan Hope 2012-03-23 16:10:29 UTC
Created attachment 306435 [details]
rstudio-rserver.initd
Comment 25 Ryan Hope 2012-03-23 16:10:55 UTC
Created attachment 306437 [details]
rstudio-rstudio.desktop
Comment 26 Ryan Hope 2012-03-23 16:11:16 UTC
Created attachment 306439 [details, diff]
rstudio-0.95.263-prefs.patch
Comment 27 Ryan Hope 2012-03-23 16:11:46 UTC
Created attachment 306441 [details, diff]
rstudio-0.95.263-paths.patch
Comment 28 Ryan Hope 2012-03-23 16:12:22 UTC
Created attachment 306443 [details, diff]
rstudio-0.95.263-linker_flags.patch
Comment 29 Ryan Hope 2012-03-23 16:30:18 UTC
Created attachment 306451 [details]
rstudio-0.95.263.ebuild

I have been maintaining my own rstudio ebuild for a while now unaware of the efforts being made here. I decided to merge the best parts of both devel streams and post an updated ebuild for the latest version of RStudio.

I've tweaked all the patches so that they don't include any hardcoded version numbers. This should allow for easier updating. That was the most invasive change. Some other minor tweaks include making sure the RSTUDIO_VERSION_* env vars are defined properly before configure is run, adding a xdg desktop file and adding a the missing init script for the server.

Everything runs great on my x86_64 box.
Comment 30 Eric Johnson 2012-03-26 02:12:29 UTC
(In reply to comment #29)
> Created attachment 306451 [details]
> rstudio-0.95.263.ebuild
> 
> I have been maintaining my own rstudio ebuild for a while now unaware of the
> efforts being made here. I decided to merge the best parts of both devel
> streams and post an updated ebuild for the latest version of RStudio.
> 
> I've tweaked all the patches so that they don't include any hardcoded
> version numbers. This should allow for easier updating. That was the most
> invasive change. Some other minor tweaks include making sure the
> RSTUDIO_VERSION_* env vars are defined properly before configure is run,
> adding a xdg desktop file and adding a the missing init script for the
> server.
> 
> Everything runs great on my x86_64 box.

nice work! cleaner, for sure. compiled, installed, and ran great on 32-bit machine.
Comment 31 José María Fernández González 2012-06-11 13:22:51 UTC
Created attachment 314989 [details]
RStudio 0.96.230

RStudio 0.96.230 ebuild (based on 0.95.263)
Comment 32 José María Fernández González 2012-06-11 13:23:50 UTC
Created attachment 314993 [details, diff]
rstudio-0.96.230-prefs.patch
Comment 33 José María Fernández González 2012-06-11 13:25:06 UTC
Created attachment 314995 [details, diff]
rstudio-0.96.230-paths.patch
Comment 34 José María Fernández González 2012-06-11 13:25:46 UTC
Created attachment 314999 [details, diff]
rstudio-0.96.230-linker_flags.patch
Comment 35 José María Fernández González 2012-06-11 13:39:56 UTC
I have just added ebuild for RStudio 0.96.230, which is based on ebuild for RStudio 0.95.263
Comment 36 Sébastien Fabbro (RETIRED) gentoo-dev 2012-06-29 20:39:13 UTC
rstudio-0.96.316 now in science overlay.

there's still a todo list in the ebuild, and we are looking for maintainer, even proxy one.

Feel free to submit any pull requests on our github:
https://github.com/gentoo-science/sci
Comment 37 Julian Ospald 2013-02-16 15:39:33 UTC
+*rstudio-0.97.318 (16 Feb 2013)
+
+  16 Feb 2013; Julian Ospald <hasufell@gentoo.org> +rstudio-0.97.318.ebuild,
+  +files/rstudio-0.97.318-linker_flags.patch,
+  +files/rstudio-0.97.318-paths.patch, +files/rstudio-0.97.318-prefs.patch,
+  +files/rstudio-rserver.initd, +metadata.xml:
+  initial import wrt #365595
Comment 38 Eric Johnson 2013-02-20 05:16:38 UTC
Nice!! Thanks all