symbol versioning also on debian? (was Re: libwbclient - wbcLogoffUser() & wbcLookupDomainController)

Stefan (metze) Metzmacher metze at samba.org
Tue May 6 15:10:16 GMT 2008


Hi,

> We (Volker, Metze, Günther, Michael and me) talked about these two functions
> again. Maybe we should try to get them into 3.2.0 to avoid bumping the
> library version number in 3.2.1.

I thought about all this a bit more and noticed that we would also need
to implement a wbcChangePassword() in order to later support pam_winbind
and ntlm_auth.

And as my last mail explained we also need wbcLogonUser() and have it
complete so that pam_winbind can use it later.

We should aim to get as much done before 3.2.0.rc1, but it could be that
we find some other missing features, which require
an update of the library version.

Maybe we should think about using symbol versioning,
see http://people.redhat.com/~drepper/symbol-versioning.

That would mean we can extent the API without breaking old applications.

And at least rpm based systems would be able to handle this easily, e.g.

metze at SERNOX:~> rpm -q --provides libattr
libattr.so.1
libattr.so.1(ATTR_1.0)
libattr.so.1(ATTR_1.1)
libattr.so.1(ATTR_1.2)
libattr.so.1(libattr.so.1)
libattr = 2.4.28-38

metze at SERNOX:~> rpm -q --requires attr
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
libattr.so.1
libattr.so.1(ATTR_1.0)
libattr.so.1(ATTR_1.2)
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.3)
libc.so.6(GLIBC_2.3.4)
rpmlib(PayloadIsBzip2) <= 3.0.5-1

Does anyone knows if debian also supports dependencies based
on the different symbol versions within a shared library.

The patch is really trivial, but we need to make sure it doesn't
break the build on some systems:

diff --git a/source/exports/libwbclient.syms
b/source/exports/libwbclient.syms
index f1e68b4..8c12c1a 100644
--- a/source/exports/libwbclient.syms
+++ b/source/exports/libwbclient.syms
@@ -1,4 +1,4 @@
-{
+WBC_0.1 {
        global: wbc*;
        local: *;
 };

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20080506/c9efc7a3/signature.bin


More information about the samba-technical mailing list