[OE-core] [PATCH] libnss-mdns: Fix search path for avahi socket file

betacentauri at arcor.de betacentauri at arcor.de
Thu Jul 19 16:25:37 UTC 2018


There are several ways to fix it.

1. Patching Makefiles (see patch in the ticket: https://bugzilla.yoctoproject.org/show_bug.cgi?id=12843)

2. Add localstatedir = "/"

3. Adding --localstatedir=${root_prefix} to EXTRA_OECONF

4. Don't fix it as /var/run should be a link to /run.


So what is the preferred solution?


> Khem Raj <raj.khem at gmail.com mailto:raj.khem at gmail.com > hat am 5. Juli 2018 um 19:48 geschrieben:
> 
> 
>     On 7/5/18 10:26 AM, Betacentauri wrote:
> 
>         > > Since v0.7 avahi uses /run/avahi-daemon/socket.
> >         libnss searches in $(localstatedir)/run/avahi-daemon/.
> >         Set localstatedir to / to fix mdns resolving.
> >         ---
> >         meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | 2 ++
> >         1 file changed, 2 insertions(+)
> > 
> >         diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
> >         index 5be5e4f..d0eb276 100644
> >         --- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
> >         +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
> >         @@ -17,6 +17,8 @@ SRC_URI[sha256sum] = "1e683c2e7c3921814706d62fbbd3e9cbf493a75fa00255e0e715508d81
> > 
> >         S = "${WORKDIR}/nss-mdns-${PV}"
> > 
> >         +localstatedir = "/"
> >         +
> > 
> >     >     Adding --localstatedir=${root_prefix} to EXTRA_OECONF perhaps is better
>     for description.
> 
>         > > inherit autotools
> > 
> >         EXTRA_OECONF = "--libdir=${base_libdir} --disable-lynx --enable-avahi"
> > 
> >     > 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180719/7efd9d2d/attachment-0002.html>


More information about the Openembedded-core mailing list