From 18f8faa9a7490b0a11efae47705722c14f6b7c02 Mon Sep 17 00:00:00 2001 From: Mitchell Pleune Date: Sat, 8 Feb 2025 01:16:39 +0000 Subject: [PATCH] pulseaudio: disable pthread_setaffinity_np test Fails builds in LXC containers where not all cores are enabled, causing the pthread_setaffinity_np call to return EINVAL --- pkgs/servers/pulseaudio/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/pulseaudio/default.nix b/pkgs/servers/pulseaudio/default.nix index fa3333433ebb..e548337948ab 100644 --- a/pkgs/servers/pulseaudio/default.nix +++ b/pkgs/servers/pulseaudio/default.nix @@ -95,6 +95,11 @@ stdenv.mkDerivation rec { }) ]; + postPatch = '' + # Fails in LXC containers where not all cores are enabled, where this setaffinity call will return EINVAL + sed -i "/fail_unless(pthread_setaffinity_np/d" src/tests/once-test.c + ''; + outputs = [ "out" "dev"