diff options
| author | Luca Boccassi <luca.boccassi@microsoft.com> | 2019-10-28 14:58:22 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-10-28 15:26:42 -0700 |
| commit | 9ac1df048a8af359f55fb5c57b6e031353996617 (patch) | |
| tree | 01fd1ad6183a7752a5f1c6e89d440381dec90b2c | |
| parent | c12bca1e7aefbb5d16ecf32de1c519becd5cf877 (diff) | |
| download | meta-openembedded-9ac1df048a8af359f55fb5c57b6e031353996617.tar.gz | |
dbus-broker: build with SELinux if it's enabled via DISTRO_FEATURES
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-core/dbus/dbus-broker_21.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/dbus/dbus-broker_21.bb b/meta-oe/recipes-core/dbus/dbus-broker_21.bb index b1633e16bd..c509ff6f29 100644 --- a/meta-oe/recipes-core/dbus/dbus-broker_21.bb +++ b/meta-oe/recipes-core/dbus/dbus-broker_21.bb | |||
| @@ -16,6 +16,7 @@ SRC_URI[sha256sum] = "6fff9a831a514659e2c7d704e76867ce31ebcf43e8d7a62e080c6656f6 | |||
| 16 | inherit meson pkgconfig systemd distro_features_check | 16 | inherit meson pkgconfig systemd distro_features_check |
| 17 | 17 | ||
| 18 | DEPENDS = "expat systemd" | 18 | DEPENDS = "expat systemd" |
| 19 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | ||
| 19 | 20 | ||
| 20 | REQUIRED_DISTRO_FEATURES = "systemd" | 21 | REQUIRED_DISTRO_FEATURES = "systemd" |
| 21 | 22 | ||
| @@ -24,3 +25,5 @@ SYSTEMD_SERVICE_${PN} = "${BPN}.service" | |||
| 24 | FILES_${PN} += "${systemd_system_unitdir}" | 25 | FILES_${PN} += "${systemd_system_unitdir}" |
| 25 | FILES_${PN} += "${systemd_user_unitdir}" | 26 | FILES_${PN} += "${systemd_user_unitdir}" |
| 26 | FILES_${PN} += "${libdir}/systemd/catalog" | 27 | FILES_${PN} += "${libdir}/systemd/catalog" |
| 28 | |||
| 29 | EXTRA_OEMESON += " -Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" | ||
