\s is a new feature of GNU grep 2.6 (released on 2010-03-23) and it does not work in older versions. By using [[:space:]] instead, AppArmor can compile on systems with older versions of grep.
AppArmor's use of \s was introduced by revno 2327 (make sure all profiles have #include <local/...>). Signed-off-by: Alban Crequy <[email protected]> --- profiles/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/Makefile b/profiles/Makefile index 6af6ffe..ff15ada 100644 --- a/profiles/Makefile +++ b/profiles/Makefile @@ -44,7 +44,7 @@ local: for profile in ${TOPLEVEL_PROFILES}; do \ fn=$$(basename $$profile); \ echo "# Site-specific additions and overrides for '$$fn'" > ${PROFILES_SOURCE}/local/$$fn; \ - grep "include\\s\\s*<local/$$fn>" "$$profile" >/dev/null || { echo "$$profile doesn't contain #include <local/$$fn>" ; exit 1; } ; \ + grep "include[[:space:]]\\+<local/$$fn>" "$$profile" >/dev/null || { echo "$$profile doesn't contain #include <local/$$fn>" ; exit 1; } ; \ done; \ .PHONY: install -- 1.9.1 -- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
