[OE-core] [RFC][PATCH 2/2] systemd: rprovide/rreplace/rconflict nss-myhostname

Koen Kooi koen.kooi at linaro.org
Sat Aug 9 08:26:50 UTC 2014


Systems builds and packages nss-myhostname so add the appropriate lines to the recipe.

Signed-off-by: Koen Kooi <koen.kooi at 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(-)

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 \
-- 
1.9.3




More information about the Openembedded-core mailing list