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

haskellPackages.{hedgehog-classes, hgeometry, hgeometry-combinatorial}: unbreak #116931

Merged
merged 2 commits into from Mar 20, 2021

Conversation

sternenseemann
Copy link
Member

hedgehog has a too strict bound on semirings which breaks its build.
Unfortunately we need to patch the cabal source since the bound is
conditional.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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.

hedgehog 0.2.5.2 fixed this.

vector-circular also builds again.
hegdehog-classes allows us to build these now, hgeometry-combinatorial
needs disabling of test suite since doctests cause some kind of run time
linking issue.
@sternenseemann sternenseemann changed the title haskellPackages.hedgehog-classes: unbreak by adjusting semirings bound haskellPackages.{hedgehog-classes, hgeometry, hgeometry-combinatorial}: unbreak Mar 19, 2021
@sternenseemann sternenseemann removed the request for review from maralorn March 19, 2021 22:57
@cdepillabout
Copy link
Member

Looks good, these all compile!

@cdepillabout cdepillabout merged commit 16b3aa0 into NixOS:haskell-updates Mar 20, 2021
@sternenseemann sternenseemann deleted the hedgehog-unbreak branch March 20, 2021 12:41
@sternenseemann
Copy link
Member Author

@cdepillabout Upstream indicates that with our setup, the doctests for hgeometry-combinatorial wouldn't work. Seems like they are having trouble linking against the cbits of the base package: noinia/hgeometry#132 (comment)

You know more about doctests than me, any chance we can make them work?

@cdepillabout
Copy link
Member

cdepillabout commented Mar 22, 2021

@sternenseemann In my experience, plain doctest is pretty unreliable, which is why most libraries have switched to using cabal-doctest.

However, I don't know what could be causing the error you're seeing in noinia/hgeometry#132.

My only guess is that https://github.com/noinia/hgeometry/blob/1aa137819b8b959f842adf7cd7172bbf5ec20adf/hgeometry-combinatorial/doctests.hs doesn't specify anything about c-sources, while the .cabal file does: https://github.com/noinia/hgeometry/blob/1aa137819b8b959f842adf7cd7172bbf5ec20adf/hgeometry-combinatorial/hgeometry-combinatorial.cabal#L198-L199. I imagine that GHC (well, doctest) doesn't have any way of figuring this out for itself, while cabal does.

@sternenseemann
Copy link
Member Author

Maybe, I'll investigate again, when I feel like it; adding c-sources for the tests doesn't help which is what I tried so far. Losing the test suite is not too bad I guess.

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