Bug 12843

Summary: mdns resolution don't work properly
Product: [Build System, Metadata & Runtime] OE-Core Reporter: betacentauri
Component: connectivityAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, openatv
Version: 2.5.1   
Target Milestone: 2.6 M3   
Hardware: Other   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Patch file for libnss-mdns_0.10 none

Description betacentauri 2018-07-03 17:24:26 UTC
Created attachment 4341 [details]
Patch file for libnss-mdns_0.10

Pinging own .local address don't work:

root@e4hd:~# ping e4hd.local
ping: bad address 'e4hd.local'

Problem is that avahi creates in version 0.7 the socket in /run/avahi-daemon
https://github.com/lathiat/avahi/blob/master/configure.ac#L987

libnss-mdns searches the socket in the old path: /var/run/avahi-daemon/
src/Makefile.am and src/Makefile.in
       -DAVAHI_SOCKET=\"$(localstatedir)/run/avahi-daemon/socket\"

Attached patch patches libnss-mdns sources to new directory.
Comment 1 Ross Burton 2018-07-05 14:58:46 UTC
For master and sumo.
Comment 2 Ross Burton 2018-07-05 15:08:00 UTC
Probably easier to just set localstatdir="/"?

Patches are submitted via the mailing list, if you could prepare a patch to the recipe and submit it to openembedded-core@lists.openembedded.org (via git-send-email, please) then we can review and merge it.
Comment 3 betacentauri 2018-07-05 17:15:57 UTC
Yes, localstatedir="/" is easier.
I have send the patch to the mailing list.
Comment 4 Ross Burton 2018-09-26 10:49:24 UTC
Merged in oe-core 4feb586ba9fa0255d8f83bc1bec11f697dc26a33.