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

csound: fix cross with gettext hack #227135

Merged
merged 1 commit into from
May 22, 2023

Conversation

lilyinstarlight
Copy link
Member

@lilyinstarlight lilyinstarlight commented Apr 19, 2023

Description of changes

We need to ignore gettext in CMAKE_PREFIX_PATH when cross-compiling to prevent find_program from picking up the wrong gettext. See the webkitgtk and fish derivations for similar hacks (though this really should eventually be fixed at a lower level). The wrong gettext in this case is getting pulled in via:
csound(host) -> fluidsynth(host) -> glib(host) -> gettext(host-propagated)

This change should be zero rebuilds for non-cross

Things done
  • Built on platform(s)
    • x86_64-linux
    • x86_64-linux (build) -> aarch64-linux (host) cross
    • 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.05 Release Notes (or backporting 22.11 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.

@lilyinstarlight lilyinstarlight added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Apr 19, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Apr 19, 2023
@Mindavi Mindavi requested a review from MarcWeber May 9, 2023 18:04
@mweinelt mweinelt added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label May 9, 2023
@lilyinstarlight
Copy link
Member Author

Rebased to fix merge conflict after #230329

We need to ignore gettext in CMAKE_PREFIX_PATH on cross to prevent
`find_program` from picking up the wrong gettext. See the `webkitgtk`
and `fish` derivations for similar hacks (though this really should
eventually be fixed at a lower level). The wrong gettext in this case is
getting pulled in via:
csound(host) -> fluidsynth(host) -> glib(host) -> gettext(host)
@Mindavi Mindavi merged commit 829ef7c into NixOS:master May 22, 2023
@lilyinstarlight lilyinstarlight deleted the fix/csound-cross branch May 22, 2023 10:08
@rvl rvl mentioned this pull request Jun 5, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants