summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-09 14:52:03 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-09 10:06:37 +0200
commit7da56a1e37f20d1674e2f1208e4b1f3ca1aad380 (patch)
treec13b79867c0ca7ef8fec84dd92396bc1d331bf35 /script
parent4a3da81edb708c4652652226559989e764577634 (diff)
downloadsamba-7da56a1e37f20d1674e2f1208e4b1f3ca1aad380.tar.gz
samba-7da56a1e37f20d1674e2f1208e4b1f3ca1aad380.tar.bz2
samba-7da56a1e37f20d1674e2f1208e4b1f3ca1aad380.zip
autobuild: Also test a distribution-style build with external libs
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 9 10:06:38 CEST 2012 on sn-devel-104
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index d8a1ad354e..6e090fa94a 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -8,6 +8,7 @@ import os, tarfile, sys, time
from optparse import OptionParser
import smtplib
from email.mime.text import MIMEText
+from distutils.sysconfig import get_python_lib
samba_master = os.getenv('SAMBA_MASTER', 'git://git.samba.org/samba.git')
samba_master_ssh = os.getenv('SAMBA_MASTER_SSH', 'git+ssh://git.samba.org/data/git/samba.git')
@@ -17,6 +18,7 @@ cleanup_list = []
builddirs = {
"samba3" : "source3",
"samba4" : ".",
+ "samba4-libs" : ".",
"ldb" : "lib/ldb",
"tdb" : "lib/tdb",
"tdb2" : "lib/tdb2",
@@ -29,7 +31,7 @@ builddirs = {
"retry" : "."
}
-defaulttasks = [ "samba3", "samba4", "ldb", "tdb", "tdb2", "talloc", "replace", "tevent", "pidl" ]
+defaulttasks = [ "samba3", "samba4", "samba4-libs", "ldb", "tdb", "tdb2", "talloc", "replace", "tevent", "pidl" ]
tasks = {
"samba3" : [ ("autogen", "./autogen.sh", "text/plain"),
@@ -53,6 +55,26 @@ tasks = {
("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
("clean", "make clean", "text/plain") ],
+ "samba4-libs" : [ ("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 --enable-developer -C ${PREFIX}", "text/plain"),
+ ("talloc-make", "cd lib/talloc && make -j", "text/plain"),
+ ("talloc-install", "cd lib/talloc && make install", "text/plain"),
+
+ ("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 --enable-developer -C ${PREFIX}", "text/plain"),
+ ("tdb-make", "cd lib/tdb && make -j", "text/plain"),
+ ("tdb-install", "cd lib/tdb && make install", "text/plain"),
+
+ ("tevent-configure", "cd lib/tevent && PYTHONPATH=${PYTHON_PREFIX}/site-packages:$PYTHONPATH PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig ./configure --bundled-libraries=NONE --enable-developer -C ${PREFIX}", "text/plain"),
+ ("tevent-make", "cd lib/tevent && make -j", "text/plain"),
+ ("tevent-install", "cd lib/tevent && make install", "text/plain"),
+
+ ("ldb-configure", "cd lib/ldb && PYTHONPATH=${PYTHON_PREFIX}/site-packages:$PYTHONPATH PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig ./configure --bundled-libraries=NONE --disable-tdb2 --enable-developer -C ${PREFIX}", "text/plain"),
+ ("ldb-make", "cd lib/ldb && make -j", "text/plain"),
+ ("ldb-install", "cd lib/ldb && make install", "text/plain"),
+
+ ("configure", "PYTHONPATH=${PYTHON_PREFIX}/site-packages:$PYTHONPATH PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${PREFIX_DIR}/lib/pkgconfig ./configure --bundled-libraries=!talloc,!tdb,!pytdb,!ldb,!pyldb,!tevent,!pytevent --disable-tdb2 --enable-developer -C ${PREFIX}", "text/plain"),
+ ("make", "make -j", "text/plain"),
+ ("install", "make install", "text/plain")],
+
"ldb" : [ ("configure", "./configure --enable-developer -C ${PREFIX}", "text/plain"),
("make", "make -j", "text/plain"),
("install", "make install", "text/plain"),
@@ -176,6 +198,7 @@ class builder(object):
self.done = True
return
(self.stage, self.cmd, self.output_mime_type) = self.sequence[self.next]
+ self.cmd = self.cmd.replace("${PYTHON_PREFIX}", get_python_lib(standard_lib=1, prefix=self.prefix))
self.cmd = self.cmd.replace("${PREFIX}", "--prefix=%s" % self.prefix)
self.cmd = self.cmd.replace("${PREFIX_DIR}", "%s" % self.prefix)
# if self.output_mime_type == "text/x-subunit":