-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
ocamlPackages: fix broken packages #162745
Conversation
a181ab0
to
701c0cc
Compare
Fixed and rebased after your review @SuperSandro2000 |
5ecd248
to
d181c3a
Compare
@vbgl I'm pretty sure this PR fixes the rest of the broken packages you found |
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.
Might be easier to review if split into smaller independent pieces.
@vbgl each commit is self contained, if you would rather have me move the commits into separate PRs I can do that |
I think it is fine how it is with one PR and multiple commits. We don't need 6 PRs for those fixes. |
Right, we don’t need 6 PRs. But the first commit is controversial and blocks all the rest. |
d181c3a
to
94a9a2d
Compare
buildInputs = [ cppo ppxlib ppx_deriving ]; | ||
nativeBuildInputs = [ cppo ]; | ||
buildInputs = [ ppxlib dune-configurator ]; | ||
propagatedBuildInputs = [ ppx_deriving ]; |
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 looks wrong (why is this dependency propagated?).
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.
Because it needs the runtime library in consuming packages.
94a9a2d
to
bc70a64
Compare
0badf27
to
1f62f77
Compare
@vbgl I rebased this on master, if the facile/nonstd commit is too controversial I can just drop it from here. |
ping @vbgl |
@@ -15,7 +15,7 @@ buildOcaml rec { | |||
|
|||
strictDeps = true; | |||
|
|||
buildInputs = [ camlp4 ]; | |||
propagatedBuildInputs = [ camlp4 ]; |
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 consider dropping this package altogether?
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.
Dropping pipebang?
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.
Should I just revert this and then create a separate PR dropping pipebang? I feel like I don't want to bundle it into this PR.
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.
Or, we could keep it and open a separate PR either way
6f4714d
to
220d1ec
Compare
@vbgl Thank you for your review 🙏 I think there's just 1 open question now, I'm leaning to fix pipebang now and then remove it in a separate PR. |
220d1ec
to
cfb23f6
Compare
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.
Please properly fix type_conv
or drop the changes to these packages (the issue can be addressed in a later PR).
This allows us to build the packages on OCaml >=4.12 Co-authored-by: Sandro <[email protected]>
cfb23f6
to
6d2c62d
Compare
Result of 3 packages marked as broken and skipped:
22 packages failed to build:
52 packages built:
|
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.
LGTM
Motivation for this change
Fix a lot of packages broken by #161344 and some extras I found along the way. The commits are structured so that we don't have to squash the commits if we don't want to.
ppx_deriving was intentionally left out of this since there's another open PR for it.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes