We encountered a libselinux-python compile error when bitbake world
without selinux DISTRO_FEATURES:
In file included from label_file.h:16,
from label_file.c:24:
regex.h:10:10: fatal error: pcre.h: No such file or directory
10 | #include <pcre.h>
| ^~~~~~~~
compilation terminated.
Add missing DEPENDS on libpcre and libsepol.
Signed-off-by: Yi Zhao <[email protected]>
---
recipes-security/selinux/libselinux-python.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-security/selinux/libselinux-python.inc
b/recipes-security/selinux/libselinux-python.inc
index 24407e8..9f10e15 100644
--- a/recipes-security/selinux/libselinux-python.inc
+++ b/recipes-security/selinux/libselinux-python.inc
@@ -9,7 +9,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/libselinux:"
inherit python3-dir
-DEPENDS += "python3 swig-native"
+DEPENDS += "python3 swig-native libpcre libsepol"
RDEPENDS_${PN} += "libselinux python3-core python3-shell"
def get_policyconfigarch(d):
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#47819): https://lists.yoctoproject.org/g/yocto/message/47819
Mute This Topic: https://lists.yoctoproject.org/mt/69259315/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-