From e013d413c8b67623c11e14377ad1592e5da73e29 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Tue, 2 Mar 2021 16:52:00 +0800 Subject: selinux-python: depend on libselinux Fix build error when selinux feature is not enabled: sepolgen-ifgen-attr-helper.c:29:10: fatal error: selinux/selinux.h: No such file or directory 29 | #include | ^~~~~~~~~~~~~~~~~~~ Signed-off-by: Yi Zhao Signed-off-by: Joe MacDonald --- recipes-security/selinux/selinux-python.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-security/selinux/selinux-python.inc b/recipes-security/selinux/selinux-python.inc index e690ac5..827fa8b 100644 --- a/recipes-security/selinux/selinux-python.inc +++ b/recipes-security/selinux/selinux-python.inc @@ -10,7 +10,7 @@ SRC_URI += "file://fix-sepolicy-install-path.patch" inherit python3native -DEPENDS += "python3 libsepol" +DEPENDS += "python3 libsepol libselinux" RDEPENDS_${BPN}-audit2allow += "\ python3-core \ libselinux-python \ -- cgit v1.2.3-54-g00ecf