@@ -30,7 +30,18 @@ let
3030 sha256 = "03nislxccnbxld89giak2s8xa4mdbwscfxbdwhmw5qpvgz08dgwh";
3131 };
3232
33+ # See <https://gitlab.com/apparmor/apparmor/-/issues/74> This and the
34+ # accompanying application in prePatchCommon should be removed in 2.13.5
35+ gnumake43Patch = fetchpatch {
36+ url = "https://gitlab.com/apparmor/apparmor/-/merge_requests/465.patch";
37+ name = "2-23-fix-build-with-make-4.3.patch";
38+ sha256 = "0xw028iqp69j9mxv0kbwraplgkj5i5djdlgf0anpkc5cdbsf96r9";
39+ };
40+
3341 prePatchCommon = ''
42+ patch -p1 < ${gnumake43Patch}
43+ chmod a+x ./common/list_capabilities.sh ./common/list_af_names.sh
44+ patchShebangs ./common/list_capabilities.sh ./common/list_af_names.sh
3445 substituteInPlace ./common/Make.rules --replace "/usr/bin/pod2man" "${buildPackages.perl}/bin/pod2man"
3546 substituteInPlace ./common/Make.rules --replace "/usr/bin/pod2html" "${buildPackages.perl}/bin/pod2html"
3647 substituteInPlace ./common/Make.rules --replace "/usr/include/linux/capability.h" "${linuxHeaders}/include/linux/capability.h"