diff options
author | Wenlin Kang <wenlin.kang@windriver.com> | 2019-04-10 17:24:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-12 09:29:06 +0100 |
commit | bb8a55fb0f9f4fbf6403692b0ee1b74af0608dd8 (patch) | |
tree | 7b364ae617fb436ffafacc0c2eb45df4207d31e4 /meta/recipes-core | |
parent | 305f569cf2067b52c8fb786248263ccee6cd919d (diff) | |
download | poky-bb8a55fb0f9f4fbf6403692b0ee1b74af0608dd8.tar.gz |
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
(From OE-Core rev: 5bad5eb5f41053e4963fb26972f56dbf67349378)
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/systemd/systemd_241.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_241.bb b/meta/recipes-core/systemd/systemd_241.bb index e61e07e959..3a58f44a3b 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/ $ | |||
547 | RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-fsck" | 547 | RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-fsck" |
548 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}" | 548 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}" |
549 | RDEPENDS_${PN} += "volatile-binds update-rc.d systemd-conf" | 549 | RDEPENDS_${PN} += "volatile-binds update-rc.d systemd-conf" |
550 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'myhostname', 'libnss-myhostname', '', d)}" | ||
550 | 551 | ||
551 | RRECOMMENDS_${PN} += "systemd-extra-utils \ | 552 | RRECOMMENDS_${PN} += "systemd-extra-utils \ |
552 | systemd-compat-units udev-hwdb \ | 553 | systemd-compat-units udev-hwdb \ |