Extract mdns-libnss-mdns from the main package so we can mark it as an RPROVIDE for libnss-mdns (matching avahi-libnss-mdns) and then RRECOMMEND this when building with glibc.
Signed-off-by: Alex Kiernan <alex.kier...@gmail.com> --- .../recipes-protocols/mdns/mdns_2559.60.39.0.1.bb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb b/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb index b860c34e881e..97d3597cffc0 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb @@ -112,7 +112,7 @@ do_install () { install mdnsd.sh ${D}${INIT_D_DIR}/mdns } -pkg_postinst:${PN} () { +pkg_postinst:${PN}-libnss-mdns () { if [ -r $D${sysconfdir}/nsswitch.conf ]; then sed -e '/^hosts:/s/\s*\<mdns\>//' \ -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns\3\4\5/' \ @@ -120,7 +120,7 @@ pkg_postinst:${PN} () { fi } -pkg_prerm:${PN} () { +pkg_prerm:${PN}-libnss-mdns () { if [ -r $D${sysconfdir}/nsswitch.conf ]; then sed -e '/^hosts:/s/\s*\<mdns\>//' \ -e '/^hosts:/s/\s*mdns//' \ @@ -131,7 +131,12 @@ pkg_prerm:${PN} () { SYSTEMD_SERVICE:${PN} = "mdns.service" INITSCRIPT_NAME = "mdns" +PACKAGE_BEFORE_PN = "${PN}-libnss-mdns" + +RRECOMMENDS:${PN}:append:libc-glibc = " ${PN}-libnss-mdns" + FILES_SOLIBSDEV = "${libdir}/libdns_sd.so" -FILES:${PN} += "${libdir}/libnss_mdns-0.2.so" +FILES:${PN}-libnss-mdns = "${sysconfdir}/nss_mdns.conf ${libdir}/libnss_mdns*.so*" +RPROVIDES:${PN}-libnss-mdns = "libnss-mdns" RPROVIDES:${PN} += "libdns-sd" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#115215): https://lists.openembedded.org/g/openembedded-devel/message/115215 Mute This Topic: https://lists.openembedded.org/mt/110937782/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-