Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294057 - [kde-testing] kde-base/kdelibs-4.3.3 should depend on sys-auth/nss-mdns for zeroconf support
Summary: [kde-testing] kde-base/kdelibs-4.3.3 should depend on sys-auth/nss-mdns for z...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2009-11-22 15:28 UTC by Dennis Schridde
Modified: 2009-11-22 19:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to the ebuild (kdelibs-4.3.3-r1.ebuild.patch,299 bytes, patch)
2009-11-22 15:45 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2009-11-22 15:28:11 UTC
Currently kde-base/kdelibs-4.3.3 states:
"To make zeroconf support available in KDE make sure that the 'mdnsd' daemon is running. Make sure also that multicast dns lookups are enabled by editing the 'hosts:' line in /etc/nsswitch.conf to include 'mdns', e.g.: hosts: files mdns dns"

This, according to information gathered on freenode#{gnu,glibc} cannot work.
Having "mdns" inside /etc/nsswitch.conf requires a libnss_mdns.so library, which is not provided by glibc by default. Thus kde-base/kdelibs-4.3.3 should depend on sys-auth/nss-mdns to provide this library, so that the elog-proposed change to /etc/nsswitch.conf will actually work.

Reproducible: Always
Comment 1 Dennis Schridde 2009-11-22 15:38:04 UTC
P.S: I am not sure whether the addition to /etc/nsswitch.conf is actually needed, as kio_zeroconf seemed to work fine without any nss_mdns library installed. Of course there might be other parts of KDE using methods different from those kio_zeroconf uses...
Comment 2 Dennis Schridde 2009-11-22 15:45:09 UTC
Created attachment 210899 [details, diff]
Patch to the ebuild

The attached patch introduces the dependency necessary for the proposed nsswitch.conf settings to work.
However, I confer that before applying it you should confer with the person originally introducing the comment about nsswitch.conf, or KDE zeroconf developers, for the reasons mentioned above.
Comment 3 Dennis Schridde 2009-11-22 18:07:45 UTC
Confirmation from #kde-devel/thiago: Service discovery is done via avahi directly.
Only for hostname discovery (if one uses zeroconf to create a fuzzy local dns domain) nss-mdns is needed. Thus KDE apps are in this regard not any different from any other application and require no extra dependency.

Thus the second part of the elog message in the kdelibs ebuild ("Make sure also that multicast dns lookups are enabled ...") is misleading and should be removed. (Will create a patch after supper.)
Comment 4 Dennis Schridde 2009-11-22 19:54:25 UTC
Commited to 4.3.9999, fixed for 4.3.4.