Upstream PR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1697
Closes https://github.com/NixOS/nixpkgs/issues/409032
The upstream Make procedure spawns apparmor tests in a stripped environment.
This results in pycache files that contain the actual current timestamp.
Solution: Don't generate pyc files while running tests.
`setup.py` will already correctly generate the `__pycache__`,
respecting the reproducibility flags.
The Python bindings were recently enabled when cross compiling, but it
still doesn't make sense to build them (a shared library) in
pkgsStatic.
Fixes: eba90bba66 ("apparmor: 4.0.3 -> 4.1.0, rewrite")
Upstream release: https://gitlab.com/apparmor/apparmor/-/releases/v4.1.0
Notable changes made to the packaging:
- apparmor-kernel-patches: drop. This was outdated and unused, and wouldn't even apply to any kernel anymore.
- aa-teardown: migrate to writeShellAPplication
- apparmor-*: migrate to by-name
- apparmor-*: enable checks and actually run checks
- libapparmor: test python module imports correctly
- libapparmor: no seperate $python output (makes no sense)