[Pkg-samba-maint] debian-only patches break upgrading our python3 bindings (was: Re: Bug#814928: build python3 bindings)

Andrew Bartlett abartlet at samba.org
Sun Apr 3 12:51:00 UTC 2016

On Tue, 2016-02-16 at 18:10 +0100, Matthias Klose wrote:
> Package: src:talloc
> Version: 2.1.5-1
> Tags: patch
> This is a first shot of building python3 bindings for talloc (to be
> followed up 
> by ldb and tdb bindings).  The packaging certainly can be improved,
> making it 
> more robust for version changes. however there is one change which
> should be 
> applied upstream: The library *name* for the helper library includes
> the whole 
> SOABI name for a python extension, including the multiarch name in
> Python 3.5. 
> This leads to different sonames on different architectures. Maybe
> this should be 
> fixed so that distros rely on a common name for python3 builds.

How important is this? 

I ask because it is causing chaos now that we have added new functions
to the pytalloc-util library.  If we had built with developer mode, we
would have noticed it totally breaking the ABI checking, but as it is,
we only noticed when upstream (me) added new functions.  (That
triggered the symbols checker in our packaging process.)

It causes an empty (essentially) vscript to be written, meaning all
symbols are regarded as new each release, because other parts of the
code expected the previous name.


For the changes symbols, see https://git.samba.org/abartlet/talloc-debi

I would prefer to drop this from the package until an acceptable
solution is found upstream.  I've tried changing the SAMBA_LIBRARY code
to match, but I still get .py3 and -py3 mixups.  As Fedora is happy to
keep the cpython* part of the .so name, I propose we do the same.  It
is Red Hat staff who have been leading the python3 work, I would rather
follow them if possible:


It should be safe to revert this in unstable, nobody seems to be using
this yet.


Andrew Bartlett

Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

More information about the Pkg-samba-maint mailing list