Bug 221061 - dev-lang/R-2.7.0: Rscript binary doesn't work because it points to /var/tmp sandbox
Bug#: 221061 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: VERIFIED Severity: major Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: Jens.Langner@light-speed.de
Component: Ebuilds
URL: 
Summary: dev-lang/R-2.7.0: Rscript binary doesn't work because it points to /var/tmp sandbox
Keywords:  
Status Whiteboard: 
Opened: 2008-05-09 09:38 0000
Description:   Opened: 2008-05-09 09:38 0000
After installation of the recent R-2.7.0 version the /usr/bin/Rscript wrapper
binary does not work anymore. Normally, it should allow to directly execut a R
command on the command-line but with 2.7.0 it just outputs and error.


Reproducible: Always

Steps to Reproduce:
1. emerge R
2. /usr/bin/Rscript -e "cat('Hello World')"
3. notice the file or directoy does not exist warning

Actual Results:  
After execution of "/usr/bin/Rscript -e "cat('Hello World')" the following
error occurrs:

-- cut here --
Rscript execution error: No such file or directory
-- cut here --


By executing Rscript with 'strace' it points at the sandbox compilation that is
to be blamed:

-- cut here --
1> strace Rscript -e "cat('Hello World')"
...
execve("/var/tmp/portage/dev-lang/R-2.7.0/work/R-2.7.0/bin/R",
["/var/tmp/portage/dev-lang/R-2.7."..., "--slave"..., "--no-restore"...,
"-e"..., "cat(\'Hello World\')"..., "--args"...], [/* 63 vars */]) = -1 ENOENT
(No such file or directory)
...
-- cut here --

So here you can clearly see that it tries to execute the R binary from
"/var/tmp/portage/dev-lang/R-2.7.0/work/R-2.7.0/bin/" rather than executing it
from /usr/bin/R like it should be. And this of course causes the problem. After
symlinking R to the /var/tmp/ directory, Rscript works.

------- Comment #1 From Markus Dittrich 2008-05-10 11:40:26 0000 -------
Thanks much for the note. I'll have a look at it.

Best,
Markus

------- Comment #2 From Markus Dittrich 2008-05-10 16:31:13 0000 -------
This should be fixed now in portage cvs. Thanks again
for reporting.

Best,
Markus

------- Comment #3 From Jens Langner 2008-05-14 14:41:43 0000 -------
Ok, the problem is really gone