3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #96109 from saschagrunert/apparmor_parser-path

apparmor: fix apparmor_parser path for utils package
This commit is contained in:
Joachim F 2020-08-28 08:08:04 +00:00 committed by GitHub
commit 4ef92a3033
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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=" ];