Three FreeBSD-local patches providing dns_sd/mDNSResponder support (present identically in net/samba419, 420, 422, and 423) were silently dropped when net/samba424 was created, all gated behind the non-default MDNSRESPONDER port option (default is AVAHI): - source3/wscript/wscript_build: the --enable-dnssd waf option (dns_sd.h/DNSServiceRegister detection, WITH_DNSSD_SUPPORT define, dns_sd library linkage into smbd_base and smbclient) never existed in samba424 at all. - source3/smbd/dnsregister.c: the FreeNAS-authored mDNS advertise-per-interface fixes. Only the companion source3/client/dnsbrowse.c half of this combined patch survived into samba424; the dnsregister.c half was lost. - Makefile: MDNSRESPONDER_CONFIGURE_ENABLE=dnssd, so selecting the MDNSRESPONDER option actually passes --enable-dnssd to waf. Without all three, selecting MDNSRESPONDER builds without functional dns_sd/mDNS support. Verified by diffing the patch sets of samba419/420/422/423 against samba424, and confirmed the restored patches apply cleanly (offset-only, no fuzz) against the real samba-4.24.7 upstream source.
Created attachment 275638 [details] Git-formatted patch
Comment on attachment 275638 [details] Git-formatted patch Approved :)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1366f85da8f402ec083d7b95d7b761ea35698292 commit 1366f85da8f402ec083d7b95d7b761ea35698292 Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2026-10-12 21:10:04 +0000 Commit: Michael Osipov <michaelo@FreeBSD.org> CommitDate: 2026-10-13 09:54:49 +0000 net/samba424: restore missing FreeBSD mDNS/dns_sd support (MDNSRESPONDER) Three FreeBSD-local patches providing dns_sd/mDNSResponder support (present identically in net/samba419, 420, 422, and 423) were silently dropped when net/samba424 was created, all gated behind the non-default MDNSRESPONDER port option (default is AVAHI): - source3/wscript/wscript_build: the --enable-dnssd waf option (dns_sd.h/DNSServiceRegister detection, WITH_DNSSD_SUPPORT define, dns_sd library linkage into smbd_base and smbclient) never existed in samba424 at all. - source3/smbd/dnsregister.c: the FreeNAS-authored mDNS advertise-per-interface fixes. Only the companion source3/client/dnsbrowse.c half of this combined patch survived into samba424; the dnsregister.c half was lost. - Makefile: MDNSRESPONDER_CONFIGURE_ENABLE=dnssd, so selecting the MDNSRESPONDER option actually passes --enable-dnssd to waf. Without all three, selecting MDNSRESPONDER builds without functional dns_sd/mDNS support. Verified by diffing the patch sets of samba419/420/422/423 against samba424, and confirmed the restored patches apply cleanly (offset-only, no fuzz) against the real samba-4.24.7 upstream source. PR: 299196 (comment 11 on net/samba425 reported the same gap) PR: 299346 Approved by: kiwi (samba team) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> net/samba424/Makefile | 3 +- .../files/patch-source3_smbd_dnsregister.c (new) | 452 +++++++++++++++++++++ net/samba424/files/patch-source3_wscript | 28 +- .../files/patch-source3_wscript__build (new) | 18 + 4 files changed, 499 insertions(+), 2 deletions(-)
A commit in branch 2026Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e4ac8c6afa91ca67752afa7cb626c36a16a77701 commit e4ac8c6afa91ca67752afa7cb626c36a16a77701 Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2026-10-12 21:10:04 +0000 Commit: Bryan Drewery <bdrewery@FreeBSD.org> CommitDate: 2026-10-29 17:50:32 +0000 net/samba424: restore missing FreeBSD mDNS/dns_sd support (MDNSRESPONDER) Three FreeBSD-local patches providing dns_sd/mDNSResponder support (present identically in net/samba419, 420, 422, and 423) were silently dropped when net/samba424 was created, all gated behind the non-default MDNSRESPONDER port option (default is AVAHI): - source3/wscript/wscript_build: the --enable-dnssd waf option (dns_sd.h/DNSServiceRegister detection, WITH_DNSSD_SUPPORT define, dns_sd library linkage into smbd_base and smbclient) never existed in samba424 at all. - source3/smbd/dnsregister.c: the FreeNAS-authored mDNS advertise-per-interface fixes. Only the companion source3/client/dnsbrowse.c half of this combined patch survived into samba424; the dnsregister.c half was lost. - Makefile: MDNSRESPONDER_CONFIGURE_ENABLE=dnssd, so selecting the MDNSRESPONDER option actually passes --enable-dnssd to waf. Without all three, selecting MDNSRESPONDER builds without functional dns_sd/mDNS support. Verified by diffing the patch sets of samba419/420/422/423 against samba424, and confirmed the restored patches apply cleanly (offset-only, no fuzz) against the real samba-4.24.7 upstream source. PR: 299196 (comment 11 on net/samba425 reported the same gap) PR: 299346 Approved by: kiwi (samba team) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> (cherry picked from commit 1366f85da8f402ec083d7b95d7b761ea35698292) Conflicts: net/samba424/Makefile (skipped LMBD option addition) net/samba424/Makefile | 3 +- .../files/patch-source3_smbd_dnsregister.c (new) | 452 +++++++++++++++++++++ net/samba424/files/patch-source3_wscript | 28 +- .../files/patch-source3_wscript__build (new) | 18 + 4 files changed, 499 insertions(+), 2 deletions(-)