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.
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.
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 =)
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.
*** Bug 115430 has been marked as a duplicate of this bug. ***