Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 221061

Summary: dev-lang/R-2.7.0: Rscript binary doesn't work because it points to /var/tmp sandbox
Product: Gentoo Linux Reporter: Jens Maus <mail>
Component: New packagesAssignee: Gentoo Science Related Packages <sci>
Status: VERIFIED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jens Maus 2008-05-09 09:38:28 UTC
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 Markus Dittrich (RETIRED) gentoo-dev 2008-05-10 11:40:26 UTC
Thanks much for the note. I'll have a look at it.

Best,
Markus
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2008-05-10 16:31:13 UTC
This should be fixed now in portage cvs. Thanks again
for reporting.

Best,
Markus
Comment 3 Jens Maus 2008-05-14 14:41:43 UTC
Ok, the problem is really gone