summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-20 14:05:50 +0200
committerMichael Adam <obnox@samba.org>2012-06-21 23:49:19 +0200
commit18ce23b31d8232bc2be871982bb92e296f96ba7f (patch)
treee27a28739009623fcc0365ce86bde9026a36428b /script
parentf9b722d50e589c9f2a47f3892987902fda7bab4c (diff)
downloadsamba-18ce23b31d8232bc2be871982bb92e296f96ba7f.tar.gz
autobuild: add a target "samba-ctdb" that builds samba (waf) with cluster support
This is achieved by using the ctdb header files copied in from current ctdb master. Tests are not run. For this we would need to have a full ctdb built and configured.
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index 1d0cac60eb4..ac17d14c53b 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -18,6 +18,7 @@ cleanup_list = []
builddirs = {
"samba3" : "source3",
"samba" : ".",
+ "samba-ctdb" : ".",
"samba-libs" : ".",
"ldb" : "lib/ldb",
"tdb" : "lib/tdb",
@@ -55,6 +56,24 @@ tasks = {
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain") ],
+ "samba-ctdb" : [ ("random-sleep", "script/random-sleep.sh 60 600", "text/plain"),
+
+ # make sure we have tdb around:
+ ("tdb-configure", "cd lib/tdb && PYTHONPATH=${PYTHON_PREFIX}/site-packages:$PYTHONPATH PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig ./configure --bundled-libraries=NONE --abi-check --enable-debug -C ${PREFIX}", "text/plain"),
+ ("tdb-make", "cd lib/tdb && make", "text/plain"),
+ ("tdb-install", "cd lib/tdb && make install", "text/plain"),
+
+ # install the ctdb headers under the prefix:
+ ("ctdb-header-install", "cp ./ctdb/include/* ${PREFIX_DIR}/include", "text/plain"),
+ ("ctdb-header-ls", "ls ${PREFIX_DIR}/include/ctdb.h", "text/plain"),
+
+ ("configure", "PYTHONPATH=${PYTHON_PREFIX}/site-packages:$PYTHONPATH PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig ./configure.developer ${PREFIX} --with-selftest-prefix=./bin/ab --with-cluster-support --with-ctdb-dir=${PREFIX_DIR} --bundled-libraries=!tdb", "text/plain"),
+ ("make", "make", "text/plain"),
+ ("check", "./bin/smbd -b | grep CLUSTER_SUPPORT", "text/plain"),
+ ("install", "make install", "text/plain"),
+ ("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
+ ("clean", "make clean", "text/plain") ],
+
"samba-libs" : [
("random-sleep", "script/random-sleep.sh 60 600", "text/plain"),
("talloc-configure", "cd lib/talloc && PYTHONPATH=${PYTHON_PREFIX}/site-packages:$PYTHONPATH PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig ./configure --bundled-libraries=NONE --abi-check --enable-debug -C ${PREFIX}", "text/plain"),