-
-
Notifications
You must be signed in to change notification settings - Fork 482
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 checking for and resetting GAP workspaces #13963
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Attachment: 13963_gap_stamp.patch.gz |
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:6
+1 In the long run it would also be nice to have just a single cache dir with a single hashing scheme for SAGE_ROOT. Right now we have at least
|
Reviewer: Volker Braun |
comment:7
Minor comments:
Avoiding to think of the race conditions we may run into here... ;-) |
comment:8
Replying to @nexttime:
I think that the name
It mainly depends on how GAP's |
comment:9
P.S.:
|
comment:10
Replying to @jdemeyer:
Well, a binary is more likely to change upon reinstallation than some (more or less generic) script. (Haven't checked whether it actually gets [re-]created by the GAP spkg.) |
comment:11
I'd say this needs work, as in GAP's most recent # Indicate that GAP has somehow been updated, which invalidates all workspaces:
touch "$SAGE_LOCAL/bin/gap_stamp" |
comment:12
The |
comment:13
Replying to @vbraun:
No matter what we use as the stamp, it wouldn't be bad to use the same in GAP-related spkgs as well as the Sage library... ;-) |
comment:14
Replying to @vbraun:
Does installing a new GAP package require a rebuild of the workspace? |
comment:15
Yes... just the other day I spent a fun few hours figuring out why some GAP command mysteriously crashes. Wrong gap workspace %-) |
This comment has been minimized.
This comment has been minimized.
comment:17
Replying to @vbraun:
Any suggestions for a way of properly checking whether a new package was installed? |
This comment has been minimized.
This comment has been minimized.
comment:18
Attachment: gap_packages-4.5.7.p0.diff.gz |
comment:19
This seems the best solution, although it is not very elegant. |
comment:20
How about we check the date of |
comment:21
I'd still let And while you're at it, change the There are also a few error checks missing, and The |
comment:22
Replying to @nexttime:
I don't think Sage should ever override user-chosen flags, so we should always do
|
Attachment: gap-4.5.7.p2.diff.gz |
comment:24
Can this be reviewed again please? |
comment:25
Its still fugly to touch bin/gap but at least it works. Cute trick with |
comment:26
Replying to @jdemeyer:
Well, IMHO depends. If Unfortunately there's not always an option to toggle or invalidate a previously (i.e., "user-specified") option, and flags may even conflict. (The same is true for the opposite case, when a user wants to override some option added by Sage or an spkg's build system. This especially holds for If a user sets Ideally, we'd have some Until we have |
comment:27
Replying to @nexttime:
I don't think there are many situations where it's known that a flag is absolutely required to not break the build. I like the principle of "the user knows best" and not "the Sage developers know best".
The
Sure, but exactly the same holds for
So now we require users to modify a spkg to get the options they want? Why make things hard which should be easy?
Why that? Changing
Why do you think that? Are there any distributions which have |
Merged: sage-5.7.beta0 |
It seems that nothing really guarantees the existence of the directory
SAGE_EXTCODE
($SAGE_ROOT/local/share/sage/ext
) apart from the installers of some packages.If Sage is started when that directory doesn't exist:
This is a regression because conway_polynomials from #12205 runs Sage code at build time at a time when the existence of
SAGE_EXTCODE
is not guaranteed.The attached patch solves this problem in two ways:
SAGE_EXTCODE
(which doesn't really make sense), check the modification time of$SAGE_LOCAL/bin/gap
.Apply: attachment: 13963_gap_stamp.patch
spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/gap-4.5.7.p2.spkg (diff: attachment: gap-4.5.7.p2.diff)
optional spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/gap_packages-4.5.7.p0.spkg (diff: attachment: gap_packages-4.5.7.p0.diff)
Component: build
Author: Jeroen Demeyer
Reviewer: Volker Braun
Merged: sage-5.7.beta0
Issue created by migration from https://trac.sagemath.org/ticket/13963
The text was updated successfully, but these errors were encountered: