diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-03-17 19:28:09 +0100 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-03-18 22:45:20 +0100 |
commit | fcb6bb628b199f82f5209bf27ba747e6585fe69e (patch) | |
tree | caaa0b3f57bcca0546af30a84100e9f36d5d93aa /pkgs/os-specific | |
parent | de8120a340d589f1c8fe9d10c928d7bfb26f8d69 (diff) |
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.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/audit/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/audit/default.nix b/pkgs/os-specific/linux/audit/default.nix index de71b7d8c3e01..e9762f44dcdca 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 }: |