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.
This commit is contained in:
sternenseemann 2022-03-17 19:28:09 +01:00 committed by sterni
parent de8120a340
commit fcb6bb628b

View file

@ -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
}: