reducing the dependecies to ctdb headers

Stefan (metze) Metzmacher metze at samba.org
Tue Oct 8 08:14:30 MDT 2013


Hi,

I've created some patches which reduce the usage of
ctdb headers and the related defines to the ctdb related .c files.

All files related to a specific ctdb version are bundled into
a libsamba3-ctdb-client.so, which is replaceable at runtime.

Packagers could do something like.

./configure --with-ctdb-dir=$(pwd)/ctdb-1.0.114.5 --enable-old-ctdb
make -j
make -j install
mv libsamba3-ctdb-client.so libsamba3-ctdb-client.so-1.0.114
./configure --with-ctdb-dir=$(pwd)/ctdb-2.0 --enable-old-ctdb
make -j
make -j install
mv libsamba3-ctdb-client.so libsamba3-ctdb-client.so-2.0

This will only rebuild the .c files from samba3-ctdb-client
and allows alternative packages for libsamba3-ctdb-client.so
depending on the installed ctdb version.

I haven't done any runtime tests, so please don't push it yet.

metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.diff
Type: text/x-diff
Size: 25952 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131008/9a41739c/attachment-0001.diff>


More information about the samba-technical mailing list