Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492716 - =net-fs/netatalk-3.1.0 with net-dns/avahi[mdnsresponder-compat] - *** WARNING *** Please fix your application to use the native API of Avahi!
Summary: =net-fs/netatalk-3.1.0 with net-dns/avahi[mdnsresponder-compat] - *** WARNING...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL: http://sourceforge.net/p/netatalk/mai...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-27 19:03 UTC by masc
Modified: 2015-10-17 18:59 UTC (History)
2 users (show)

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


Attachments
Flip the zeroconf support check to favor Avahi over mDNSResponder (0001-zeroconf-prefer-native-Avahi-support-over-mDNSRespon.patch,3.67 KB, application/mbox)
2015-10-09 05:51 UTC, Doug Goldstein (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description masc 2013-11-27 19:03:23 UTC
for reference: https://bugs.sabayon.org/show_bug.cgi?id=4495

netatalk will fallback and link to dns_sd instead of avahi when mdnsresponder-compat useflag is set for avahi.

this will make afpd panic repeatedly when netatalk service is started.
also compilation with debug useflag fails entirely in this case.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-12-01 19:00:06 UTC
+  01 Dec 2013; Justin Lecher <jlec@gentoo.org> netatalk-3.0.5-r1.ebuild,
+  netatalk-3.1.0-r1.ebuild:
+  Avoid linking against dns_sd, #492716
+
Comment 2 masc 2013-12-16 20:15:45 UTC
issue persists with 3.1.0-r1
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-12-16 20:21:10 UTC
(In reply to masc from comment #2)
> issue persists with 3.1.0-r1

Which USE do you have for avahi?
Comment 4 masc 2013-12-16 20:24:43 UTC
(In reply to Justin Lecher from comment #3)
> Which USE do you have for avahi?

autoipd dbus gdbm gtk3 howl-compat introspection ipv6 mdnsresponder-compat python
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2013-12-16 20:26:35 UTC
the ebuild has

avahi? ( net-dns/avahi[dbus,-mdnsresponder-compat] )

So it should be blocked. Please attach a build.log.
Comment 6 masc 2013-12-16 20:38:53 UTC
issue occurs on a sabayon box. just checked, and it does indeed block on my gentoo system. is there an upstream bug for this or is it generally not possible to have avahi support with mdnscompat enabled?
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2013-12-16 20:51:41 UTC
(In reply to masc from comment #6)
> issue occurs on a sabayon box. just checked, and it does indeed block on my
> gentoo system. is there an upstream bug for this or is it generally not
> possible to have avahi support with mdnscompat enabled?

Fabio, could you please check for sabayon?
Comment 8 Fabio Erculiani (RETIRED) gentoo-dev 2013-12-17 09:47:35 UTC
We have USE=mdnsresponder-compat for net-dns/avahi and I'm not sure whether it's safe to disable it yet. To me, the bug is in netatalk, if it doesn't work with libdns_sd, it should not link against it to begin with.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2013-12-20 11:00:38 UTC
Could you please report this bug to netatalk upstream? I searched for a solution, but didn't found any.
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2013-12-20 11:02:31 UTC
Any please attach the config file you are using.
Comment 11 Renaud Chaput 2014-12-14 11:14:43 UTC
I just recompiled avahi with mdnsresponder-compat and patched netatalk-3.1.6 to allow this useflag.
netatalk works fine and does not crash on startup, but uses the old dns_sd library :

Dec 14 12:01:01 krasus netatalk[22576]: *** WARNING *** The program 'netatalk' uses the Apple Bonjour compatibility layer of Avahi.
Dec 14 12:01:01 krasus netatalk[22576]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 14 12:01:01 krasus netatalk[22576]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=netatalk>

I reported this upstream : https://sourceforge.net/p/netatalk/bugs/586/
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2015-10-09 04:13:03 UTC
So the resolution here is that netatalk should prefer the native avahi API instead of libdns_sd.

The issue I have here is that packages that implement AirTunes/AirPlay support must use libdns_sd and the fact that the USE flag is explicitly blocked means that there's no way to have those applications installed at the same time as netatalk.
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2015-10-09 05:51:32 UTC
Created attachment 414178 [details]
Flip the zeroconf support check to favor Avahi over mDNSResponder

This change should do the check to make netatalk favor Avahi over mDNSResponder when both are available.
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2015-10-09 05:53:28 UTC
(In reply to Doug Goldstein from comment #12)
> So the resolution here is that netatalk should prefer the native avahi API
> instead of libdns_sd.
> 
> The issue I have here is that packages that implement AirTunes/AirPlay
> support must use libdns_sd and the fact that the USE flag is explicitly
> blocked means that there's no way to have those applications installed at
> the same time as netatalk.

Looking more at zeroconf, my statement that AirTunes/AirPlay support needs libdns_sd is wrong. It just happens to be the two I stumbled on didn't support Avahi and need the mDNSResponder compat bits.
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2015-10-09 14:32:50 UTC
I've submitted the patch upstream and hopefully its included for 3.1.8.
Comment 16 Justin Lecher (RETIRED) gentoo-dev 2015-10-10 15:12:23 UTC
(In reply to Doug Goldstein from comment #15)
> I've submitted the patch upstream and hopefully its included for 3.1.8.

Thanks for looking into the fix.
Feel free to patch our ebuilds in the tree.
Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2015-10-17 18:59:29 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba99061687d61c49edd80ee1c4ec725d55fae7e9