Skip to content

gql: add Security framework dependency on darwin#247398

Closed
tjni wants to merge 1 commit intoNixOS:staging-nextfrom
tjni:gql
Closed

gql: add Security framework dependency on darwin#247398
tjni wants to merge 1 commit intoNixOS:staging-nextfrom
tjni:gql

Conversation

@tjni
Copy link
Copy Markdown
Contributor

@tjni tjni commented Aug 5, 2023

Description of changes

This is broken in staging-next (#245935). Related to libgit2 being updated from 1.6.4 to 1.7.0.

Things done

  • Built on platform(s)
    • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Aug 5, 2023
@ofborg ofborg Bot requested a review from figsoda August 5, 2023 22:00
@ofborg ofborg Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Aug 5, 2023
@figsoda
Copy link
Copy Markdown
Member

figsoda commented Aug 5, 2023

I opened #247408 to add back libgit2 1.6 like we did for 1.5 and 1.3, so packages like this can still link to libgit2, and Security should no longer be required

@tjni
Copy link
Copy Markdown
Contributor Author

tjni commented Aug 5, 2023

Got it, do you know why this is happening? I don't have a good instinct about how transitive dependencies are or are not propagated.

@figsoda
Copy link
Copy Markdown
Member

figsoda commented Aug 5, 2023

The libgit2-sys crate has opted to only work with one minor release of libgit2
https://github.com/rust-lang/git2-rs/blob/f35a3bbe1f4d60f4c2ed9fc3db7f490dbcde498d/libgit2-sys/build.rs#L17

@tjni
Copy link
Copy Markdown
Contributor Author

tjni commented Aug 5, 2023

Wow, what a footgun. Can you also revert my change in #247387?

@tjni tjni closed this Aug 5, 2023
@tjni tjni deleted the gql branch August 5, 2023 22:24
@figsoda
Copy link
Copy Markdown
Member

figsoda commented Aug 5, 2023

Can you also revert my change in #247387?

👍, done in #247408

@figsoda figsoda mentioned this pull request Aug 7, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants