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

elmPackages.elm: fix build failure on darwin #315141

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

sandydoo
Copy link
Contributor

@sandydoo sandydoo commented May 27, 2024

Patches crypton-x509-system to use the full path to the security binary. Same as x509-system.

Fixes #297775.

cc @domenkozar @turboMaCk

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

@turboMaCk
Copy link
Member

turboMaCk commented May 27, 2024

@sandydoo since this is touching Haskell modules (which is indeed the right way to do it!) I think we might need to first merge it to haskell-updates branch.

@sternenseemann or would it be OK with you if we merge this patch directly to main?

@sandydoo sandydoo changed the base branch from master to haskell-updates May 27, 2024 17:14
@github-actions github-actions bot added 6.topic: python 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: kernel The Linux kernel 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: vim 6.topic: ocaml 6.topic: systemd 6.topic: lib The Nixpkgs function library 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels May 27, 2024
@sandydoo
Copy link
Contributor Author

sandydoo commented May 27, 2024

Oh, that did not do what I wanted 🤦 Let me fix this...

@turboMaCk
Copy link
Member

gosh. Yeah now the diff is all the master commits that haskell-updates lack behind. Version control is fun. Maybe you can keep master as base for now. I think maybe @sternenseemann will be OK with us merging this to the master? I'm not sure about how many rebuilds that could cause.

If not then maybe new branch based on haskell-updates and cherry-pick the comment on top of that? That's probably what I would do.

@github-actions github-actions bot removed 6.topic: python 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels May 27, 2024
@github-actions github-actions bot removed 6.topic: kernel The Linux kernel 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: vim 6.topic: ocaml 6.topic: systemd 6.topic: lib The Nixpkgs function library 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels May 27, 2024
Copy link
Member

@turboMaCk turboMaCk left a comment

Choose a reason for hiding this comment

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

LGTM. There is just what seems to be easy to resolve conflict.

@sandydoo
Copy link
Contributor Author

Waiting for the the latest branch to download 🙂 Sorry for the noise, everyone!

@turboMaCk
Copy link
Member

turboMaCk commented May 27, 2024

Oh no worries at all. I'm so glad someone picked this up. I was afraid I will need to steal Mac from my GF and set nix and everything up myself. Thanks a lot for looking into this.

Also... If you wish -- consider adding yourself to the maintainers of elm. It would be great to have someone with MacOS at hand there. It's important platform we need to keep supporting.
Just reminder that this is usually done in its own commit so if you choose to it can be its own PR.

Patches `crypton-x509-system` to use the full path to the `security`
binary.
@sandydoo
Copy link
Contributor Author

Managed to wrangle git. Should be good now.

Also... If you wish -- consider adding yourself to the maintainers of elm. It would be great to have someone with MacOS at hand there. It's important platform we need to keep supporting.

Will do, thanks!

@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 501+ 10.rebuild-darwin: 501-1000 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels May 27, 2024
@sternenseemann
Copy link
Member

This can't go to master due to the high amount of rebuilds. I'm also confused – weren't we supposed to be able to build security tool again?

@sandydoo
Copy link
Contributor Author

sandydoo commented May 27, 2024

I'm also confused – weren't we supposed to be able to build security tool again?

So this just applies the same workaround that was used for x509-system. A lot of packages, including http-client-tls have switched over to crypton-x509-system, which inherits the same issue with security.

I can try out the security-tool approach tomorrowsome time. Has anyone managed to build it?

@domenkozar
Copy link
Member

Can we merge this?

@turboMaCk
Copy link
Member

I think so. I think usually maintainer of haskell-updates does so but this is already open for some time.

@turboMaCk turboMaCk merged commit 6f29411 into NixOS:haskell-updates Jun 5, 2024
28 checks passed
Copy link
Contributor

github-actions bot commented Jun 8, 2024

Successfully created backport PR for staging-24.05:

@sternenseemann
Copy link
Member

I'd still appreciate it if someone could look into packaging the tool properly so we can get rid of these unsatisfactory workarounds!

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 6.topic: haskell 10.rebuild-darwin: 501-1000 10.rebuild-darwin: 501+ 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.

Darwin build failure: elmPackage.elm
4 participants