Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115140 - dev-lang/R-2.2.0 fails to remove /var/tmp from the installed R wrapper
Summary: dev-lang/R-2.2.0 fails to remove /var/tmp from the installed R wrapper
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: InVCS
: 115430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-10 16:59 UTC by Brady Catherman
Modified: 2005-12-13 09:56 UTC (History)
1 user (show)

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


Attachments
a scripted log of the entire build process. (Rlog,1.54 MB, text/plain)
2005-12-12 08:51 UTC, Brady Catherman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Catherman 2005-12-10 16:59:33 UTC
After installing R the program "/usr/bin/R" still contains the temporary install
directory in several places.
Lines 10-16
export R_HOME
R_SHARE_DIR=/var/tmp/portage/R-2.2.0/image//usr/lib/R/share
export R_SHARE_DIR
R_INCLUDE_DIR=/var/tmp/portage/R-2.2.0/image//usr/lib/R/include
export R_INCLUDE_DIR
R_DOC_DIR=/var/tmp/portage/R-2.2.0/image//usr/lib/R/doc
export R_DOC_DIR

After making this change everything seems to work perfectly.
Comment 1 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-12-12 06:52:14 UTC
I have been unable to reproduce this here, and the following lines in the  
ebuild should stop this from happening,  
  
    # fix the R wrapper script to have the correct R_HOME_DIR  
    # sed regexp borrowed from included debian rules  
    sed \  
        -e "/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/$(get_libdir)/R:" \  
        -i ${D}/usr/$(get_libdir)/R/bin/R \  
        || die "sed failed" 
 
Do you see any messages about the sed failing? I am guessing you are using 
dev-lang/R-2.2.0 and your emerge info may help. 
Comment 2 Brady Catherman 2005-12-12 08:51:25 UTC
Created attachment 74583 [details]
a scripted log of the entire build process.

This is a script generated by running the following commands:

script /tmp/Rlog
emerge -B R
emerge -K R
cat /usr/bin/R
logout


I don't see any sed errors or aything that would indicate that there is a
problem on my end. Though I didn't walk through every single line with a fine
tooth comb =)
Comment 3 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-12-12 11:57:43 UTC
I honestly thought I had added this to the tree already - sorry. Kugelfang beat 
me to adding R-2.2.0 and it appears I forgot to add the other fixes I had made. 
I have committed R-2.2.0-r1 to the tree now and it fixes the remaining paths 
now. Please let me know if this causes any more problems and thanks for 
reporting. 
Comment 4 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-12-13 09:56:28 UTC
*** Bug 115430 has been marked as a duplicate of this bug. ***