aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmer Akram <omer@thing.com>2021-04-12 22:58:22 +0500
committerArmin Kuster <akuster808@gmail.com>2021-04-14 05:14:28 +0000
commit831f2d6451918f1cf77795c2cf5229d1e49f283f (patch)
tree65ff9ba0a34ae6038143efd203a477feaac6f0f6
parentec54b4bb648f5bf53b84699e5b32b12e097098dd (diff)
downloadmeta-security-dunfell.tar.gz
meta-security-dunfell.tar.bz2
meta-security-dunfell.zip
tests: correctly escape # in Makefiledunfell
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-mac/AppArmor/apparmor_2.13.6.bb1
-rw-r--r--recipes-mac/AppArmor/files/0002-Correctly-escape-in-Makefile.patch25
2 files changed, 26 insertions, 0 deletions
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 <omer@thing.com>
+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 <sys/sysctl.h>" | cpp -dM >/dev/null 2>/dev/null && echo true)
++USE_SYSCTL:=$(shell echo "\#include <sys/sysctl.h>" | cpp -dM >/dev/null 2>/dev/null && echo true)
+
+
+ SRC=access.c \
+--
+2.25.1
+