Skip to content

pulseaudio: fix cross-compilation#108174

Merged
Ericson2314 merged 2 commits intoNixOS:staging-nextfrom
flokli:cross-compile-pulseaudio
Jan 1, 2021
Merged

pulseaudio: fix cross-compilation#108174
Ericson2314 merged 2 commits intoNixOS:staging-nextfrom
flokli:cross-compile-pulseaudio

Conversation

@flokli
Copy link
Member

@flokli flokli commented Jan 1, 2021

Motivation for this change

Cross-compile NixOS with pulseaudio.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

flokli added 2 commits January 1, 2021 23:17
libjack2 doesn't cross-compile, see
NixOS#96548.

The pulseaudio NixOS module uses pkgs.alsaPlugins to create its
asound.conf, so let's make sure that one can be built when
cross-compiling.
…ompiling

When cross-compiling, pulseaudio seems to not find some m4 macro
providing GSETTINGS_RULES.

However, apart from the obviously missing gsettings support, this works
just fine.
@flokli flokli added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Jan 1, 2021
@flokli flokli requested review from dtzWill, jtojnar and samueldr January 1, 2021 22:25
@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 Jan 1, 2021
@Ericson2314 Ericson2314 merged commit 040d758 into NixOS:staging-next Jan 1, 2021
@flokli flokli deleted the cross-compile-pulseaudio branch January 2, 2021 10:06
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants