-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Update gambit and gerbil #26947
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
Update gambit and gerbil #26947
Conversation
@fare, thanks for your PR! By analyzing the history of the files in this pull request, we identified @thoughtpolice, @Mic92 and @7c6f434c to be potential reviewers. |
(cd boot && ./configure && make bootstrap ) && | ||
cp -a boot/gsc-boot* ./ && | ||
make -j2 from-scratch && | ||
make check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a separate phase for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put make check in a different phase.
Indeed. I added |
Yet another update, to enable various FFI libraries in gerbil. |
@@ -20,6 +33,7 @@ stdenv.mkDerivation rec { | |||
''; | |||
|
|||
buildPhase = '' | |||
substituteInPlace "src/std/build-config.ss" --replace '#f)' '#t)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a comment and seems fragile for updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, now the code is obvious.
a2cf9b2
to
611c25c
Compare
Ping. What's the next step? |
Some options:
The strategy I would recommend to you is to use the code you have produced yourself and then just hope that it will be merged and see PRs as a kind of asynchronous system. This could be handled better, sure. |
NB: Meanwhile I'll keep updating those commits, mostly to take advantage of gambit and gerbil updates. Please make sure to review again before you merge, though it should be mostly version changes and build script tweaks. |
Using a yet unreleased development version of gambit, so as to be able to build a recent gerbil. Update the way gambit is bootstrapped, which involves building a release version of gambit (which for a development gambit, is not the same version as the current version of gambit).
While gambit can be built with a cross-compiler, the current package won't build if you do. Moreover, you'd need to be able to tell that that the dependency on the bootstrap package was a native dependency, not a target dependency. As for gerbil, I suppose it also could be built with a cross-compiler, but then I might need both a native gambit and a target gambit, and a cross gambit. That's getting complicated. |
merged both in f96e4ed |
@Mic92 The diff was way bigger. It seems you missed some files. |
Motivation for this change
Use some recent capabilities of gerbil, that themselves require a recent unreleased gambit.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)