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>
      |          ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
Yi Zhao 2021-03-02 16:52:00 +08:00 committed by Joe MacDonald
parent d81fcc5878
commit e013d413c8

View File

@ -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 \