diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-03-02 16:52:00 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2021-03-03 13:55:58 -0500 |
commit | e013d413c8b67623c11e14377ad1592e5da73e29 (patch) | |
tree | 3f877910af3f77fb3a87005063fe8d4bc6344423 | |
parent | d81fcc5878b98683270272360ef91bffb0643aed (diff) | |
download | meta-selinux-e013d413c8b67623c11e14377ad1592e5da73e29.tar.gz |
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>
-rw-r--r-- | recipes-security/selinux/selinux-python.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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" | |||
10 | 10 | ||
11 | inherit python3native | 11 | inherit python3native |
12 | 12 | ||
13 | DEPENDS += "python3 libsepol" | 13 | DEPENDS += "python3 libsepol libselinux" |
14 | RDEPENDS_${BPN}-audit2allow += "\ | 14 | RDEPENDS_${BPN}-audit2allow += "\ |
15 | python3-core \ | 15 | python3-core \ |
16 | libselinux-python \ | 16 | libselinux-python \ |