* [PATCH] systemd: install libnss-myhostname.so when myhostname be enabled
@ 2019-04-10 9:24 Wenlin Kang
2019-04-12 12:05 ` Peter Kjellerstedt
0 siblings, 1 reply; 2+ messages in thread
From: Wenlin Kang @ 2019-04-10 9:24 UTC (permalink / raw)
To: openembedded-core
This fixes the follow issue, the cause is that net-tools needs
libnss-myhostname.so when run "hostname -s".
root@qemuarm64:~# hostname -s
hostname: Unknown host
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
---
meta/recipes-core/systemd/systemd_241.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/systemd/systemd_241.bb b/meta/recipes-core/systemd/systemd_241.bb
index bfbfc81..251daaa 100644
--- a/meta/recipes-core/systemd/systemd_241.bb
+++ b/meta/recipes-core/systemd/systemd_241.bb
@@ -547,6 +547,7 @@ FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ $
RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-fsck"
RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}"
RDEPENDS_${PN} += "volatile-binds update-rc.d systemd-conf"
+RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'myhostname', 'libnss-myhostname', '', d)}"
RRECOMMENDS_${PN} += "systemd-extra-utils \
systemd-compat-units udev-hwdb \
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] systemd: install libnss-myhostname.so when myhostname be enabled
2019-04-10 9:24 [PATCH] systemd: install libnss-myhostname.so when myhostname be enabled Wenlin Kang
@ 2019-04-12 12:05 ` Peter Kjellerstedt
0 siblings, 0 replies; 2+ messages in thread
From: Peter Kjellerstedt @ 2019-04-12 12:05 UTC (permalink / raw)
To: Wenlin Kang, openembedded-core
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org <openembedded-
> core-bounces@lists.openembedded.org> On Behalf Of Wenlin Kang
> Sent: den 10 april 2019 11:25
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH] systemd: install libnss-myhostname.so when
> myhostname be enabled
>
> This fixes the follow issue, the cause is that net-tools needs
> libnss-myhostname.so when run "hostname -s".
>
> root@qemuarm64:~# hostname -s
> hostname: Unknown host
>
> Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
> ---
> meta/recipes-core/systemd/systemd_241.bb | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-core/systemd/systemd_241.bb b/meta/recipes-core/systemd/systemd_241.bb
> index bfbfc81..251daaa 100644
> --- a/meta/recipes-core/systemd/systemd_241.bb
> +++ b/meta/recipes-core/systemd/systemd_241.bb
> @@ -547,6 +547,7 @@ FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ $
> RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-fsck"
> RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}"
> RDEPENDS_${PN} += "volatile-binds update-rc.d systemd-conf"
> +RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'myhostname', 'libnss-myhostname', '', d)}"
Do this via the PACKAGECONFIG instead, i.e., change the existing
PACKAGECONFIG for myhostname to:
PACKAGECONFIG[myhostname] = "-Dnss-myhostname=true,-Dnss-myhostname=false,,libnss-myhostname"
> RRECOMMENDS_${PN} += "systemd-extra-utils \
> systemd-compat-units udev-hwdb \
> --
> 1.9.1
//Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-12 12:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10 9:24 [PATCH] systemd: install libnss-myhostname.so when myhostname be enabled Wenlin Kang
2019-04-12 12:05 ` Peter Kjellerstedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.