Bug 299346 - net/samba424: restore missing FreeBSD mDNS/dns_sd support (MDNSRESPONDER)
Summary: net/samba424: restore missing FreeBSD mDNS/dns_sd support (MDNSRESPONDER)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Samba Team (mail alias)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-12 21:12 UTC by Michael Osipov
Modified: 2026-10-29 17:55 UTC (History)
3 users (show)

See Also:
michaelo: maintainer-feedback? (samba)
michaelo: merge-quarterly?


Attachments
Git-formatted patch (18.18 KB, patch)
2026-10-12 21:13 UTC, Michael Osipov
kiwi: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov freebsd_committer freebsd_triage 2026-10-12 21:12:10 UTC
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.
Comment 1 Michael Osipov freebsd_committer freebsd_triage 2026-10-12 21:13:08 UTC
Created attachment 275638 [details]
Git-formatted patch
Comment 2 Xavier Beaudouin freebsd_committer freebsd_triage 2026-10-13 01:25:14 UTC
Comment on attachment 275638 [details]
Git-formatted patch

Approved :)
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-10-13 09:55:14 UTC
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(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-10-29 17:55:48 UTC
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(-)