Skip to content

pkgsMusl.colord: fix build#179682

Merged
vcunat merged 2 commits intoNixOS:stagingfrom
alyssais:colord-musl
Jul 11, 2022
Merged

pkgsMusl.colord: fix build#179682
vcunat merged 2 commits intoNixOS:stagingfrom
alyssais:colord-musl

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 MarcWeber and jtojnar June 30, 2022 09:03
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Jun 30, 2022
@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.

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
@bobby285271 bobby285271 added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 4, 2022
@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

Labels

6.topic: musl Running or building packages with musl libc 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants