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
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(+)
(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?
(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.
(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. :-(
(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.
(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?
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.
(In reply to Mateusz Piotrowski from comment #6) I can follow your reasoning. Agreed.
> 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?
(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.
I'd really skip 4.20. 4.19 runs rock solid here. I need to start testing 4.22.
(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.
(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.