[RFC,2/2] systemd: rprovide/rreplace/rconflict nss-myhostname

Message ID 1407572810-26063-2-git-send-email-koen.kooi@linaro.org
State New
Headers show

Commit Message

Koen Kooi Aug. 9, 2014, 8:26 a.m.
Systems builds and packages nss-myhostname so add the appropriate lines to the recipe.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---

I'm not 100% sure how this works with the debian shlib renaming for nss-myhostname_0.3.bb and how to handle this in the default providers include. Hence the RFC.


 meta/recipes-core/systemd/systemd_213.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/systemd/systemd_213.bb b/meta/recipes-core/systemd/systemd_213.bb
index 4fb7ffc..8572dbd 100644
--- a/meta/recipes-core/systemd/systemd_213.bb
+++ b/meta/recipes-core/systemd/systemd_213.bb
@@ -6,7 +6,11 @@  LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
                     file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
                     file://LICENSE.MIT;md5=544799d0b492f119fa04641d1b8868ed"
 
-PROVIDES = "udev"
+MYHOSTNAME = "nss-myhostname"
+# See EXTRA_OECONF_uclibc below
+MYHOSTNAME_uclibc = ""
+
+PROVIDES = "udev ${MYHOSTNAME}"
 
 PE = "1"
 
@@ -195,6 +199,10 @@  RRECOMMENDS_${PN}-binfmt = "kernel-module-binfmt-misc"
 
 RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts"
 
+RPROVIDES_{$PN} = "${MYHOSTNAME}"
+RREPLACES_${PN} = "${MYHOSTNAME}"
+RCONFLICTS_${PN} = "${MYHOSTNAME}"
+
 CONFFILES_${PN} = "${sysconfdir}/systemd/journald.conf \
                 ${sysconfdir}/systemd/logind.conf \
                 ${sysconfdir}/systemd/system.conf \