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

pkgsMusl.colord: fix build #179682

Merged
merged 2 commits into from
Jul 11, 2022
Merged

pkgsMusl.colord: fix build #179682

merged 2 commits into from
Jul 11, 2022

Conversation

alyssais
Copy link
Member

@alyssais alyssais commented Jun 30, 2022

Description of changes

We can't build the daemon in pkgsMusl, because rustc does not support dynamic Musl targets, which means we can't build Spidermonkey, which means we can't build Polkit. But it still makes sense to support the rest of colord, because an application should still be able to link against it to talk to a colord daemon built in some other way (e.g. provided by a different distro).

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/)
  • 22.11 Release Notes (or backporting 22.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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested review from jtojnar and MarcWeber June 30, 2022 09:03
@alyssais alyssais added the 6.topic: musl Running or building packages with musl libc label Jun 30, 2022
As far as I can tell, none of the colord applications are graphical.
This change is important for Musl, where librsvg is not supported
because rustc does not support dynamically-linked Musl[1].

[1]: NixOS#179242
@alyssais
Copy link
Member Author

alyssais commented Jun 30, 2022

Doesn't build due to having recently acquired a transitive dependency of gperftools, which is currently broken on Musl. Will be fixed by #179102 due to it upgrading gperftools.

pkgs/tools/misc/colord/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/colord/default.nix Show resolved Hide resolved
We can't build the daemon in pkgsMusl, because rustc does not support
dynamic Musl targets[1].  But it still makes sense to support the rest
of colord, because an application should still be able to link against
it to talk to a colord daemon built in some other way (e.g. provided
by a different distro).

[1]: NixOS#179242
@alyssais
Copy link
Member Author

alyssais commented Jul 1, 2022

Sigh. OfBorg lib tests have failed due to a curl test failure. Let's try again.

@ofborg eval

@ofborg ofborg bot requested a review from jtojnar July 1, 2022 16:28
@alyssais alyssais changed the base branch from staging to staging-next July 2, 2022 09:15
@alyssais alyssais changed the base branch from staging-next to staging July 2, 2022 09:15
@vcunat vcunat merged commit 8a0854d into NixOS:staging Jul 11, 2022
@alyssais alyssais deleted the colord-musl branch July 12, 2022 08:10
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.

4 participants