mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
apparmor: fix cross for different bit depths between build and host
Fixes #405780
Void also does not attempt to enable python on cross for armv7 [1].
This means apparmor-parser will never work on cross.
[1] f8130e11ca/srcpkgs/apparmor/template (L32-L36)
This commit is contained in:
@@ -12,7 +12,11 @@
|
||||
stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform perl,
|
||||
perl,
|
||||
withPython ?
|
||||
!stdenv.hostPlatform.isStatic && lib.meta.availableOn stdenv.hostPlatform python3Packages.python,
|
||||
# static can't load python libraries
|
||||
!stdenv.hostPlatform.isStatic
|
||||
&& lib.meta.availableOn stdenv.hostPlatform python3Packages.python
|
||||
# m4 python include script fails if cpu bit depth is different across machines
|
||||
&& stdenv.hostPlatform.parsed.cpu.bits == stdenv.buildPlatform.parsed.cpu.bits,
|
||||
python3Packages,
|
||||
swig,
|
||||
ncurses,
|
||||
|
||||
Reference in New Issue
Block a user