libselinux-python: add DEPENDS on libpcre and libsepol
PATCH 1/2 libselinux-python: add DEPENDS on libpcre and libsepol
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(-)
recipes-security/selinux/libselinux-python.inc +1 -1
@@ -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):
Signature · 1 line
2.17.1
PATCH 2/2 setools: add DEPENDS on libselinux
We encountered a setools compile error when bitbake world without selinux DISTRO_FEATURES:
setools/policyrep.c:666:10: fatal error: selinux/selinux.h: No such file or directory
666 | #include <selinux/selinux.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Add missing DEPENDS on libselinux.
Signed-off-by Yi Zhao <[email protected]>
--- recipes-security/setools/setools_4.2.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/setools/setools_4.2.2.bb +1 -1
@@ -19,7 +19,7 @@ LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=83a5eb6974c11f30785e90d0eeccf40c \ file://${S}/COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://${S}/COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c" -DEPENDS += "bison-native flex-native swig-native python3 python3-cython-native libsepol" +DEPENDS += "bison-native flex-native swig-native python3 python3-cython-native libsepol libselinux" RDEPENDS_${PN} += "python3-networkx python3-decorator python3-setuptools \ python3-logging python3-json libselinux-python"
Signature · 1 line
2.17.1