From fcb6bb628b199f82f5209bf27ba747e6585fe69e Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 17 Mar 2022 19:28:09 +0100 Subject: audit: disable python when cross-compiling To support this theoretically, the configure script upstream would need to a) stop using PATH for finding python-config exclusively and allow passing an absolute path to it and b) cease using the distutils module for configuration purposes which of course requires running the host python interpreter which is not possible in the cross case. --- pkgs/os-specific/linux/audit/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/os-specific/linux/audit/default.nix') diff --git a/pkgs/os-specific/linux/audit/default.nix b/pkgs/os-specific/linux/audit/default.nix index de71b7d8c3e..e9762f44dcd 100644 --- a/pkgs/os-specific/linux/audit/default.nix +++ b/pkgs/os-specific/linux/audit/default.nix @@ -3,7 +3,10 @@ runCommand, autoreconfHook, autoconf, automake, libtool, - enablePython ? true, python3, swig, + # Enabling python support while cross compiling would be possible, but + # the configure script tries executing python to gather info instead of + # relying on python3-config exclusively + enablePython ? stdenv.hostPlatform == stdenv.buildPlatform, python3, swig, linuxHeaders ? stdenv.cc.libc.linuxHeaders }: -- cgit 1.4.1