mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
glib-2.0: fix configure error for meson build
In glib 2.60.x, it turns selinux into a meson feature. We should use '-Dselinux=enabled/disabled' rather than '-Dselinux=true/false' to enable/disable the feature. Add meso-enable-selinux.bbclass for this change and inherit it in glib-2.0 bbappend to fix the configure error. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
8b7a9638c5
commit
bb0c9c3abc
4
classes/meson-enable-selinux.bbclass
Normal file
4
classes/meson-enable-selinux.bbclass
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
inherit selinux
|
||||
|
||||
PACKAGECONFIG_append = " ${@target_selinux(d)}"
|
||||
PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux,"
|
||||
|
|
@ -1 +1 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'meson-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'meson-enable-selinux', '', d)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user