mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +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:
parent
1270a2747c
commit
b70b263add
@ -18,6 +18,7 @@ inherit meson pkgconfig systemd distro_features_check
|
||||
|
||||
DEPENDS = "expat systemd"
|
||||
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}"
|
||||
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'audit', '', d)}"
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "systemd"
|
||||
|
||||
@ -28,3 +29,4 @@ FILES_${PN} += "${systemd_user_unitdir}"
|
||||
FILES_${PN} += "${libdir}/systemd/catalog"
|
||||
|
||||
EXTRA_OEMESON += " -Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}"
|
||||
EXTRA_OEMESON += " -Daudit=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user