[Pkg-samba-maint] libldb depends expression
Mathieu Parent
math.parent at gmail.com
Sat Apr 2 07:27:21 BST 2022
On Sat, Apr 2, 2022 at 12:21 AM Michael Tokarev <mjt at tls.msk.ru> wrote:
>
> Hi.
Hi,
> Since before libldb binary package "merge" into samba source,
> there was LDB_DEPENDS make variable that listed >=current <<next
> versions of ldb, to set constraints for ldb: it should not be
> less than the version currently in samba, and it should not be
> larger than the next version (with some exceptions listed in
> debian/library-equivalents). It's been said libldb is very
> tightly tied with samba. Ok.
>
> But why this LDB_DEPEDS variable (with this >=..<< expression)
> is used only for samba-dsdb-modules?
I think dsdb modules are those tightly integrated with ldb (i.e. ldb plugins).
> Should we perhaps now use the exact =${binary:Version} expression
> like it is done for every internal library? It probably makes
> sense when building ldb from samba source anyway, but I'd love
> to understand a bit more what's going on here.
I think ldb packages should use ldb version, and not samba version.
This lib has it's own versioning which is used by sssd and others.
See https://salsa.debian.org/samba-team/samba/-/merge_requests/56/diffs?commit_id=8238d63481a1e943cc3f6ae5bd9fff1c284d84a3#8756c63497c8dc39f7773438edf53b220c773f67_318_322
for how to pass args to dh_gencontrol.
> I see other parts of samba has regular shlib:Depends on libldb,
> with min version being quite old (like 0.9.1 for samba for
> example).
>
> I don't really understand the importance of libldb for
> dsdb-modules *only*.
>
> And to be fair, I don't even know what these modules are, and
> how the said modules in dsdb-modules are related with the ones
> in libldb2? Can libldb2 load modules from dsdb-modules? How
> about the other way around? They're both in the same subdir.
Andrew has all those answers, he is probably the top commiter of ldb
and AD LDAP ;-).
Regards
--
Mathieu
More information about the Pkg-samba-maint
mailing list