[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4008-g4ca2b54

Stefan Metzmacher metze at samba.org
Sun Sep 14 19:24:30 GMT 2008


The branch, v3-3-test has been updated
       via  4ca2b54440e9adc9a12ccc5c9fd1c3012e2a7574 (commit)
       via  1a95c732bd9f3609567b976a4fa1fae44d1f85b7 (commit)
       via  1ed9cd7fa10d30ee4302f6e1700ec9b36fa3133e (commit)
       via  6a84e83384d2bfc9801a18d990336e46f5f9a6f5 (commit)
       via  3f796cd8c653596315aa4bc53562ea9dd5ad6e2b (commit)
       via  0cd12f2d0e484786f4efa46efcf57dd66a295c1c (commit)
       via  5db1aca4afee5ab6ead0882074defcbd4b4151b3 (commit)
       via  829d72a13adfa238b818d3061eba81af4ed03752 (commit)
       via  16dd2d4544cf7e62fa077e9e895d8dbaf8b97177 (commit)
       via  fcc3f3577d029f797feb3c89f0f954fda7496164 (commit)
       via  91cf798c70b27cfa941eacb876959cf118da6c60 (commit)
       via  1b7cc5de2281f55e9769aecd1f42b9ba7da79f5b (commit)
      from  b3e9effe65c7ac1538309aef8d8b7e801947542a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 4ca2b54440e9adc9a12ccc5c9fd1c3012e2a7574
Author: Stefan Metzmacher <metze at samba.org>
Date:   Sun Sep 14 19:21:54 2008 +0200

    lib/tdb: sync build system changes and python code from samba4
    
    metze
    (cherry picked from commit bdb8ed24488fd87cd30dd18744feeef0bd4b2c18)

commit 1a95c732bd9f3609567b976a4fa1fae44d1f85b7
Author: Stefan Metzmacher <metze at samba.org>
Date:   Sun Sep 14 19:18:12 2008 +0200

    lib/talloc: sync build system changes from samba4
    
    metze
    (cherry picked from commit 0143c320ccf21c00e1a09b8363cd42724b76faf9)

commit 1ed9cd7fa10d30ee4302f6e1700ec9b36fa3133e
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Thu Apr 17 11:22:23 2008 +0200

    Skip strcmp() on 2 NULL pointers.
    
    Andrew Bartlett
    (cherry picked from commit 7b9a647ebbbe9ec9e1b82b42e3a8916396f91273)
    (cherry picked from commit 60f7bdac64e32ea39099ababacca6f8a2b780ecb)

commit 6a84e83384d2bfc9801a18d990336e46f5f9a6f5
Author: Kai Blin <kai at samba.org>
Date:   Mon Dec 17 20:18:02 2007 +0100

    r26514: Revert the talloc.c part of r26511, as talloc.h already takes care of thois.
    
    Thanks to metze for pointing this out
    (cherry picked from commit 4a5e1047fff0620aa534b147ac7e0bd0416a8fe7)
    (cherry picked from commit 523cc93f89d00ed5a49fd033988e7221bd2ed902)

commit 3f796cd8c653596315aa4bc53562ea9dd5ad6e2b
Author: Stefan Metzmacher <metze at samba.org>
Date:   Sun Sep 14 19:12:39 2008 +0200

    r26511: Janitorial: Fix a warning for the 'printf' attribute on gendb_search_v
    
    While at it, also add a PRINTF_ATTRIBUTE for talloc_vasprintf.
    (partialy cherry picked from commit 5b3a8c8ae195e6a98357a407a0699493f54a8b79)
    metze
    (cherry picked from commit 0073e41a0157ec43b944372671299b3e8a2b3cd5)

commit 0cd12f2d0e484786f4efa46efcf57dd66a295c1c
Author: Simo Sorce <idra at samba.org>
Date:   Mon Feb 25 14:03:07 2008 -0500

    Update homepages for talloc, tdb and ldb subprojects
    (cherry picked from commit 8cb07814bc6627fc8eba228eafd13336e3ca3758)
    (cherry picked from commit 7d85b8d076d6b5b1773c44cd527e016b5d319da5)

commit 5db1aca4afee5ab6ead0882074defcbd4b4151b3
Author: Michael Adam <obnox at samba.org>
Date:   Mon Feb 18 22:49:32 2008 +0100

    Adapt source code checkout information to git repo in talloc website.
    
    Michael
    (cherry picked from commit 254be79799acc69db88a5500a2f755c84553f8ef)
    (cherry picked from commit ac724cddc4a42c1c0cade3fb1cd551f005f2b54c)

commit 829d72a13adfa238b818d3061eba81af4ed03752
Author: Michael Adam <obnox at samba.org>
Date:   Sun Feb 17 22:57:04 2008 +0100

    Fix paths for talloc into unpacked directory (rsync commands).
    
    Michael
    (cherry picked from commit 2839d7f67a0d3ed5b4841bf3c12ce73972636b88)
    (cherry picked from commit a891494d9373a1ecda1ad67c3c6b96cf6d37ea47)

commit 16dd2d4544cf7e62fa077e9e895d8dbaf8b97177
Author: Michael Adam <obnox at samba.org>
Date:   Thu Feb 14 23:10:00 2008 +0100

    Fix path to talloc guide. Noted by "teferi" on irc.
    
    Michael
    (cherry picked from commit bc4e03f2ddb669758e27e2a5c32e15c7d6c5257d)
    (cherry picked from commit 5e5528ff964cd829a8cf8e508983e1a1eda01c32)

commit fcc3f3577d029f797feb3c89f0f954fda7496164
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Oct 10 17:04:00 2007 +0200

    r25614: Add trivial tdb website.
    (cherry picked from commit 6f88c41c31271fd4b634b6393dc4ca44563a88d2)
    (cherry picked from commit 830f99fb5d73c999bb0975828bab6e5f7537baf6)

commit 91cf798c70b27cfa941eacb876959cf118da6c60
Author: Stefan Metzmacher <metze at samba.org>
Date:   Sun Sep 14 18:28:17 2008 +0200

    libreplace: include <krb5.h> and <com_err.h> and no heimdal specific headers
    
    metze
    (partialy cherry picked from commit cffed8e19e22a1fa7b7a322b153df5d54e4c3be2)
    (cherry picked from commit f46a17b408f8c78ecdff724f29d97f8f268d5577)

commit 1b7cc5de2281f55e9769aecd1f42b9ba7da79f5b
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Thu May 29 15:50:52 2008 +0200

    Fix extra dash in command line flag.
    (cherry picked from commit c823cfadb0b20a0782fc4a8a0b63dcb9116f82be)
    (cherry picked from commit 176d624376f7e450b34187778fc75d75679bdd0b)

-----------------------------------------------------------------------

Summary of changes:
 source/lib/ldb/web/index.html         |   24 +-
 source/lib/replace/libreplace_ld.m4   |    2 +-
 source/lib/replace/system/kerberos.h  |    5 +-
 source/lib/talloc/Makefile.in         |    5 +-
 source/lib/talloc/NEWS                |   13 +
 source/lib/talloc/config.mk           |   11 +-
 source/lib/talloc/configure.ac        |    1 +
 source/lib/talloc/talloc.c            |    4 +-
 source/lib/talloc/talloc.mk           |   10 +-
 source/lib/talloc/testsuite.c         |    3 +-
 source/lib/talloc/web/index.html      |   19 +-
 source/lib/tdb/Makefile.in            |   99 +-
 source/lib/tdb/autogen.sh             |    2 +
 source/lib/tdb/config.mk              |   37 +-
 source/lib/tdb/configure.ac           |   18 +-
 source/lib/tdb/libtdb.m4              |   32 -
 source/lib/tdb/python.mk              |   10 +
 source/lib/tdb/python/tdbdump.py      |   12 +
 source/lib/tdb/python/tests/simple.py |  152 ++
 source/lib/tdb/rules.mk               |   21 +
 source/lib/tdb/swig/Tdb.py            |  115 -
 source/lib/tdb/swig/tdb.i             |  167 --
 source/lib/tdb/tdb.i                  |  323 +++
 source/lib/tdb/tdb.mk                 |   86 +
 source/lib/tdb/tdb.pc.in              |    1 +
 source/lib/tdb/tdb.py                 |  341 +++
 source/lib/tdb/tdb_wrap.c             | 4307 +++++++++++++++++++++++++++++++++
 source/lib/tdb/web/index.html         |   42 +
 28 files changed, 5403 insertions(+), 459 deletions(-)
 create mode 100644 source/lib/talloc/NEWS
 create mode 100644 source/lib/tdb/python.mk
 create mode 100644 source/lib/tdb/python/tdbdump.py
 create mode 100644 source/lib/tdb/python/tests/simple.py
 create mode 100644 source/lib/tdb/rules.mk
 delete mode 100644 source/lib/tdb/swig/Tdb.py
 delete mode 100644 source/lib/tdb/swig/tdb.i
 create mode 100644 source/lib/tdb/tdb.i
 create mode 100644 source/lib/tdb/tdb.mk
 create mode 100644 source/lib/tdb/tdb.py
 create mode 100644 source/lib/tdb/tdb_wrap.c
 create mode 100644 source/lib/tdb/web/index.html


Changeset truncated at 500 lines:

diff --git a/source/lib/ldb/web/index.html b/source/lib/ldb/web/index.html
index 2715a0d..4c569ca 100644
--- a/source/lib/ldb/web/index.html
+++ b/source/lib/ldb/web/index.html
@@ -41,9 +41,9 @@ The main features that separate ldb from other solutions are:
 Currently ldb is completely lacking in programmer or user
 documentation. This is your opportunity to make a contribution! Start
 with the public functions declared in <a
-href="http://samba.org/ftp/unpacked/samba4/source/lib/ldb/include/ldb.h">ldb.h</a>
+href="http://samba.org/ftp/unpacked/ldb/include/ldb.h">ldb.h</a>
 and the example code in the <a
-href="http://samba.org/ftp/unpacked/samba4/source/lib/ldb/tools/">tools
+href="http://samba.org/ftp/unpacked/ldb/tools/">tools
 directory</a>. Documentation in the same docbook format used by Samba
 would be preferred.
 
@@ -52,21 +52,17 @@ would be preferred.
 ldb does not currently have its own mailing list or bug tracking
 system. For now, please use the <a
 href="https://lists.samba.org/mailman/listinfo/samba-technical">samba-technical</a>
-mailing list, and the <a href="http://bugzilla.samba.org/">Samba
-bugzilla</a> bug tracking system.
+mailing list or the <a href="https://lists.samba.org/mailman/listinfo/ldb">ldb</a>
+mailing list, and the <a href="http://bugzilla.samba.org/">Samba bugzilla</a> bug tracking system.
 
 <h2>Download</h2>
 
-You can download the latest release either via rsync or anonymous
-svn. To fetch via svn use the following commands:
-
-<pre>
-  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/ldb ldb
-  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/tdb tdb
-  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/talloc talloc
-  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/replace libreplace
-</pre>
-
+You can download the latest release either via rsync or thtough git.<br>
+<br>
+To fetch via git see the following guide:<br>
+<a href="http://wiki.samba.org/index.php/Using_Git_for_Samba_Development">Using Git for Samba Development</a><br>
+Once you have cloned the tree switch to the v4-0-test branch and cd into the source/lib/ldb directory.<br>
+<br>
 To fetch via rsync use these commands:
 
 <pre>
diff --git a/source/lib/replace/libreplace_ld.m4 b/source/lib/replace/libreplace_ld.m4
index 9995d69..81bde46 100644
--- a/source/lib/replace/libreplace_ld.m4
+++ b/source/lib/replace/libreplace_ld.m4
@@ -271,7 +271,7 @@ AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_ALLOW_UNDEF_FLAG],
 			LD_SHLIB_ALLOW_UNDEF_FLAG="-undefined dynamic_lookup"
 			;;
 		*aix*)
