-
-
Notifications
You must be signed in to change notification settings - Fork 504
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 upgrading from relocated Sage with GCC #13689
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Attachment: 13689_relocate_gcc.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:7
I haven't been able to reproduce a problem by following the directions, but I can see that some paths are wrong in |
comment:8
Replying to @jhpalmieri:
Which exact version of Sage did you try?
Not sure. The main point is that this patch makes upgrading work. |
comment:10
Replying to @jdemeyer:
I built Sage 5.3 from scratch, moved the build directory, did
I'm not sure about that. When you upgrade, the old sage-location script is run so sage-current-location.txt is changed but a few paths aren't, so how can those old paths ever be fixed? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:12
Replying to @jhpalmieri:
Because I changed |
Reviewer: John Palmieri |
comment:13
I guess I don't see anything which changes the The patch does fix upgrading, though, at least on sage.math. (At first I didn't see the problem because I built Sage 5.3, then copied the installation elsewhere, so the hard-coded path referred to a still-existing file. When I moved the installation instead, upgrading failed unless I upgraded from a copy of 5.4.rc4 with this patch applied.) |
comment:14
Replying to @jhpalmieri:
|
comment:15
If you build sage 5.3, then move the installation, then upgrade, then dependency_libs is not fixed. The reason is that files in lib64 aren't touched by the old version of sage-location, just spkg/install, and spkg/install only fixes libdir. Then later, when sage-location is run, it looks for the path in libdir, then changes other paths in that file to match them. But once the path for dependency_libs is not in SAGE_ROOT and is not related to the path for libdir, sage-location can't fix that path. In practice, I applied the patches here, #13407, and #13452, to sage-5.4.rc4, built a copy of sage 5.3, moved it, and upgraded it from the patched 5.4.rc4. The path for dependency_libs was not fixed. |
Merged: sage-5.4.1.rc1 |
Older versions of
sage-location
(before #13397) do not properly fix GCC, leading to problems with upgrading from sage-5.3 if GCC was installed and Sage was relocated after building GCC but before upgrading. The problem shows up during the build of LinBox from #12883:Blocker because it breaks upgrading from sage-5.3.
CC: @nexttime
Component: build
Author: Jeroen Demeyer
Reviewer: John Palmieri
Merged: sage-5.4.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/13689
The text was updated successfully, but these errors were encountered: