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

hercules-ci-{agent,cnix-expr}: Force use of propagated boehmgc #146388

Conversation

roberth
Copy link
Member

@roberth roberth commented Nov 17, 2021

This was already in effect, but only by coincidence. A direct
boehmgc could presumably be added implicitly in the generated
code by fixing the pkg-config to nixpkgs mapping.

This commit should counteract that, or, in case of a rename,
cause an evaluation error so that it can be fixed, instead of
building and crashing at runtime.

Motivation for this change

Make hercules-ci-cnix-expr and hercules-ci-agent packages robust against a potentially disastrous cabal2nix improvement.

bdw-gc = null in the generated hackage-packages code is technically a bug, but required for nix bindings to work correctly.

Things done
  • Built on platform(s)
    • should produce no rebuilds
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

This was already in effect, but only by coincidence. A direct
boehmgc could presumably be added implicitly in the generated
code by fixing the pkg-config to nixpkgs mapping.

This commit should counteract that, or, in case of a rename,
cause an evaluation error so that it can be fixed, instead of
building and crashing at runtime.
@sternenseemann
Copy link
Member

Do you mind opening an issue about the incorrect handling of boehm-gc in cabal2nix as well? Quite confused by the appearance of bdw-gc

@roberth
Copy link
Member Author

roberth commented Nov 17, 2021

@sternenseemann done: NixOS/cabal2nix#529

I don't think we have an actual use case for it though.

@roberth
Copy link
Member Author

roberth commented Nov 17, 2021

Well, I've accidentally learned that the bdw-gc dependency isn't necessary in the cabal file either. I'm removing the bdw-gc reference in 0.9, so this change won't be necessary (and need to be reverted). I'm glad we can keep it simple, which is the best outcome. Sorry for the noise.

@roberth roberth closed this Nov 17, 2021
roberth added a commit to hercules-ci/hercules-ci-agent that referenced this pull request Jan 1, 2022
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.

2 participants