-			LD_SHLIB_ALLOW_UNDEF_FLAG="--Wl,-bnoentry"
+			LD_SHLIB_ALLOW_UNDEF_FLAG="-Wl,-bnoentry"
 			;;
 	esac
 
diff --git a/source/lib/replace/system/kerberos.h b/source/lib/replace/system/kerberos.h
index 78aa7b9..2981024 100644
--- a/source/lib/replace/system/kerberos.h
+++ b/source/lib/replace/system/kerberos.h
@@ -129,8 +129,9 @@
 /* Whether krb5_princ_realm returns krb5_realm or krb5_data */
 #define KRB5_PRINC_REALM_RETURNS_REALM 1
 
-#include "heimdal/lib/krb5/krb5.h"
-#include "heimdal/lib/com_err/com_err.h"
+#include <krb5.h>
+#include <com_err.h>
+
 #endif
 
 #endif
diff --git a/source/lib/talloc/Makefile.in b/source/lib/talloc/Makefile.in
index 851dc81..07b8fd4 100644
--- a/source/lib/talloc/Makefile.in
+++ b/source/lib/talloc/Makefile.in
@@ -17,6 +17,7 @@ EXTRA_TARGETS = @DOC_TARGET@
 PICFLAG = @PICFLAG@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 SHLIBEXT = @SHLIBEXT@
+SHLD = @SHLD@
 SHLD_FLAGS = @SHLD_FLAGS@
 tallocdir = @tallocdir@
 
@@ -27,8 +28,8 @@ all:: showflags $(EXTRA_TARGETS)
 include $(tallocdir)/rules.mk
 include $(tallocdir)/talloc.mk
 
-$(SOLIB): $(LIBOBJ)
-	$(CC) $(SHLD_FLAGS) -o $@ $(LIBOBJ) @SONAMEFLAG@$(SONAME)
+$(TALLOC_SOLIB): $(LIBOBJ)
+	$(SHLD) $(SHLD_FLAGS) -o $@ $(LIBOBJ) @SONAMEFLAG@$(TALLOC_SONAME)
 
 check: test
 
diff --git a/source/lib/talloc/NEWS b/source/lib/talloc/NEWS
new file mode 100644
index 0000000..e5b3aa0
--- /dev/null
+++ b/source/lib/talloc/NEWS
@@ -0,0 +1,13 @@
+1.0.1	26 May 2007
+
+ BUGS
+  
+   * Set name of correctly when using talloc_append_string() (metze)
+
+ LICENSE
+   
+   * Change license of files in lib/replace to LGPL (was GPL). (jelmer)
+
+1.0.0	30 April 2007
+ 
+ Initial release.
diff --git a/source/lib/talloc/config.mk b/source/lib/talloc/config.mk
index 540a05d..c13e1b7 100644
--- a/source/lib/talloc/config.mk
+++ b/source/lib/talloc/config.mk
@@ -1,8 +1,7 @@
 [LIBRARY::LIBTALLOC]
-VERSION = 1.2.0
-SO_VERSION = 1
-OBJ_FILES = talloc.o
-PC_FILE = talloc.pc
-MANPAGE = talloc.3
+OUTPUT_TYPE = MERGED_OBJ
 CFLAGS = -Ilib/talloc
-PUBLIC_HEADERS = talloc.h
+
+LIBTALLOC_OBJ_FILES = lib/talloc/talloc.o
+
+MANPAGES += $(tallocdir)/talloc.3
diff --git a/source/lib/talloc/configure.ac b/source/lib/talloc/configure.ac
index 3dcf74b..4719aa0 100644
--- a/source/lib/talloc/configure.ac
+++ b/source/lib/talloc/configure.ac
@@ -18,6 +18,7 @@ AC_SUBST(DOC_TARGET)
 AC_LD_PICFLAG
 AC_LD_SHLIBEXT
 AC_LD_SONAMEFLAG
+AC_LIBREPLACE_SHLD
 AC_LIBREPLACE_SHLD_FLAGS
 
 AC_OUTPUT(Makefile talloc.pc)
diff --git a/source/lib/talloc/talloc.c b/source/lib/talloc/talloc.c
index 99210f3..1f7e524 100644
--- a/source/lib/talloc/talloc.c
+++ b/source/lib/talloc/talloc.c
@@ -1437,12 +1437,12 @@ char *talloc_strndup_append_buffer(char *s, const char *a, size_t n)
 #endif
 
 char *talloc_vasprintf(const void *t, const char *fmt, va_list ap)
