mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
apparmor-utils: fix aa-remove-unknown
it seems this was linking against apparmor-parser whilst the file doesn't actually exist there but rather apparmor-init
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
buildPackages,
|
||||
|
||||
# apparmor deps
|
||||
apparmor-parser,
|
||||
apparmor-init,
|
||||
}:
|
||||
let
|
||||
inherit (python3Packages) libapparmor;
|
||||
@@ -25,7 +25,7 @@ python3Packages.buildPythonApplication {
|
||||
cd utils
|
||||
|
||||
substituteInPlace aa-remove-unknown \
|
||||
--replace-fail "/lib/apparmor/rc.apparmor.functions" "${apparmor-parser}/lib/apparmor/rc.apparmor.functions"
|
||||
--replace-fail "/lib/apparmor/rc.apparmor.functions" "${apparmor-init}/lib/apparmor/rc.apparmor.functions"
|
||||
substituteInPlace Makefile \
|
||||
--replace-fail "/usr/include/linux/capability.h" "${linuxHeaders}/include/linux/capability.h"
|
||||
sed -i -E 's/^(DESTDIR|BINDIR|PYPREFIX)=.*//g' Makefile
|
||||
|
||||
Reference in New Issue
Block a user