Jelmer Vernooij
a35d876537
s4-python: rename samba.glue to samba._glue to indicate it's private.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
cc6e2b8a81
s4-python: Fix formatting, import of FLG_NOSYNC.
2010-04-08 23:20:36 +02:00
Matthias Dieter Wallnöfer
ef3490e799
s4:registry - "REGF backend" - don't ignore wrong-sized REG_DWORD/REG_DWORD_BIG_ENDIAN values
2010-04-08 15:29:40 +02:00
Matthias Dieter Wallnöfer
e2aec9d81f
s4:registry - "patchfile_preg.c" - fix the read operation of the data length on big-endian platforms
2010-04-08 12:27:27 +02:00
Matthias Dieter Wallnöfer
2164ba51e2
s4:registry - "patchfile_preg.c" - use "sizeof(uint32_t)" for some size specifications
...
Looks nicer.
2010-04-08 12:27:27 +02:00
Matthias Dieter Wallnöfer
64957ce068
LDB:sample_module - reintroduce accidentally removed "ldb_msg_add_fmt" statement
...
Obviously this is really needed by the "samba4.ldb" test.
2010-04-07 23:06:02 +02:00
Matthias Dieter Wallnöfer
baf81a0e08
LDB:python bindings - also empty LDB message elements should have a python representation
...
Bug found by ekacnet (see technical mailing list).
2010-04-07 20:40:06 +02:00
Matthias Dieter Wallnöfer
79fccc45bc
s4:registry - "regf backend" - fix it up regarding REG_DWORD/REG_DWORD_BIG_ENDIAN_VALUES
...
This is needed to make it platform independently work (also on big endian
platforms as little endian).
Also add a size check before storing a DWORD.
2010-04-07 20:22:57 +02:00
Jelmer Vernooij
fe4b212eba
urgent_replication: Use standard comments rather than docstrings.
2010-04-07 17:39:59 +02:00
Matthias Dieter Wallnöfer
acfd02574b
s4:pyregistry.c - fix indentation
2010-04-07 15:05:19 +02:00
Matthias Dieter Wallnöfer
0086db6c0c
LDB:sample_module.c - remove code parts which generate warnings
...
Btw: The use of the "ldb_msg_add_fmt" operation directly on the request message
object is strongly discouraged. Better is to make a shallow copy of this message
and attach it to a new child request which is handled by the following modules.
2010-04-06 14:54:10 +02:00
Jelmer Vernooij
5f080d8e03
s4-python: Fix compilation of samba._ldb.
2010-04-06 14:24:45 +02:00
Jelmer Vernooij
449bdf3543
s4-python: Move set_session_info to PySambaLdb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
55b98e9768
s4-python: Move register_samba_handlers to PySambaLdb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
e9c3f2ef13
s4-python: Move ldb_set_utf8_casefold to pyldb-samba.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
ae97613499
s4-python: Move set_opaque_integer to pyldb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
b72a5c0336
Move glue.set_credentials hack to samba.Ldb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
099fc00b60
Add C-based Samba-specific subclass of Ldb.
2010-04-06 13:12:43 +02:00
Andrew Tridgell
7ae4372124
s4-waf: fixed waf distcheck for our standalone libs and s4
2010-04-06 20:27:26 +10:00
Andrew Tridgell
fe060c8f50
s4-waf: added simple 'waf test' support for tdb, talloc and ldb
2010-04-06 20:27:26 +10:00
Andrew Tridgell
ccfce0bbae
s4-waf: autogen-waf.sh for the standalone library builds
2010-04-06 20:27:25 +10:00
Andrew Tridgell
c8835f440a
s4-waf: use a common pattern for finding buildtools and libs
2010-04-06 20:27:25 +10:00
Andrew Tridgell
553324bc10
s4-waf: move to a universal method of recursing into subdirs
...
This works with both standalone lib builds and bundled builds
2010-04-06 20:27:25 +10:00
Andrew Tridgell
8dc8d31f4a
s4-waf: fixed finding of buildtools and srcdir
2010-04-06 20:27:25 +10:00
Andrew Tridgell
a884008797
ldb-waf: fixed buildtools path
2010-04-06 20:27:25 +10:00
Andrew Tridgell
1883ee6dbc
s4-waf: avoid having to run waf configure before waf dist
...
This should be useful for building tarballs from a clean checkout
2010-04-06 20:27:25 +10:00
Andrew Tridgell
9e9e878e8f
s4-waf: allow standalone tarball build of libraries
2010-04-06 20:27:25 +10:00
Andrew Tridgell
528d7c7cf3
s4-waf: added 'waf dist' to our standalone libs as well
2010-04-06 20:27:25 +10:00
Andrew Tridgell
aceb14f611
s4-waf: use cflags for LDB_MODULESDIR
...
this prevents rebuilds when it changes
2010-04-06 20:27:21 +10:00
Andrew Tridgell
874e39cbf0
s4-waf: added implied_deps for system libraries
...
when we use a system version of a library such as talloc, then we
no longer get the automtica dependency propogation of talloc implying
libreplace. That means we don't get the includes for libreplace, which
means things can fail to build.
To fix this this change adds an implied_deps option to
CHECK_BUNDLED_SYSTEM(), which tells the samba_deps module to add an
implied dependency on the listed targets if the system library is
chosen.
2010-04-06 20:27:17 +10:00
Andrew Tridgell
b690fedef5
s4-waf: removed the AUTOGENERATED markers
...
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
3e01746420
ldb-waf: ldb needs HAVE_CONFIG_H for building a bundled popt
2010-04-06 20:27:16 +10:00
Andrew Tridgell
a2b4d7e8eb
s4-waf: ensure we don't end up with mixed versions of talloc/tdb/tevent
2010-04-06 20:27:15 +10:00
Andrew Tridgell
3cc01226ec
s4-waf: more places missing libreplace
2010-04-06 20:27:14 +10:00
Andrew Tridgell
b0fb567f04
s4-waf: more dependencies on talloc
...
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
b9aa63887c
s4-waf: cleanup use of LIBPOPT vs popt dependency
2010-04-06 20:27:13 +10:00
Andrew Tridgell
bfbf43cc36
s4-waf: support the use of system libraries
...
distros can set --bundled-libraries=NONE to force use of all system
libraries. If the right version isn't found then configure will fail.
Users may choose which libraries to use from the system, and which to
use bundled libs. The default is to try system libs, and use them if
their version matches the one in the source tree.
2010-04-06 20:27:13 +10:00
Andrew Tridgell
c2d17cf978
s4-waf: set default for bundled libraries
2010-04-06 20:27:12 +10:00
Andrew Tridgell
42c9380760
s4-waf: set the bundled library extension for some libs
2010-04-06 20:27:12 +10:00
Andrew Tridgell
00825ecf34
ldb-waf: rename libldb.so to libldb-s4.so if built as part of s4
...
Also include the ldap backend if not built as part of s4. In s4, we
use the ldapi backend.
2010-04-06 20:27:12 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
cf77a1025c
s4-waf: ensure all the ldb.pc.in vars are set
2010-04-06 20:27:11 +10:00
Andrew Tridgell
bd44f14d8f
s4-waf: enable the pc_files in the build rules
2010-04-06 20:27:10 +10:00
Andrew Tridgell
aa5e08eb83
s4-waf: install the rest of the headers
2010-04-06 20:27:09 +10:00
Andrew Tridgell
17f4485722
s4-waf: disable_gnutls is gone
2010-04-06 20:27:05 +10:00
Andrew Tridgell
a6ce1c3dce
build: need to mark disabled libraries as DISABLED
2010-04-06 20:27:05 +10:00
Andrew Tridgell
9df6c86123
build: honor both --enable-gnutls and --disable-gnutls
...
This shows how we can do the dual-boolean rules we use so much with
autoconf
2010-04-06 20:27:04 +10:00
Andrew Tridgell
0632fac52e
build: add cflags from pkg_config results to header/function tests
...
When we find a package with pkg_config we may need to use the
resulting ccflags and ldflags in later tests.
Support this by adding lib= options to CHECK_FUNC and CHECK_HEADER
This gets gnutls on FreeBSD working
2010-04-06 20:27:01 +10:00
Andrew Tridgell
9730166fd6
build: configure fixes for opensolaris
2010-04-06 20:27:01 +10:00
Andrew Tridgell
00649a9c62
build: updated configure checks or new syntax
2010-04-06 20:27:00 +10:00