-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
GAP's spkg-install fails on recent Cygwin #13341
Comments
Attachment: spkg.diff.gz Spkg diff, for review only. |
This comment has been minimized.
This comment has been minimized.
Author: Jean-Pierre Flori |
comment:2
Rather than expressing hope, how about testing for the presence of You could also just use (Note that If you don't want to use the "force" option, you could instead do mkdir -p bin/i686-pc-cygwin-gcc &&
cd bin/i686-pc-cygwin-gcc &&
touch gap.exe &&
(test -f gap || ln -s gap.exe gap) # Probably don't use '-x'
# since 'gap.exe' is yet a dummy.
if [[ $? -ne 0 ]]; then
# *Something* really went wrong...
...
exit 1 But perhaps it's better to at least slightly untangle the command chain: mkdir -p bin/i686-pc-cygwin-gcc &&
cd bin/i686-pc-cygwin-gcc &&
touch gap.exe
if [[ $? -ne 0 ]]; then
# Some serious error...
...
exit 1
fi
# We may need a link from 'gap' to 'gap.exe', since the former later gets
# stripped by GAP.
# On newer Cygwins, 'gap' is automatically "translated" to 'gap.exe',
# such that 'ln' (without '-f') would fail (and we don't have to create the
# link on these systems anyway, since 'strip gap' there works without it).
if [[ ! -f gap ]]; then
ln -s gap.exe gap
# May check exit status here, since the above should never fail.
fi |
comment:3
Replying to @nexttime:
Good point, let's do something more sensible. |
Work Issues: use better script |
comment:5
Spkg updated. |
Changed work issues from use better script to none |
Changed author from Jean-Pierre Flori to Jean-Pierre Flori, Leif Leonhardy |
Attachment: spkg.2.diff.gz spkg diff, for review only |
comment:6
Mmm something got broken in the last spkg, please disregard it. |
comment:7
This should be fixed now. |
comment:8
Anyone reviewing this? |
comment:9
Replying to @jpflori:
I'll test that it builds on CYGWIN, and that ./sage -gap works. That's the best I can do on the current Win7 system I have access to. |
comment:10
All good, as far as I see. |
Reviewer: Dmitrii Pasechnik |
Merged: sage-5.3.rc1 |
The ln trick to symlink gap and gap.exe which used to be needed now fails and stop the installation.
Use spkg at http://boxen.math.washington.edu/home/jdemeyer/spkg/gap-4.4.12.p8.spkg
CC: @dimpase
Component: porting: Cygwin
Keywords: cygwin gap spkg
Author: Jean-Pierre Flori, Leif Leonhardy
Reviewer: Dmitrii Pasechnik
Merged: sage-5.3.rc1
Issue created by migration from https://trac.sagemath.org/ticket/13341
The text was updated successfully, but these errors were encountered: