[SSSD] [PATCHES] Build-system improvements

Stephen Gallagher sgallagh at redhat.com
Wed May 18 15:53:27 UTC 2011


Patch 0001: Stop building a fake interface version into the backend
plugins. This is not the correct way to create a plugin module with
libtool. Since the interface and the plugins are built at the same time,
the correct method is to produce an unversioned .so.

Patch 0002: Build the sssd utility sources as an internal libtool helper
library. This should speed the build up quite a bit, as what we had been
doing is rebuilding all of the common sources for each binary and
library. We will now build them once as a helper library that is
statically linked into those binaries that require them.

There is one caveat with this: we now have to explicitly link this
helper library to the plugins, instead of consuming them from the
sssd_be binary. This is because there is no way to export the functions
through sssd_be from a helper library (that I have been able to find).
They stopped being visible to the plugins.

I'm debating whether we should be statically linking all of this common
code at all, or whether the libsss_util.la should just become a shared
library in its own right. For the moment I've kept it as-is, but as of
this patch, it's trivial to change over to a shared library. Comments
welcome.

Please test patch 0002 very carefully. I tried most of the common
use-cases I could think of, but I'd prefer if it be tested in a few
additional environments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Build-SSSD-plugins-without-a-version-number.patch
Type: text/x-patch
Size: 1815 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110518/d62e56ce/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Build-sssd-utils-as-a-libtool-helper-library.patch
Type: text/x-patch
Size: 14486 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110518/d62e56ce/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110518/d62e56ce/attachment.sig>


More information about the sssd-devel mailing list