Bug 280064 - net/netatalk3: meson does not find dns_sd (mDNS) and disables zeroconf support
Summary: net/netatalk3: meson does not find dns_sd (mDNS) and disables zeroconf support
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-01 00:35 UTC by John Marshall
Modified: 2024-07-01 21:01 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (marcus)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Marshall 2024-07-01 00:35:12 UTC

    
Comment 1 John Marshall 2024-07-01 00:50:43 UTC
Environment: FreeBSD 14-STABLE amd64

3.2.0 and 3.2.1 both fail to enable the selected mDNSResponder option. Reverting to 3.1.18 results in working zeroconf (_afpovertcp service is advertised via mDNS). Without this advertisement, macOS clients cannot find their backup server. The difference appears to be the meson build.

'make -v PORT_OPTIONS' confirms that MDNSRESPONDER is set.

'make configure' and reviewing the meson output shows the following:

----
 Run-time dependency avahi-client found: NO (tried pkgconfig and cmake)
 Library dns_sd found: NO
 Library system found: NO
 meson.build:782: WARNING: Zeroconf (Bonjour) support requested but required libraries not found Please install Avahi or mDNS
----

The mDNSResponder dns_sd library and header files are both in the standard locations under ${LOCALBASE}.

Without attempting to learn meson from scratch, this is as far as I could go.

Thank you for maintaining this port!
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-07-01 12:11:38 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e2d62a8b47d0aa5478b62c8b862401882319963a

commit e2d62a8b47d0aa5478b62c8b862401882319963a
Author:     Joe Marcus Clarke <marcus@FreeBSD.org>
AuthorDate: 2024-07-01 12:09:04 +0000
Commit:     Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2024-07-01 12:09:04 +0000

    net/netatalk3: Fix some packaging issues

    * Use library search dirs to find mDNSResponder [1]
    * Properly disable LDAP when not requested [2]

    PR:             280064 [1]
                    280067 [2]

 net/netatalk3/Makefile                |  2 ++
 net/netatalk3/files/patch-meson.build | 40 +++++++++++++++++++++++++++++------
 net/netatalk3/pkg-plist               |  2 +-
 3 files changed, 37 insertions(+), 7 deletions(-)
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2024-07-01 12:12:07 UTC
Fixed in 3.2.1_1.
Comment 4 John Marshall 2024-07-01 21:01:36 UTC
(In reply to Joe Marcus Clarke from comment #3)
3.2.1_1 'works for me' :-)

Builds and runs fine for my purposes. Service is advertised properly via mDNS.

Thanks Joe!