Jelmer Vernooij
de68718d3d
wafsamba: Fix filenames for ldb modules.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
0d7f8fb73d
wafsamba: Fix building of modules as shared libraries.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
12b4647289
wafsamba: Improve assertion error message to include the module.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
419928b8df
wafsamba: Only add init function if not building module as shared library.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
2edd652729
s4-waf: Fix installation of .so links for libraries that are not bundled but have a mangled name.
2010-06-13 20:52:47 +02:00
Thomas Nagy
09fb7fcd5f
Do not use headermap.txt for the header installation
...
Try to find the headers by searching on the filesystem. Warn when
a public header replacement cannot be found (talloc.h, ...).
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-13 19:26:48 +02:00
Jelmer Vernooij
a22d7db308
wafsamba: Only try to build manpages if XSLTPROC was actually found.
2010-05-31 20:45:14 +02:00
Stefan Metzmacher
1da4153459
buildtools/wafsamba: use build group 'final' for the creation of manpages
...
This way we don't try to build manpages just for waf build --target=smbtorture
metze
2010-05-31 17:52:31 +02:00
Jelmer Vernooij
f89e390fbc
waf: Refactor manpage building code.
2010-05-31 13:56:25 +02:00
Jelmer Vernooij
f98bb7ffc3
Add manpages argument to SAMBA_LIBRARY().
2010-05-31 13:56:25 +02:00
Kai Blin
e3997c2a6d
wafsamba: Correctly detect if bld.env.XSLTPROC is not set
...
This fixes the build on some build farm hosts and my machine.
Jelmer, please check.
2010-05-31 09:40:14 +02:00
Jelmer Vernooij
1d1d31f703
wafsamba: Default blacklist to an empty list rather than None.
2010-05-31 03:59:50 +02:00
Jelmer Vernooij
3858b5db8b
s4-waf: sanitize library names like the old build system did, only add
...
-samba4 suffix for libraries that are bundled.
2010-05-31 03:28:42 +02:00
Jelmer Vernooij
f3f1745e27
wafsamba: Actually install manual pages.
2010-05-31 01:38:35 +02:00
Kai Blin
04d251a847
build: Also replace '-' by '_' when creating header defines
...
Tridge, please check
2010-05-30 23:29:29 +02:00
Andrew Bartlett
7ea7b23413
waf Provide release signing capability in 'waf dist'
...
This helps ensure the release is signed correctly - the .tar file, not
the .tar.gz must be signed, and it's easy to forget this.
Andrew Bartlett
2010-05-28 21:59:08 +10:00
Andrew Bartlett
b50c006e20
waf Add DIST_BLACKLIST to list files that we cannot include in a release
...
This currently includes the source3 directory for Samba4 releases (per
past practice in mkrelease.sh), but also could include things like
DFSG-unfree RFC files in the future.
Andrew Barltett
2010-05-28 21:59:07 +10:00
Andrew Bartlett
892a4b24e7
waf Read VERSION file inside WAF to set package version
...
This replaces the call to mkversion.sh in both the Samba3 and Samba4
WAF builds.
Andrew Bartlett
2010-05-28 15:20:03 +10:00
Thomas Nagy
792743cfab
solve the error "ldb.inst.h does not exist"
...
The error happens when headermap.txt is not available
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-24 01:26:43 +02:00
Andrew Tridgell
eec93985d1
build: get the SONAME right for installed libraries
2010-05-23 22:11:57 +02:00
Thomas Nagy
bd8e3cf855
Substitute the pidl files without using 'headermap.txt'
...
The headers generated by pidl contain references to bin/default. Those paths
may be replaced automatically.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-23 17:51:06 +02:00
Thomas Nagy
ab093ffe46
wafsamba: Disable the abi checks when gdb is not available
...
Try to find gdb during the configuration, if gdb is missing, disable
the abi checks.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-21 13:59:55 +02:00
Kai Blin
f242a31a43
s3-waf: note that the options are broken
2010-05-20 22:16:14 +02:00
Kai Blin
b2431163fc
s3-waf: replace all - with _ in the configuration option names
2010-05-20 22:16:14 +02:00
Kai Blin
771a8c17af
s3-waf: Allow using --enable/--disable options as well
2010-05-20 22:16:13 +02:00
Kai Blin
3d1c0f1a21
s3-waf: Add helper that facilitates defining --with-x and --without-x options
2010-05-20 22:16:13 +02:00
Thomas Nagy
66cbc62961
s4-waf: Replace local includes in header files with proper system names.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-19 22:30:05 +02:00
Andrew Bartlett
79bd6a6764
waf: Make waf handle IDL files from Samba3
...
For s3compat, we need to handle IDL files not in the current directory
(so the incoming file names have a directory prefix - so we must use
os.path.basename()).
We also need to be able to disable the addition of some IDL files into
the tables.c/tables.h - some of the Samba3 IDL files are in conflict
with Samba4.
Andrew Bartlett
2010-05-14 23:25:45 +10:00
Stefan Metzmacher
3b8d9cd87e
Revert "wafsamba: use -D_XOPEN_SOURCE=700 for the build"
...
This reverts commit 3408c942ab
.
This seems to cause more problems than it tries to solve.
And Mac OS 10.4 doesn't need it anymore
(after commit bd6d76d776
).
metze
2010-05-14 15:21:45 +02:00
Stefan Metzmacher
3408c942ab
wafsamba: use -D_XOPEN_SOURCE=700 for the build
...
Some systems set this automaticly via -D_GNU_SOURCE=1,
but on others we need to set it ourself (e.g. Mac OS 10.4)
metze
2010-05-14 13:38:38 +02:00
Thomas Nagy
b4cfa3b9e4
buildtools/wafsamba: fix build group ordering
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-13 19:23:37 +02:00
Kai Blin
eda5888492
build: skip missing executables in testwaf.sh
2010-05-11 14:49:28 +02:00
Kai Blin
7c68512a21
build: Update the waf build to fix python header checks
2010-05-10 10:25:34 +02:00
Andrew Bartlett
23cafd5569
buildtools: Add 'make testenv' to Samba4 make targets
...
I'm still too addicted to this as my standard debugging environment, and while I can learn the new command, this helps the muscle-memory.
Andrew Bartlett
2010-05-09 21:18:52 +10:00
Andrew Tridgell
022266566d
build: fixed pc file variable substitution
...
We should not substitute for the first use of each variable
declaration in the pkgconfig file
2010-05-07 15:14:49 +02:00
Andrew Tridgell
815fcfba48
build: treat a blank --build or --host as not a cross-compile
...
This matches autoconf behaviour
2010-05-07 09:03:47 +02:00
Andrew Tridgell
c61f4dcc0f
build: added a reconfigure target
...
this is meant to be used by the s3 build, to allow jelmers work on
smbtorture4 in s3 to avoid re-running configure unless its needed
2010-05-06 14:56:43 +02:00
Andrew Tridgell
ed2941ba3d
build: added configure test for inline
2010-05-05 16:14:13 +02:00
Andrew Tridgell
20d77705ce
build: update version of waf
...
this fixes a slow configure problem on HPUX
2010-05-05 16:14:13 +02:00
Andrew Tridgell
3d2819bd86
build: use the wrapper commands in testwaf.sh
...
this ensures they are well tested
2010-05-05 16:14:13 +02:00
Andrew Tridgell
f8120ab697
build: added a distcheck target
2010-05-05 16:14:13 +02:00
Andrew Tridgell
47fb7dfd1c
build: mark cloned task generators as not posted
...
this solves an incompatibility with a newer version of waf from svn
2010-05-05 16:14:13 +02:00
Andrew Tridgell
fa172c494f
build: exit with an error if waf configure fails
...
We don't want configure in the build farm to show green when it fails
2010-05-05 16:14:13 +02:00
Andrew Tridgell
6ed45442c4
build: enable python 3.0 and 3.1 in testwaf.sh
...
try to ensure that we don't let support for python 3.x bitrot
2010-05-04 13:02:30 +02:00
Andrew Tridgell
ce67027c07
build: fixed wildcard handling for python 3.x
...
print must take parentheses
2010-05-04 13:02:30 +02:00
Andrew Tridgell
7281b02181
build: allow use of target names as commands in waf
...
This allows for the following types of commands:
waf smbd/samba
waf smbd/server.c
waf ../lib/util/util_file.c
waf ../lib/util/util_file_*.o
this will be used as part of an updated minimal_includes.pl script
2010-05-04 11:45:43 +02:00
Andrew Tridgell
6d1e8c5835
build: use the waf patterns for RPATH
...
Use the self.env.RPATH variable to set the RPATH for each target. This
gives consistent ordering of the link command, ensuring that we don't
get rebuilds if we ask for a --targets= build after a normal build.
This also means we are now using the RPATH_ST pattern, which means we
can potentially support compilers that don't use -Wl,xxx as the
command line for rpath support
2010-05-03 17:16:48 +02:00
Andrew Tridgell
b3d8a7136a
build: added a check for group ordering within target dependencies
...
If target A depends on target B, then target B must not be in a later
build group from target A
Pair-Programmed-With: Thomas Nagy
2010-05-03 17:16:47 +02:00
Andrew Tridgell
8bc5194b04
build: fix for combined configure/build in one command
...
This is a fix from ita for "waf distclean configure build". Running
it as one command failed with missing config.h
2010-05-03 17:16:47 +02:00
Andrew Tridgell
d83850abe2
build: uname on opensolaris returns 1 for success
...
check for -1 as failure, not 0 for success
2010-05-02 18:25:13 +02:00