From 831f2d6451918f1cf77795c2cf5229d1e49f283f Mon Sep 17 00:00:00 2001 From: Omer Akram Date: Mon, 12 Apr 2021 22:58:22 +0500 Subject: [PATCH] tests: correctly escape # in Makefile Signed-off-by: Armin Kuster --- recipes-mac/AppArmor/apparmor_2.13.6.bb | 1 + .../0002-Correctly-escape-in-Makefile.patch | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 recipes-mac/AppArmor/files/0002-Correctly-escape-in-Makefile.patch diff --git a/recipes-mac/AppArmor/apparmor_2.13.6.bb b/recipes-mac/AppArmor/apparmor_2.13.6.bb index ebd8be3..bc14545 100644 --- a/recipes-mac/AppArmor/apparmor_2.13.6.bb +++ b/recipes-mac/AppArmor/apparmor_2.13.6.bb @@ -23,6 +23,7 @@ SRC_URI = " \ file://apparmor.service \ file://0001-Makefile.am-suppress-perllocal.pod.patch \ file://0001-Use-build-environment-C-preprocessor.patch \ + file://0002-Correctly-escape-in-Makefile.patch \ file://run-ptest \ " diff --git a/recipes-mac/AppArmor/files/0002-Correctly-escape-in-Makefile.patch b/recipes-mac/AppArmor/files/0002-Correctly-escape-in-Makefile.patch new file mode 100644 index 0000000..f3cae7d --- /dev/null +++ b/recipes-mac/AppArmor/files/0002-Correctly-escape-in-Makefile.patch @@ -0,0 +1,25 @@ +From 4ffd666a2cedeabc8eef42371c03be52fc2a3d66 Mon Sep 17 00:00:00 2001 +From: Omer Akram +Date: Mon, 12 Apr 2021 22:54:52 +0500 +Subject: [PATCH] Correctly escape # in Makefile + +--- + tests/regression/apparmor/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/regression/apparmor/Makefile b/tests/regression/apparmor/Makefile +index c3d0cfb7..b41dbe47 100644 +--- a/tests/regression/apparmor/Makefile ++++ b/tests/regression/apparmor/Makefile +@@ -69,7 +69,7 @@ endif # USE_SYSTEM + + CFLAGS += -g -O0 -Wall -Wstrict-prototypes + +-USE_SYSCTL:=$(shell echo "#include " | cpp -dM >/dev/null 2>/dev/null && echo true) ++USE_SYSCTL:=$(shell echo "\#include " | cpp -dM >/dev/null 2>/dev/null && echo true) + + + SRC=access.c \ +-- +2.25.1 +