Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519290 - sci-mathematics/rstudio-0.98.490 - rstudio-server start: /usr/bin/rstudio-server: 1: eval: /etc/init.d/rstudio-server: not found
Summary: sci-mathematics/rstudio-0.98.490 - rstudio-server start: /usr/bin/rstudio-ser...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 516464
  Show dependency tree
 
Reported: 2014-08-07 05:49 UTC by Franz Trischberger
Modified: 2014-12-06 12:36 UTC (History)
2 users (show)

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


Attachments
Patch for rstudio-0.98.1028 ebuild to re-enable server (rstudio-0.98.1028.patch,2.71 KB, patch)
2014-09-02 20:13 UTC, Adam Tygart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2014-08-07 05:49:42 UTC
While playing around with rstudio I tried to start the server:

$ rstudio-server start
/usr/bin/rstudio-server: 1: eval: /etc/init.d/rstudio-server: not found

The init file is called
/etc/init.d/rstudio-rserver

(error IMO in ebuild line 110)
Comment 1 Julian Ospald 2014-08-07 12:12:55 UTC
I think the init script needs more work

do you happen to know how to start the server properly?
Comment 2 Julian Ospald 2014-08-26 15:40:53 UTC
I'm simply going to remove server support if I don't get any response here.
Comment 3 Julian Ospald 2014-08-27 15:38:27 UTC
+*rstudio-0.98.490-r1 (27 Aug 2014)
+
+  27 Aug 2014; Julian Ospald <hasufell@gentoo.org> +rstudio-0.98.490-r1.ebuild:
+  rm server support wrt #519290
Comment 4 Adam Tygart 2014-09-02 20:13:31 UTC
Created attachment 384132 [details, diff]
Patch for rstudio-0.98.1028 ebuild to re-enable server
Comment 5 Adam Tygart 2014-09-02 20:13:59 UTC
I believe removing the server component of this was a mistake.

The rstudio-server script simply tries to start the init script. It expects the init script to be in /etc/init.d/rstudio-server, whereas the package installs the init script as /etc/init.d/rstudio-rserver. The init script itself functions just fine.

As I see it, there are a couple options:
1) rename the init script to match the expected name from the rstudio package
- newinitd "${FILESDIR}"/rstudio-rserver.initd rstudio-rserver
+ newinitd "${FILESDIR}"/rstudio-rserver.initd rstudio-server

2) patch the rstudio-server script (installed to /usr/bin/rstudio-server) to call the proper name:
- eval "/etc/init.d/rstudio-server $1"
+ eval "/etc/init.d/rstudio-rserver $1"

Thoughts?
Comment 6 Silvio 2014-09-05 11:18:55 UTC
I agree with you Adam, it is a mistake to remove the server support.

One of the most beautiful thing of Rstudio is the webserver part.

However we tried your patch and it works.
But I cannot login anymore with my system users.

Probably there are other problems.

I think this but is to be reopened.
Comment 7 Silvio 2014-09-05 11:27:55 UTC
I open a new bug:

#522196

asking the reintroduction of the server part.
Comment 8 Mark Wright gentoo-dev 2014-12-06 12:36:17 UTC
Fixed in rstudio-0.98.1091. Thanks to Franz Fellner for reporting, Adam Tygart and Franz Fellner for suggesting the fix, Silvio for testing.