-{	
+{
 	int len;
 	char *ret;
 	va_list ap2;
 	char c;
-	
+
 	/* this call looks strange, but it makes it work on older solaris boxes */
 	va_copy(ap2, ap);
 	len = vsnprintf(&c, 1, fmt, ap2);
diff --git a/source/lib/talloc/talloc.mk b/source/lib/talloc/talloc.mk
index 590adc7..e1fe88c 100644
--- a/source/lib/talloc/talloc.mk
+++ b/source/lib/talloc/talloc.mk
@@ -1,9 +1,9 @@
 TALLOC_OBJ = $(tallocdir)/talloc.o 
 
-SOLIB = libtalloc.$(SHLIBEXT).$(PACKAGE_VERSION)
-SONAME = libtalloc.$(SHLIBEXT).1
+TALLOC_SOLIB = libtalloc.$(SHLIBEXT).$(PACKAGE_VERSION)
+TALLOC_SONAME = libtalloc.$(SHLIBEXT).1
 
-all:: libtalloc.a $(SOLIB) testsuite
+all:: libtalloc.a $(TALLOC_SOLIB) testsuite
 
 testsuite:: $(LIBOBJ) testsuite.o
 	$(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
@@ -16,7 +16,7 @@ install:: all
 	${INSTALLCMD} -d $(DESTDIR)$(libdir)
 	${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
 	${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir)
-	${INSTALLCMD} -m 755 $(SOLIB) $(DESTDIR)$(libdir)
+	${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(DESTDIR)$(libdir)
 	${INSTALLCMD} -d $(DESTDIR)${includedir}
 	${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
 	${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
@@ -28,7 +28,7 @@ install:: all
 doc:: talloc.3 talloc.3.html
 
 clean::
-	rm -f *~ $(LIBOBJ) $(SOLIB) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
+	rm -f *~ $(LIBOBJ) $(TALLOC_SOLIB) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
 
 test:: testsuite
 	./testsuite
diff --git a/source/lib/talloc/testsuite.c b/source/lib/talloc/testsuite.c
index fedbda9..3f06eee 100644
--- a/source/lib/talloc/testsuite.c
+++ b/source/lib/talloc/testsuite.c
@@ -48,7 +48,8 @@ static double timeval_elapsed(struct timeval *tv)
 }
 
 #define torture_assert_str_equal(test, arg1, arg2, desc) \
-	if (strcmp(arg1, arg2)) { \
+	if (arg1 == NULL && arg2 == NULL) {				\
+	} else if (strcmp(arg1, arg2)) {			\
 		printf("failure: %s [\n%s: Expected %s, got %s: %s\n]\n", \
 		   test, __location__, arg1, arg2, desc); \
 		return false; \
diff --git a/source/lib/talloc/web/index.html b/source/lib/talloc/web/index.html
index 106920e..5deab93 100644
--- a/source/lib/talloc/web/index.html
+++ b/source/lib/talloc/web/index.html
@@ -12,7 +12,7 @@ destructors. It is the core memory allocator used in Samba4, and has
 made a huge difference in many aspects of Samba4 development.<p>
 
 To get started with talloc, I would recommend you read the <a
-href="http://samba.org/ftp/unpacked/samba4/source/lib/talloc/talloc_guide.txt">talloc guide</a>.
+href="http://samba.org/ftp/unpacked/talloc/talloc_guide.txt">talloc guide</a>.
 
 <h2>Discussion and bug reports</h2>
 
@@ -24,19 +24,16 @@ bugzilla</a> bug tracking system.
 
 <h2>Download</h2>
 
-You can download the latest release either via rsync or anonymous
-svn. To fetch via svn use the following command:
-
-<pre>
-  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/talloc talloc
-  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/replace libreplace
-</pre>
-
+You can download the latest release either via rsync or git.<br>
+<br>
+To fetch via git see the following guide:<br>
+<a href="http://wiki.samba.org/index.php/Using_Git_for_Samba_Development">Using Git for Samba Development</a><br>
+Once you have cloned the tree switch to the v4-0-test branch and cd into the source/lib/talloc directory.<br>
+<br>
 To fetch via rsync use this command:
 
 <pre>
-  rsync -Pavz samba.org::ftp/unpacked/samba4/source/lib/talloc .
-  rsync -Pavz samba.org::ftp/unpacked/samba4/source/lib/libreplace .
+  rsync -Pavz samba.org::ftp/unpacked/talloc .
 </pre>
 
 <hr>
diff --git a/source/lib/tdb/Makefile.in b/source/lib/tdb/Makefile.in
index fd36ed0..090bb6e 100644
--- a/source/lib/tdb/Makefile.in
+++ b/source/lib/tdb/Makefile.in
@@ -16,97 +16,44 @@ CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude
 CFLAGS = $(CPPFLAGS) @CFLAGS@
 LDFLAGS = @LDFLAGS@
 EXEEXT = @EXEEXT@
+SHLD = @SHLD@
 SHLD_FLAGS = @SHLD_FLAGS@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PICFLAG = @PICFLAG@
-SONAMEFLAG = @SONAMEFLAG@
 SHLIBEXT = @SHLIBEXT@
-
-.PHONY: test
-
-PROGS = bin/tdbtool$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT)
-PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbtorture$(EXEEXT)
-ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL)
+SWIG = swig
+PYTHON = @PYTHON@
+PYTHON_CONFIG = @PYTHON_CONFIG@
+PYTHON_BUILD_TARGET = @PYTHON_BUILD_TARGET@
+PYTHON_INSTALL_TARGET = @PYTHON_INSTALL_TARGET@
+PYTHON_CHECK_TARGET = @PYTHON_CHECK_TARGET@
+LIB_PATH_VAR = @LIB_PATH_VAR@
+tdbdir = @tdbdir@
 
 TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
 
-DIRS = bin common tools
-
-SONAME = libtdb.$(SHLIBEXT).1
-SOLIB = libtdb.$(SHLIBEXT).$(PACKAGE_VERSION)
-
-all: showflags dirs $(PROGS) $(SOLIB) libtdb.a
-
-showflags:
-	@echo 'tdb will be compiled with flags:'
-	@echo '  CFLAGS = $(CFLAGS)'
-	@echo '  CPPFLAGS = $(CPPFLAGS)'
-	@echo '  LDFLAGS = $(LDFLAGS)'
-	@echo '  LIBS = $(LIBS)'
-
-.SUFFIXES: .c .o
-
-.c.o:
-	@echo Compiling $*.c
-	@mkdir -p `dirname $@`
-	@$(CC) $(PICFLAG) $(CFLAGS) -c $< -o $@
-
-dirs:
-	@mkdir -p $(DIRS)
-
-install: all
-	mkdir -p $(DESTDIR)$(bindir)
-	mkdir -p $(DESTDIR)$(includedir)
-	mkdir -p $(DESTDIR)$(libdir) 
-	mkdir -p $(DESTDIR)$(libdir)/pkgconfig
-	cp $(PROGS) $(DESTDIR)$(bindir)
-	cp $(srcdir)/include/tdb.h $(DESTDIR)$(includedir)
-	cp tdb.pc $(DESTDIR)$(libdir)/pkgconfig
-	cp libtdb.a $(SOLIB) $(DESTDIR)$(libdir)
-
-libtdb.a: $(TDB_OBJ)
-	ar -rv libtdb.a $(TDB_OBJ)
-
-libtdb.(SHLIBEXT): $(SOLIB)
-	ln -s $< $@
-
-$(SONAME): $(SOLIB)
-	ln -s $< $@
-
-$(SOLIB): $(TDB_OBJ)
-	$(CC) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) $(SONAMEFLAG)$(SONAME) 
-
-TDB_LIB = libtdb.a
-
-bin/tdbtest$(EXEEXT): tools/tdbtest.o $(TDB_LIB)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb -lgdbm
-
-bin/tdbtool$(EXEEXT): tools/tdbtool.o $(TDB_LIB)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb
+default: all
 
-bin/tdbtorture$(EXEEXT): tools/tdbtorture.o $(TDB_LIB)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. -ltdb
+include $(tdbdir)/tdb.mk
+include $(tdbdir)/rules.mk
 
-bin/tdbdump$(EXEEXT): tools/tdbdump.o $(TDB_LIB)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb
+all:: showflags dirs $(PROGS) $(TDB_SOLIB) libtdb.a $(PYTHON_BUILD_TARGET)
 
-bin/tdbbackup$(EXEEXT): tools/tdbbackup.o $(TDB_LIB)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
+install:: all
+$(TDB_SOLIB): $(TDB_OBJ)
+	$(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) @SONAMEFLAG@$(TDB_SONAME)
 
-test: bin/tdbtorture$(EXEEXT)
-	bin/tdbtorture$(EXEEXT)
+check: test
 
-installcheck: test install
+test:: $(PYTHON_CHECK_TARGET)
+installcheck:: test install
 
-clean:
-	rm -f $(ALL_PROGS) *.o *.a common/*.o tools/*.o tdb.pc
-	rm -f test.db test.tdb torture.tdb test.gdbm
-	rm -f $(SONAME) $(SOLIB) libtdb.a
+clean::
+	rm -f *.o *.a */*.o
 
-distclean: clean
-	rm -f *~ */*~
+distclean:: clean
 	rm -f config.log config.status include/config.h config.cache
 	rm -f Makefile
 
-realdistclean: distclean
+realdistclean:: distclean
 	rm -f configure include/config.h.in
diff --git a/source/lib/tdb/autogen.sh b/source/lib/tdb/autogen.sh
index bf84eee..88ac4cf 100755
--- a/source/lib/tdb/autogen.sh
+++ b/source/lib/tdb/autogen.sh
@@ -9,6 +9,8 @@ autoheader $IPATHS || exit 1
 
 rm -rf autom4te.cache
 
+swig -O -Wall -python -keyword tdb.i # Ignore errors for now
+
 echo "Now run ./configure and then make."
 exit 0
 
diff --git a/source/lib/tdb/config.mk b/source/lib/tdb/config.mk
index 01a23f0..b9a8f80 100644
--- a/source/lib/tdb/config.mk
+++ b/source/lib/tdb/config.mk
@@ -1,68 +1,57 @@
 ################################################
 # Start SUBSYSTEM LIBTDB
 [LIBRARY::LIBTDB]
-VERSION = 0.0.1
-SO_VERSION = 0
-PC_FILE = tdb.pc
-OBJ_FILES = \
-	common/tdb.o common/dump.o common/io.o common/lock.o \
-	common/open.o common/traverse.o common/freelist.o \
-	common/error.o common/transaction.o
+OUTPUT_TYPE = STATIC_LIBRARY
 CFLAGS = -Ilib/tdb/include
-PUBLIC_HEADERS = include/tdb.h
 #
 # End SUBSYSTEM ldb
 ################################################
 
+LIBTDB_OBJ_FILES = $(addprefix lib/tdb/common/, \
+	tdb.o dump.o io.o lock.o \
+	open.o traverse.o freelist.o \
+	error.o transaction.o)
+
 ################################################
 # Start BINARY tdbtool
 [BINARY::tdbtool]
 INSTALLDIR = BINDIR
-OBJ_FILES= \
-		tools/tdbtool.o
 PRIVATE_DEPENDENCIES = \
 		LIBTDB
 # End BINARY tdbtool
 ################################################
 
+tdbtool_OBJ_FILES = lib/tdb/tools/tdbtool.o
+
 ################################################
 # Start BINARY tdbtorture
 [BINARY::tdbtorture]
 INSTALLDIR = BINDIR
-OBJ_FILES= \
-		tools/tdbtorture.o
 PRIVATE_DEPENDENCIES = \
 		LIBTDB
 # End BINARY tdbtorture
 ################################################
 
+tdbtorture_OBJ_FILES = lib/tdb/tools/tdbtorture.o
+
 ################################################
 # Start BINARY tdbdump
 [BINARY::tdbdump]
 INSTALLDIR = BINDIR
-OBJ_FILES= \
-		tools/tdbdump.o
 PRIVATE_DEPENDENCIES = \
 		LIBTDB
 # End BINARY tdbdump
 ################################################
 
+tdbdump_OBJ_FILES = lib/tdb/tools/tdbdump.o
+
 ################################################
 # Start BINARY tdbbackup
 [BINARY::tdbbackup]
 INSTALLDIR = BINDIR
-OBJ_FILES= \
-		tools/tdbbackup.o
 PRIVATE_DEPENDENCIES = \
 		LIBTDB
 # End BINARY tdbbackup
 ################################################
 
-#######################
-# Start LIBRARY swig_tdb
-[LIBRARY::swig_tdb]
-LIBRARY_REALNAME = swig/_tdb.$(SHLIBEXT)
-OBJ_FILES = swig/tdb_wrap.o
-PUBLIC_DEPENDENCIES = LIBTDB DYNCONFIG
-# End LIBRARY swig_tdb
-#######################
+tdbbackup_OBJ_FILES = lib/tdb/tools/tdbbackup.o
diff --git a/source/lib/tdb/configure.ac b/source/lib/tdb/configure.ac
index 14761bc..eaf70d3 100644
--- a/source/lib/tdb/configure.ac
+++ b/source/lib/tdb/configure.ac
@@ -2,13 +2,29 @@ AC_PREREQ(2.50)
 AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
 AC_DEFUN([SMB_ENABLE], [echo -n ""])
-AC_INIT(tdb, 1.1.1)
+AC_INIT(tdb, 1.1.2)
 AC_CONFIG_SRCDIR([common/tdb.c])
 AC_CONFIG_HEADER(include/config.h)
 AC_LIBREPLACE_ALL_CHECKS
 AC_LD_SONAMEFLAG
 AC_LD_PICFLAG
 AC_LD_SHLIBEXT
+AC_LIBREPLACE_SHLD
 AC_LIBREPLACE_SHLD_FLAGS
+AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR
 m4_include(libtdb.m4)
+AC_PATH_PROGS([PYTHON_CONFIG], [python2.6-config python2.5-config python2.4-config python-config])


-- 
Samba Shared Repository


More information about the samba-cvs mailing list