Building Samba with bundled dependencies for ldb, talloc, tdb, etc. is nice and easy, but leads to many conflicts in the ports tree. For example, Samba installs its internal version of talloc in the same place as the devel/talloc port, which makes it impossible to install programs like Freeradius3. I propose that we transition to building Samba without bundled dependencies by default.
Feel free to patch it.
(In reply to Mikael Urankar from comment #1) Thanks! I will once I get the dependencies committed.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a852ac5ac035572f7639fe3c2b76bb8078003c8e commit a852ac5ac035572f7639fe3c2b76bb8078003c8e Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-08-11 18:20:28 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-08-11 18:24:57 +0000 net/samba419: Allow setting *_BUNDLED_* via make.conf PR: 280557 Approved by: portmgr blanket net/samba419/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e75af545d1d1c258ce8135c422d62f35235ee0fc commit e75af545d1d1c258ce8135c422d62f35235ee0fc Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-08-16 19:34:41 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-08-16 19:44:10 +0000 net/samba419: Use external dependencies by default The Samba package can be built with the following dependencies bundled in: cmocka, talloc, tevent, tdb, and ldb. This is a handy way of getting the right versions of all those dependencies. Unfortunately, the bundled dependencies conflict with their packaged counterparts, which leads to the build and installation issues with packages like security/sssd2 and net/freeradius3. Building Samba without the bundled dependencies resolves those issues, so let's do that. PR: 280557 Approved by: samba (mikael, 0mp) Sponsored by: Klara, Inc. net/samba419/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
Samba 4.19 is now built without the bundled dependencies by default. It should resolve a lot of issues caused by package conflicts.