apparmor: fix apparmor_parser path for utils package

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2020-08-23 20:42:59 +02:00
parent 70cfd9d25e
commit 372edacef2
No known key found for this signature in database
GPG key ID: 8CE029DD1A866E52

View file

@ -130,7 +130,11 @@ let
libapparmor.python
];
prePatch = prePatchCommon;
prePatch = prePatchCommon + ''
substituteInPlace ./utils/apparmor/easyprof.py --replace "/sbin/apparmor_parser" "${apparmor-parser}/bin/apparmor_parser"
substituteInPlace ./utils/apparmor/aa.py --replace "/sbin/apparmor_parser" "${apparmor-parser}/bin/apparmor_parser"
substituteInPlace ./utils/logprof.conf --replace "/sbin/apparmor_parser" "${apparmor-parser}/bin/apparmor_parser"
'';
inherit patches;
postPatch = "cd ./utils";
makeFlags = [ "LANGS=" ];