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
Enhancements to sage-rebase scripts #20986
Comments
comment:2
It's also "good" to be reminded every now and then how awful DOS batch scripts are and how lucky we are to have bash... |
comment:3
I've made several more updates to these scripts that should be incorporated into this ticket. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:7
I think I've done all I need with these for now. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Jean-Pierre Flori |
comment:9
LGTM. |
comment:10
Thanks! |
Changed branch from u/embray/cygwin-rebase-fas to |
The scripts sage-rebase(all).{sh,bat} are used when developing/building Sage on Windows.
In the long term I'd like to find a way to reduce the need for them, but even then they're still good to have. It is useful to run these every now and then to ensure that all DLLs in the Sage distribution are configured to load into non-overlapping address ranges by default. First and foremost this is a performance issue, but also not rebasing can cause failures with Cygwin's fork.
To summarize what this ticket changes:
CYGWIN_ROOT
andSAGE_ROOT
. In fact,SAGE_ROOT
is not needed by these scripts so much asSAGE_LOCAL
, the path to which is automatically detected from the location of the script.CYGWIN_ROOT
is determined from the registry. This may be incorrect if there are multiple Cygwin installations on the system, but this is unlikely in most cases. Furthermore, with the changes I'm making for Add auto-rebasing mechanism for Cygwin #15423 there will be less need to use the batch script in the first place (I have rarely had to use them in a long time now).sage-rebase.sh
, which has grown an--all
flag for performing rebaseall. Sosage-rebaseall.sh
is just a wrapper aroundsage-rebase.sh --all
. This reduces a lot of code duplication./var/tmp
so that build artifacts don't take up space in the address space layout..fas
modules for ECL, which were previously not included in the rebase.$SAGE_LOCAL
to the scripts as an argument, so it's not necessary for$SAGE_LOCAL
to be set before running them (useful sometimes during development).rebase
/rebaseall
commands.This is just a small collection of enhancements to these scripts. Most importantly, this adds support for rebase
.fas
binaries that are part of ECL. Not doing this potentially caused problems for Maxima (so I'm marking this as a defect).CC: @jpflori
Component: porting: Cygwin
Keywords: cygwin windows
Author: Erik Bray
Branch/Commit:
df53e2f
Reviewer: Jean-Pierre Flori
Issue created by migration from https://trac.sagemath.org/ticket/20986
The text was updated successfully, but these errors were encountered: