Bug 289294 (deprecate_net/samba419) - net/samba419: Deprecate
Summary: net/samba419: Deprecate
Status: In Progress
Alias: deprecate_net/samba419
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Samba Team (mail alias)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-04 10:26 UTC by Mateusz Piotrowski
Modified: 2025-12-18 14:11 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer freebsd_triage 2025-09-04 10:26:10 UTC
Samba 4.19 has been discontinued upstream and won't be receiving any security updates anymore.

https://wiki.samba.org/index.php/Samba_Release_Planning
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-09-04 10:31:58 UTC
A commit in branch main references this bug:

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

commit 8925562b65c99487af4d3bc9e647e7206157980f
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-09-04 10:23:50 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-09-04 10:30:01 +0000

    net/samba419: Deprecate without expiration date

    This is meant to give notice to Samba users that 4.19 is not supported
    anymore. The default Samba in the tree is 4.16 currently, so removing
    4.19 most likely will not be a big task.

    PR:     289294

 net/samba419/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-09-04 11:01:09 UTC
(In reply to Mateusz Piotrowski from comment #0)
What newer version of Samba works correctly and without regressions?
I've been using 4.19 since it came out in ports. 4.20 have (had?) bugs and regressions. Where to migrate?
Comment 3 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-09-04 11:08:51 UTC
(In reply to Vladimir Druzenko from comment #2)

Hey Vladimir, 

that's a good question.

We as a community need to address bugs in 4.20 and help with porting of 4.22 (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287985).

I am aware that 4.16 is still used as a dependency of various ports and 4.19 is more stable than 4.20 for some users. Unfortunately, upstream has a strict release schedule and does not provide security updates for 4.16 and 4.19 anymore. Users are encouraged to help with testing of newer versions and letting the project know about regressions they experience.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-09-04 11:32:44 UTC
(In reply to Mateusz Piotrowski from comment #3)
I'm in CC of the bug#287985 since begin. :-)
All my samba servers are production - can't use for testing. :-(
Comment 5 Michael Osipov freebsd_committer freebsd_triage 2025-09-04 12:56:53 UTC
(In reply to commit-hook from comment #1)

I concur here 4.19 was quite some effort to get stable. This is the best known version on FreeBSD, even if dead upstream. We cannot deprecate it until everything has been moved off 4.16 AND 4.22 runs as smooth as 4.19.

I officially request to revert this commit.
Comment 6 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-09-04 13:10:55 UTC
(In reply to Michael Osipov from comment #5)

Hey Michael, 

let me try changing your mind regarding the commit revert. :)

I agree that we should only really remove 4.19 once 4.22 is as stable as 4.19. I also agree that we should start migrating off 4.16 first.

Commit 8925562b65c99487af4d3bc9e647e7206157980f only sets the deprecation notice as 4.19 is not receiving any security updates from upstream at this point. However, as you noted, we are not ready to remove it just yet as there is some work to be done regarding consumers of Samba and Samba 4.22. This is why my commit did not set the expiration date. 

In other words, I believe that users should be aware that Samba 4.19 is not supported anymore (hence the use of DEPRECATED) but we cannot really offer a good replacement for some workloads just yet (neither 4.20 nor 4.22 are as stable as 4.19, so there is no EXIPRATION_DATE).

I think that 8925562b65c99487af4d3bc9e647e7206157980f is not only harmless but actually beneficial. It just informs Samba users about the support status.

Do you agree?
Comment 7 Gleb Popov freebsd_committer freebsd_triage 2025-09-04 13:20:24 UTC
The deprecation change simply reflects the reality - this is what Samba upstream thinks about 4.19. It is perfectly fine to have this knob in our port.
Comment 8 Michael Osipov freebsd_committer freebsd_triage 2025-09-04 13:59:11 UTC
(In reply to Mateusz Piotrowski from comment #6)

I can follow your reasoning. Agreed.
Comment 9 Ed Maste freebsd_committer freebsd_triage 2025-11-17 21:10:20 UTC
> so removing 4.19 most likely will not be a big task.

Even though they are both EOL, would it be reasonable to move SAMBA_DEFAULT from 4.16 to 4.19 first, and later to 4.20 or higher?
Comment 10 Xavier Beaudouin freebsd_committer freebsd_triage 2025-11-18 01:31:37 UTC
(In reply to Ed Maste from comment #9)
Well moving from 4.16 to 4.19 for SAMBA_DEFAULT should be a good idea.

4.20 have some issues (see number of PR), 4.22 seems to be much better choice AFAIK.
Comment 11 Michael Osipov freebsd_committer freebsd_triage 2025-11-18 08:49:22 UTC
I'd really skip 4.20. 4.19 runs rock solid here. I need to start testing 4.22.
Comment 12 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-11-18 13:26:47 UTC
(In reply to Michael Osipov from comment #11)

The blocker here is that there are ports in the tree that depend on samba416. Porting them first to samba419 might be a good first step but TBH it might be that it's just extra work for no good reason. samba419 is not supported anymore and if there is a security issue, it won't be fixed. Ports should target samba422.
Comment 13 Michael Osipov freebsd_committer freebsd_triage 2025-11-18 17:01:40 UTC
(In reply to Mateusz Piotrowski from comment #12)

I agree, but the huge challenge is to verify that the patches from 4.19 properly apply to 4.22 if they logically apply.