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
janeStreet: 0.9.0 -> 0.10.0 [WIP] #35439
Conversation
@@ -34,8 +32,7 @@ rec { | |||
meta.description = "OCaml AST used by Jane Street ppx rewriters"; | |||
} // (if lib.versionAtLeast ocaml.version "4.06" |
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 test should be dropped.
propagatedBuildInputs = [ core_extended async ]; | ||
meta = { | ||
description = "Shell helpers for Async"; | ||
}; | ||
}; | ||
|
||
# Broken due to ctypes build failure (upgrading ctypes may possibly work, but | ||
# opens a world of pain) |
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.
See #35418
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'll fix this when the PR (#35418) gets merged.
propagatedBuildInputs = [ ppx_sexp_conv ]; | ||
meta.description = "Binding to the posix *at functions"; | ||
meta.broken = lib.versionAtLeast ocaml.version "4.05"; | ||
meta.broken = !lib.versionAtLeast ocaml.version "4.05"; |
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 line should be removed.
propagatedBuildInputs = [ core_kernel ]; | ||
meta.description = "Topological sort algorithm"; | ||
}; | ||
|
||
typerep_extended = janePackage { | ||
name = "typerep_extended"; | ||
version = "0.9.0"; |
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.
Does it make sense to keep this package?
|
Hmm, did I just mess up rebase? 😢 |
hehe yes. Use |
I think I got it right this time. |
@@ -1,6 +1,6 @@ | |||
{ stdenv, fetchFromGitHub, ocaml, jbuilder, findlib }: | |||
|
|||
{ name, version ? "0.9.0", buildInputs ? [], hash, meta, ...}@args: | |||
{ name, version ? "0.10.0", buildInputs ? [], hash, meta, ...}@args: | |||
|
|||
if !stdenv.lib.versionAtLeast ocaml.version "4.03" |
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.
Did you test with 4.03 ? I think 4.04 or above is required.
@GrahamcOfBorg build ocamlPackages.bap |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
This PR breaks |
I guess the solution is to keep the 0.9.0 versions around (under a different name like janeStreet_0_9_0, perhaps) and use that version for all of bap's dependencies (and all of their dependencies, and so on). I have no idea how one will go about doing that or if that's even possible. I've tried to inject the 0.9.0 versions of core_kernel and ppx_jane for bap, but of course that ends up with errors about other dependencies dependent on core_kernel/ppx_jane/etc. 0.10.0. How should we proceed? |
Maybe ask upstream ( |
Possible solution: keep the old This shouldn’t introduce regression and allow to update the whole bunch of janestreet libraries. |
Thanks! I tried I think just keeping the old janestreet/default.nix works as a temporary workaround while we wait for bap upstream to upgrade to 0.10.0 (BinaryAnalysisPlatform/bap#786). As a bonus, if any other regressions pop up we can also fix them with janestreet/old.nix pretty easily. |
@GrahamcOfBorg build patdiff |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
FYI, BAP has a half-a-year release cycle, so we will unlikely upgrade to the core.v0.10 earlier than that. Looping in @maurer. |
I guess |
@vbgl Done. |
🎉 |
Motivation for this change
Attempt to update janeStreet packages.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)