[Pkg-samba-maint] python3-ldb symbols file

Michael Tokarev mjt at tls.msk.ru
Tue Apr 5 15:58:46 BST 2022


05.04.2022 17:06, Michael Tokarev wrote:
> In the process of mergig ldb building into samba
> I missed one thing: the python3-ldb.symbols[.in]
> file.
> 
> Is it really needed?

It is an interesting thing really.  python3-ldb-dev:

usr/include/python3.9/pyldb.h
usr/lib/i386-linux-gnu/pkgconfig/pyldb-util.cpython-39-i386-linux-gnu.pc
usr/lib/i386-linux-gnu/libpyldb-util.cpython-39-i386-linux-gnu.so -> libpyldb-util.cpython-39-i386-linux-gnu.so.2.5.0

so you can't use just -lfoo to link this this lib, you
have to figure out the python suffix first and use
-lfoo$cpython-suffix. Ditto for pkg-config.

I guess samba has code for that :)

And this library *is* being used in samba, in particular
by python3-samba.

Fun stuff... :)

Still, it looks like this package might not be
really needed outside of samba.  I dunno.

Right now while there are no other users of this
thing (only samba build-depends on this package),
we're fine with not providing a symbols file, as
currently samba links to ldb which comes with its
own source so the Depends:=ldb_version is okay.
So it is not urgent to fix this before new samba
goes to unstable. Which is good :)

/mjt



More information about the Pkg-samba-maint mailing list