mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 02:31:27 +00:00
dbus-broker: build with libaudit if selinux is enabled
There is no DISTRO_FEATURE for audit, so most packages enable it if selinux is enabled. Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@ inherit meson pkgconfig systemd distro_features_check
|
|||||||
|
|
||||||
DEPENDS = "expat systemd"
|
DEPENDS = "expat systemd"
|
||||||
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}"
|
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}"
|
||||||
|
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'audit', '', d)}"
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "systemd"
|
REQUIRED_DISTRO_FEATURES = "systemd"
|
||||||
|
|
||||||
@@ -28,3 +29,4 @@ FILES_${PN} += "${systemd_user_unitdir}"
|
|||||||
FILES_${PN} += "${libdir}/systemd/catalog"
|
FILES_${PN} += "${libdir}/systemd/catalog"
|
||||||
|
|
||||||
EXTRA_OEMESON += " -Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}"
|
EXTRA_OEMESON += " -Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}"
|
||||||
|
EXTRA_OEMESON += " -Daudit=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}"
|
||||||
|
|||||||
Reference in New Issue
Block a user