<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>221061</bug_id>
          
          <creation_ts>2008-05-09 09:38 0000</creation_ts>
          <short_desc>dev-lang/R-2.7.0: Rscript binary doesn&apos;t work because it points to /var/tmp sandbox</short_desc>
          <delta_ts>2008-05-14 14:41:43 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Jens.Langner@light-speed.de</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>Jens.Langner@light-speed.de</who>
            <bug_when>2008-05-09 09:38:28 0000</bug_when>
            <thetext>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 &quot;cat(&apos;Hello World&apos;)&quot;
3. notice the file or directoy does not exist warning

Actual Results:  
After execution of &quot;/usr/bin/Rscript -e &quot;cat(&apos;Hello World&apos;)&quot; the following error occurrs:

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


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

-- cut here --
1&gt; strace Rscript -e &quot;cat(&apos;Hello World&apos;)&quot;
...
execve(&quot;/var/tmp/portage/dev-lang/R-2.7.0/work/R-2.7.0/bin/R&quot;, [&quot;/var/tmp/portage/dev-lang/R-2.7.&quot;..., &quot;--slave&quot;..., &quot;--no-restore&quot;..., &quot;-e&quot;..., &quot;cat(\&apos;Hello World\&apos;)&quot;..., &quot;--args&quot;...], [/* 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 &quot;/var/tmp/portage/dev-lang/R-2.7.0/work/R-2.7.0/bin/&quot; 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-10 11:40:26 0000</bug_when>
            <thetext>Thanks much for the note. I&apos;ll have a look at it.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-05-10 16:31:13 0000</bug_when>
            <thetext>This should be fixed now in portage cvs. Thanks again
for reporting.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Jens.Langner@light-speed.de</who>
            <bug_when>2008-05-14 14:41:43 0000</bug_when>
            <thetext>Ok, the problem is really gone</thetext>
          </long_desc>
      
    </bug>

</bugzilla>