-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hardcoding of paths in R binary #9668
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
IIRC I have some "almost" ready R spkg for #9906, which also does a lot of clean-up in |
comment:4
Replying to @kcrisman:
Not yet, i.e. not all of it. See this comment there. |
comment:5
Replying to @nexttime:
Ok, a bit more subtle than I expected (R is quite weird, failed to build inbetween), but I now have a p6 that fixes both the There was another issue with R someone reported on sage-devel which was caused by a "complicated" setting of an environment variable, in this case |
comment:6
Replying to @nexttime:
Okay, I'll watch this space.
Agreed. |
comment:7
See also #10967. We should probably either incorporate that here, or make a followup spkg there. |
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @kcrisman:
Almost certainly the former. [Note to myself:] The problem is that removing any reference to I'll then have to guess |
Dependencies: #9906 |
Changed keywords from none to R spkg R.sh.in libR.pc pkg-config hard-coded package installation R_HOME_DIR |
comment:9
Replying to @nexttime:
Guessing Furthermore:
|
Work Issues: Provide an R 2.10.1.p6 spkg. |
comment:10
Replying to @nexttime:
Should read:
|
Changed keywords from R spkg R.sh.in libR.pc pkg-config hard-coded package installation R_HOME_DIR to R spkg R.sh.in libR.pc pkg-config hard-coded package installation R_HOME_DIR sd32 |
Changed keywords from R spkg R.sh.in libR.pc pkg-config hard-coded package installation R_HOME_DIR sd32 to R spkg R.sh.in libR.pc pkg-config hard-coded package installation R_HOME_DIR sd32 r-project |
comment:14
This problem prevents Sage from being relocatable on Solaris, or at least on the skynet machines mark and mark2: if I build Sage, then move the entire Sage directory, then run
I tried just modifying local/bin/R and local/lib/R/bin/R, replacing the hard-coded paths with |
comment:15
I doubt this is related to the original topic at all. The setup on skynet's Solaris machines is (or used to be) quite broken, as there are outdated versions of shared libraries left around in typical paths, and some R scripts insist on messing up your paths such that the former gets relevant. Unfortunately I don't recall what the exact problem was, and how I managed to work around it, just that I had to [and somehow successfully did]; I think this problem appeared with, or was related to, [the installation of] GCC 4.7.0. In case I am right, changing Sorry for not being of much help here, at least right now... ;-) |
comment:16
Well, if the problems on mark are not related, then for this ticket, we could just add some lines at the end of spkg-install:
(It's too bad that the |
Author: John Palmieri |
This comment has been minimized.
This comment has been minimized.
comment:17
I've posted a new spkg, along with the corresponding patch. |
Changed work issues from Provide an R 2.10.1.p6 spkg. to none |
comment:19
Replying to @nexttime:
It's easy enough to add these to the "for" loop that I added to spkg-install, so I might as well do that. For what it's worth, the binary files |
comment:36
Replying to @jhpalmieri:
This line is completely irrelevant, as we already patch |
Attachment: trac_9668-r.v3.patch.gz |
comment:37
I'll post a new version of the spkg when sage.math is back up. I've attached the patch. This has the effect of changing lines in
to
With this change, running |
This comment has been minimized.
This comment has been minimized.
comment:38
New spkg posted. |
comment:39
Replying to @jhpalmieri:
Replying to @jhpalmieri:
I still cannot log into sage.math... ;-) |
comment:40
Replying to @nexttime:
I did an |
comment:41
For what it's worth, someone reported on ask.sagemath.org that this spkg fixed their problem with installing an R package. |
comment:42
I think that sounds like a positive review, combined with Jeroen's good comments... What do you think? |
comment:43
I think that someone should confirm that with the new spkg, in the script |
comment:44
I can do this. |
Changed reviewer from Karl-Dieter Crisman to Karl-Dieter Crisman, Jeroen Demeyer |
comment:45
I confirmed that moving a Sage install (not just binary) caused installing an R package to fail with precisely the problems one would expect if these were incorrectly defined (e.g.
with appropriate nonexistent directory referenced). The script Then installing this spkg and retrying caused success, and |
comment:46
One question, though... when I move Sage back and run Sage, it doesn't change
when it should be
So this was changed, presumably, when I reinstalled the spkg. It doesn't impact installing new R packages, by the way, nor functionality of R. In particular, moving a different Sage installation and starting Sage changes some things, but doesn't change the location of |
comment:47
It took me a little while to understand this, too. Right before the lines defining if test x$SAGE_BUILDING_R = x; then
R_HOME_DIR="$SAGE_LOCAL/lib/R/"
fi If you're not building the R spkg, then this will be executed, overriding the hard-coded path earlier in the script, and setting |
comment:48
Well, that is a Sage-specific thing, I think, but we have
later on and also
So all is well, I think. |
Merged: sage-5.9.rc0 |
See this thread on sage-support.
Related (R package):
New spkg: http://boxen.math.washington.edu/home/palmieri/SPKG/r-2.15.2.p2.spkg
CC: @nexttime @jhpalmieri
Component: packages: standard
Keywords: R spkg R.sh.in libR.pc pkg-config hard-coded package installation R_HOME_DIR sd32 r-project
Author: John Palmieri
Reviewer: Karl-Dieter Crisman, Jeroen Demeyer
Merged: sage-5.9.rc0
Issue created by migration from https://trac.sagemath.org/ticket/9668
The text was updated successfully, but these errors were encountered: