From: Jörg Sommer <[email protected]> Remove in all systemd socket files all Listen on IPv6 addresses, if IPv6 is not available. Otherwise systemd warns about "Binding to IPv6 address not available since kernel does not support IPv6."
Signed-off-by: Jörg Sommer <[email protected]> --- meta/recipes-extended/rpcbind/rpcbind_1.2.8.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-extended/rpcbind/rpcbind_1.2.8.bb b/meta/recipes-extended/rpcbind/rpcbind_1.2.8.bb index bcdadf4f10..bd8ba1e88a 100644 --- a/meta/recipes-extended/rpcbind/rpcbind_1.2.8.bb +++ b/meta/recipes-extended/rpcbind/rpcbind_1.2.8.bb @@ -54,6 +54,11 @@ do_install:append () { install -d ${D}${systemd_system_unitdir}/rpcbind.service.d install -m 0644 ${UNPACKDIR}/rpcbind.systemd ${D}${systemd_system_unitdir}/rpcbind.service.d/rpcbind.conf + + if ! ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'true', 'false', d)} + then + sed -i '/^Listen.*=\[.*\]/s/^/# /' ${D}${systemd_system_unitdir}/*.socket + fi } FILES:${PN} += "${systemd_system_unitdir}/rpcbind.service.d/rpcbind.conf" -- 2.53.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#234136): https://lists.openembedded.org/g/openembedded-core/message/234136 Mute This Topic: https://lists.openembedded.org/mt/118556626/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
