[Pkg-samba-maint] nearly built 3.2.0~pre2-1

Steve Langasek vorlon at debian.org
Sat Mar 29 22:30:27 UTC 2008

On Fri, Mar 28, 2008 at 07:45:37AM +0100, Christian Perrier wrote:
> Quoting Christian Perrier (bubulle at debian.org):
> > This morning, I attempted to build 3.2.0~pre2 after Steve's excellent
> > work on merging trunk in our experimental branch.

> I added libtalloc-dev and tdb-dev to Build-Depends but that's
> apparently not enough.

Yes, seems that the configure options in 3.2 don't include an option to link
to a system build of talloc.  But we can kinda get around that by just
building against the internal version of libtalloc, not bothering to install
it, and picking up shlibdeps from the system version which *appears* to be
binary compatible...  (If it's not, this is something we ought to work on
fixing, post haste!)

libtdb is trickier.  The soname doesn't match between the libtdb in the
archive and the one in the samba tree (strangely, the one in the samba tree
has a lower soname?), so we can't just use the system lib.  And the
--with-static-libs=libtdb option doesn't actually work as advertised,
because there are binaries that are listed in Makefile.in as explicitly
depending on @LIBTDB_SHARED@, forcing it to pick up the shared library we
asked not to have built!

So that's a bug in the upstream build rules, but it looks like we can do an
end-run around it by passing --without-libtdb instead.  It would be nice,
though, to be able to link against out-of-tree versions of these libraries,
so we could just build-depend on the current versions which are already
well-packaged and not have to worry about them within the samba package.

That leaves libnetapi and libwbclient.  I think the correct thing to do here
for now is to statically link libnetapi, and ship libwbclient as a new
package.  Currently we don't really have a need for libnetapi outside of
Samba so it doesn't bring too much benefit to dynamically link it yet,
though we can always switch it to a shared lib once we're satisfied that the
ABI is reasonably stable; for libwbclient though, we do have a use case for
dynamic linking: to support swapping in the likewise client library.

So I've just finished committing the above changes to svn, which means the
experimental branch builds again.  Enjoy. :)

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org

More information about the Pkg-samba-maint mailing list