Skip to contentSkip to conversation

selinux-python: depend on libselinux

PATCH New Yi Zhao 1 participant 1 message Jan 21, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 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 <selinux/selinux.h>

      |          ^~~~~~~~~~~~~~~~~~~
---
 recipes-security/selinux/selinux-python.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/selinux/selinux-python.inc +1 -1
index e690ac5..827fa8b 100644
@@ -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 \
Signature · 1 line
2.17.1