From 20661f35a0cd0fa95499d4f1f5c82a1bec4e7cc0 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 12 Oct 2020 17:33:56 -0400 Subject: [PATCH] apparmor: explain makefile fix --- srcpkgs/apparmor/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template index ec0c55d6c68..aec653c100c 100644 --- a/srcpkgs/apparmor/template +++ b/srcpkgs/apparmor/template @@ -24,6 +24,12 @@ if [ -z "$CROSS_BUILD" ]; then fi post_patch() { + # Make.rules feeds some system headers to the C preprocessor to produce + # lists of capability and address-family names that, respectively, + # populate `parser/cap_names.h` and `parser/af_names.h`. The escaping + # backslash in the '\#include" directives here is seen by the + # preprocessor, causing it to skip the system headers and produce empty + # files. Removing the backslash ensures correct behavior. vsed -i ${wrksrc}/common/Make.rules -e 's/\\#include