Re: Strange version inconsistency in Samba t* utils (e.g. talloc)

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Sun, 02 Feb 2025 12:11:00 UTC
On Sun, 2 Feb 2025 10:17:35 +0100 (CET)
Xavier Beaudouin <kiwi@freebsd.org> wrote:

> Hi Tatsuki !
> 
> > The following two lines exist in INDEX-*.
> > 
> > tdb-1.4.9,1|/usr/ports/databases/tdb|/usr/local|Trivial
> > Database|/usr/ports/dat...
> > tdb-1.4.10,1|/usr/ports/databases/tdb1410|/usr/local|Trivial
> > Database|/usr/port...
> > 
> > I haven't checked which one takes precedence, but I guess it's bad that
> > package-name is duplicated.
> 
> I understand, but samba is really picky with their "satellite" libraries.
> When you don't use them as embedded tools then you can have strange results 
> if the version it not the one needed.
> For example, net/samba420 needs tdb >= 1.4.10, but other net/samba may not
> work with this version.
> 
> This is very unfortunate but also some other tools like sssd2 and sudo may
> need this libraries as external when compiled with samba support.
> 
> Kind regards,
> Xavier

So it would be needed to rename all those libraries to contain its
branch (major/minor version) like tevent016.so.0, tevent015.so.0,... on
ports.

Maybe new USES to handle (auto-patch/reinplace) it would be wanted, too.
(Or add the functionalities in Mk/Uses/samba.mk?)
Not sure how difficult it would be.

At least, PKGNAME should be different. For example, devel/tevent016
should have PKGNAMESUFFIX to be "016" or "-016". So as others.

-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>