Skip to content
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.bigstringaf: 0.3.0 → 0.6.0 #70955

Merged
merged 3 commits into from Oct 18, 2019

Conversation

vbgl
Copy link
Contributor

@vbgl vbgl commented Oct 11, 2019

Motivation for this change

The updated version is a dependency of ocaml-git ≥ 2.1

Tests of faraday fail with:

Error: No implementations provided for the following modules:
Bigarray referenced from lib_test/.test_faraday.eobjs/native/test_faraday.cmx

The error only shows up with OCaml 4.07; I’ve thus disabled them for that version. The situation of httpaf is similar.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@vbgl
Copy link
Contributor Author

vbgl commented Oct 11, 2019

@GrahamcOfBorg build ocamlPackages.httpaf

@@ -13,9 +13,9 @@ buildDunePackage rec {
sha256 = "0z6ikwlqad91iac0q5z88p3wzq5k15y86ckzmhdq1aqwrcm14bq2";
};

buildInputs = [ alcotest ];
buildInputs = lib.optional doCheck alcotest;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be part of checkInputs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@@ -11,14 +11,14 @@ buildDunePackage rec {
sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517";
};

buildInputs = [ alcotest ];
buildInputs = lib.optional doCheck alcotest;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put into checkInputs? also avoids having alcotest in the closure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which closure?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buildInputs usually are meant to be used at runtime, if a store path gets added somehow during the build, then the package closure will include it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think so: build inputs are primarily used at build time.

The package closure is computed from its contents: the details of the source of the derivation are irrelevant (if they don’t change the build results).

@vbgl vbgl merged commit 69d5465 into NixOS:master Oct 18, 2019
@vbgl vbgl deleted the ocaml-bigstringaf-0.6.0 branch October 18, 2019 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants