nivanova/samba-autobuild/.git
10 years agos4-waf: set JOBS=1 during configure.waf
Andrew Tridgell [Wed, 31 Mar 2010 10:01:29 +0000 (21:01 +1100)]
s4-waf: set JOBS=1 during configure.waf

this allows configure to run on AIX, which has broken threading

10 years agobuild: enable 'nothreads' when JOBS=1
Andrew Tridgell [Wed, 31 Mar 2010 09:56:00 +0000 (20:56 +1100)]
build: enable 'nothreads' when JOBS=1

this makes waf not use pthreads, which should fix the problems on AIX
and maybe on HPUX. It looks like process handling with Python on AIX
is broken if threads are used.

When JOBS=1 we don't need threads anyway.

10 years agobuild: refactor the object reduction code
Andrew Tridgell [Wed, 31 Mar 2010 09:13:55 +0000 (20:13 +1100)]
build: refactor the object reduction code

split it out into a separate function, and use the final_* attributes
instead of the direct_* and indirect_* attributes

10 years agos4-waf: remove PYTHONDIR from config.h
Andrew Tridgell [Wed, 31 Mar 2010 07:05:57 +0000 (18:05 +1100)]
s4-waf: remove PYTHONDIR from config.h

prevent unnecessary rebuilds

10 years agos4-waf: use cflags for LDB_MODULESDIR
Andrew Tridgell [Wed, 31 Mar 2010 07:05:29 +0000 (18:05 +1100)]
s4-waf: use cflags for LDB_MODULESDIR

this prevents rebuilds when it changes

10 years agobuild: sys.exit is better than raise here
Andrew Tridgell [Wed, 31 Mar 2010 07:04:18 +0000 (18:04 +1100)]
build: sys.exit is better than raise here

using raise produces a screen full of stuff the user can't
understand. The message is much clearer with an exit

10 years agobuild: don't define vars in config.h for CONFIG_PATH()
Andrew Tridgell [Wed, 31 Mar 2010 07:03:39 +0000 (18:03 +1100)]
build: don't define vars in config.h for CONFIG_PATH()

we don't want paths in config.h, as that just causes full rebuilds
when you change --prefix. Better to use cflags= on the right subsystem

10 years agos4-waf: we don't need strerror_r from roken
Andrew Tridgell [Tue, 30 Mar 2010 22:22:40 +0000 (09:22 +1100)]
s4-waf: we don't need strerror_r from roken

10 years agobuild: finally got LIBRARY<->LIBRARY reductions working
Andrew Tridgell [Tue, 30 Mar 2010 12:08:01 +0000 (23:08 +1100)]
build: finally got LIBRARY<->LIBRARY reductions working

the install size is now 100M

10 years agobuild: add python library object reduction
Andrew Tridgell [Tue, 30 Mar 2010 11:39:18 +0000 (22:39 +1100)]
build: add python library object reduction

This reduces the install size of s4 from 393M down to 132M on my
system. We had a lot of duplicate code in our python modules!

10 years agobuild: python libs need to be built shared, regardless of --disable-shared
Andrew Tridgell [Tue, 30 Mar 2010 11:28:30 +0000 (22:28 +1100)]
build: python libs need to be built shared, regardless of --disable-shared

we don't have a way to load them otherwise

10 years agobuild: add require_headers option to CHECK_BUNDLED_SYSTEM()
Andrew Tridgell [Tue, 30 Mar 2010 11:06:32 +0000 (22:06 +1100)]
build: add require_headers option to CHECK_BUNDLED_SYSTEM()

Useful to ensure the package has usable headers

10 years agos4-waf: fixed some of the group ordering
Andrew Tridgell [Tue, 30 Mar 2010 09:21:21 +0000 (20:21 +1100)]
s4-waf: fixed some of the group ordering

We need to try to keep targets in the right groups

10 years agos4-waf: look in libintl for dgettext()
Andrew Tridgell [Tue, 30 Mar 2010 05:52:08 +0000 (16:52 +1100)]
s4-waf: look in libintl for dgettext()

10 years agos4-waf: add getaddrinfo.c replacement if needed
Andrew Tridgell [Tue, 30 Mar 2010 05:40:34 +0000 (16:40 +1100)]
s4-waf: add getaddrinfo.c replacement if needed

10 years agobuild: expand indirect includes to fix disable-shared build
Andrew Tridgell [Tue, 30 Mar 2010 05:06:55 +0000 (16:06 +1100)]
build: expand indirect includes to fix disable-shared build

10 years agobuild: fixed install target for systems with rpath disabled
Andrew Tridgell [Tue, 30 Mar 2010 04:32:06 +0000 (15:32 +1100)]
build: fixed install target for systems with rpath disabled

10 years agobuild: added functions for compound configuration testing
Andrew Tridgell [Tue, 30 Mar 2010 03:41:08 +0000 (14:41 +1100)]
build: added functions for compound configuration testing

This allows us to give a single 'Checking ...' msg for a compound
set of tests.

10 years agobuild: don't link when checking a C prototype
Andrew Tridgell [Tue, 30 Mar 2010 02:19:46 +0000 (13:19 +1100)]
build: don't link when checking a C prototype

10 years agos4-waf: added test for dlopen prototype
Andrew Tridgell [Tue, 30 Mar 2010 02:14:01 +0000 (13:14 +1100)]
s4-waf: added test for dlopen prototype

10 years agos4-waf: added a --enable-selftest option as a shortcut
Andrew Tridgell [Tue, 30 Mar 2010 02:05:15 +0000 (13:05 +1100)]
s4-waf: added a --enable-selftest option as a shortcut

This is equiavalent to --enable-uid-wrapper --enable-nss-wrapper --enable-socket-wrapper
but is easier to remember!

10 years agobuild: tweak the strategy for finding functions
Andrew Tridgell [Tue, 30 Mar 2010 01:47:54 +0000 (12:47 +1100)]
build: tweak the strategy for finding functions

Based on a problem with res_ndestroy() on sunx in the build farm, I've
changed the default strategy for finding functions with
CHECK_FUNC(). It now accepts either a macro of a linked function, but
won't accept a declaration only unless you set link=False.

10 years agos4-waf: show the fully expanded test command
Andrew Tridgell [Tue, 30 Mar 2010 00:54:23 +0000 (11:54 +1100)]
s4-waf: show the fully expanded test command

this makes it easier to run it separately

10 years agobuild: new waf version with local patches replaced by upstream changes
Andrew Tridgell [Tue, 30 Mar 2010 00:51:31 +0000 (11:51 +1100)]
build: new waf version with local patches replaced by upstream changes

10 years agobuild: removed debug line
Andrew Tridgell [Tue, 30 Mar 2010 00:38:55 +0000 (11:38 +1100)]
build: removed debug line

10 years agos4-waf: use the versions of perl/python found by configure
Andrew Tridgell [Tue, 30 Mar 2010 00:37:07 +0000 (11:37 +1100)]
s4-waf: use the versions of perl/python found by configure

10 years agos4-waf: don't assume perl takes -W option
Andrew Tridgell [Mon, 29 Mar 2010 12:46:38 +0000 (23:46 +1100)]
s4-waf: don't assume perl takes -W option

10 years agobuild: fixed a configure error with a totally clean tree
Andrew Tridgell [Mon, 29 Mar 2010 11:32:03 +0000 (22:32 +1100)]
build: fixed a configure error with a totally clean tree

10 years agos4-waf: added implied_deps for system libraries
Andrew Tridgell [Mon, 29 Mar 2010 11:27:17 +0000 (22:27 +1100)]
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.

10 years agos4-waf: install in /usr/local/samba by default
Andrew Tridgell [Mon, 29 Mar 2010 11:05:54 +0000 (22:05 +1100)]
s4-waf: install in /usr/local/samba by default

10 years agos4-waf: removed the AUTOGENERATED markers
Andrew Tridgell [Mon, 29 Mar 2010 10:44:37 +0000 (21:44 +1100)]
s4-waf: removed the AUTOGENERATED markers

we won't be using the mk -> wscript generator again

10 years agos4-waf: added rules for rebuilding the yapp parser in pidl
Andrew Tridgell [Mon, 29 Mar 2010 10:28:49 +0000 (21:28 +1100)]
s4-waf: added rules for rebuilding the yapp parser in pidl

10 years agos4-waf: updated for new perl subunit options and filter name
Andrew Tridgell [Mon, 29 Mar 2010 10:11:33 +0000 (21:11 +1100)]
s4-waf: updated for new perl subunit options and filter name

10 years agos4-waf: added --enable-fhs configure option
Andrew Tridgell [Mon, 29 Mar 2010 09:43:58 +0000 (20:43 +1100)]
s4-waf: added --enable-fhs configure option

10 years agobuild: fixed the on_results problem with SAMBA_AUTOPROTO()
Andrew Tridgell [Mon, 29 Mar 2010 07:55:17 +0000 (18:55 +1100)]
build: fixed the on_results problem with SAMBA_AUTOPROTO()

10 years agotalloc-waf: don't build the talloc testsuite in s4
Andrew Tridgell [Mon, 29 Mar 2010 07:48:50 +0000 (18:48 +1100)]
talloc-waf: don't build the talloc testsuite in s4

its built into smbtorture already

10 years agobuild: fixed missing nodes display on errors
Andrew Tridgell [Mon, 29 Mar 2010 07:43:57 +0000 (18:43 +1100)]
build: fixed missing nodes display on errors

when waf can't build something due to a missing file, it displayed the
whole group of files. This update makes it display only the missing
files.

10 years agoldb-waf: ldb needs HAVE_CONFIG_H for building a bundled popt
Andrew Tridgell [Mon, 29 Mar 2010 06:20:39 +0000 (17:20 +1100)]
ldb-waf: ldb needs HAVE_CONFIG_H for building a bundled popt

10 years agobuild: added pattern option for recursive_dirlist
Andrew Tridgell [Mon, 29 Mar 2010 06:12:37 +0000 (17:12 +1100)]
build: added pattern option for recursive_dirlist

also added LOAD_ENVIRONMENT(), which will be used in the testsuite

10 years agos4-waf: added pydoctor and wafdocs targets
Andrew Tridgell [Mon, 29 Mar 2010 06:12:04 +0000 (17:12 +1100)]
s4-waf: added pydoctor and wafdocs targets

these generate html documentation for the Samba python code

You need a very recent version of pydoctor

10 years agobuild: nicer progress display for a standard build
Andrew Tridgell [Mon, 29 Mar 2010 05:59:13 +0000 (16:59 +1100)]
build: nicer progress display for a standard build

10 years agobuild: override PACKAGE_VERSION in pkg-config generation for libraries
Andrew Tridgell [Mon, 29 Mar 2010 04:27:54 +0000 (15:27 +1100)]
build: override PACKAGE_VERSION in pkg-config generation for libraries

we should use the vnum

10 years agobuild: reuse SAMBA_LIBRARY() to build python modules
Andrew Tridgell [Mon, 29 Mar 2010 04:19:13 +0000 (15:19 +1100)]
build: reuse SAMBA_LIBRARY() to build python modules

This allows the rpath logic to be shared, and simplifies the install
logic

10 years agopidl-waf: re-enable the pidl man pages
Andrew Tridgell [Mon, 29 Mar 2010 04:18:21 +0000 (15:18 +1100)]
pidl-waf: re-enable the pidl man pages

10 years agobuild: fixed progress display
Andrew Tridgell [Sun, 28 Mar 2010 23:01:34 +0000 (10:01 +1100)]
build: fixed progress display

10 years agobuild: use 'Compiling foo.c' and 'Linking foo' like old build system
Andrew Tridgell [Sun, 28 Mar 2010 21:30:29 +0000 (08:30 +1100)]
build: use 'Compiling foo.c' and 'Linking foo' like old build system

When -p is not used, display compilation messages similarly to the old
build system, but with a progress indicator

10 years agobuild: move waf into buildtools/bin
Andrew Tridgell [Sun, 28 Mar 2010 20:07:18 +0000 (07:07 +1100)]
build: move waf into buildtools/bin

10 years agos4-waf: ensure we don't end up with mixed versions of talloc/tdb/tevent
Andrew Tridgell [Sun, 28 Mar 2010 13:08:38 +0000 (00:08 +1100)]
s4-waf: ensure we don't end up with mixed versions of talloc/tdb/tevent

10 years agos4-waf: get the sense of the tests for the HAVE_INET_* replacements right
Andrew Tridgell [Sun, 28 Mar 2010 12:02:16 +0000 (23:02 +1100)]
s4-waf: get the sense of the tests for the HAVE_INET_* replacements right

10 years agos4-waf: heimdal wants to look for dd_fd in DIR
Andrew Tridgell [Sun, 28 Mar 2010 11:24:15 +0000 (22:24 +1100)]
s4-waf: heimdal wants to look for dd_fd in DIR

10 years agobuild: tidy up the wafsamba rules a bit
Andrew Tridgell [Sun, 28 Mar 2010 11:01:04 +0000 (22:01 +1100)]
build: tidy up the wafsamba rules a bit

use python string conventions for function comments

10 years agos4-waf: sys_lease depends on talloc
Andrew Tridgell [Sun, 28 Mar 2010 10:33:48 +0000 (21:33 +1100)]
s4-waf: sys_lease depends on talloc

10 years agos4-waf: more places missing libreplace
Andrew Tridgell [Sun, 28 Mar 2010 10:06:26 +0000 (21:06 +1100)]
s4-waf: more places missing libreplace

10 years agos4-waf: added auto-detection of perl manpage extensions
Andrew Tridgell [Sun, 28 Mar 2010 10:00:51 +0000 (21:00 +1100)]
s4-waf: added auto-detection of perl manpage extensions

some systems produce pidl.1p, others pidl.1. We need to know which one
to use.

10 years agos4-waf: fixed dirfd() detection for heimdal
Andrew Tridgell [Sun, 28 Mar 2010 08:40:05 +0000 (19:40 +1100)]
s4-waf: fixed dirfd() detection for heimdal

10 years agos4-waf: added libreplace dep for the conditional heimdal modules
Andrew Tridgell [Wed, 24 Mar 2010 16:10:14 +0000 (03:10 +1100)]
s4-waf: added libreplace dep for the conditional heimdal modules

10 years agobuild: work around missing defaults from gnu_dirs.py
Andrew Tridgell [Sun, 28 Mar 2010 08:30:13 +0000 (19:30 +1100)]
build: work around missing defaults from gnu_dirs.py

10 years agobuild: fixed popt subsystem on systems without popt
Andrew Tridgell [Sun, 28 Mar 2010 07:33:25 +0000 (18:33 +1100)]
build: fixed popt subsystem on systems without popt

10 years agos4-waf: merge in the latest changes from master
Andrew Tridgell [Sun, 28 Mar 2010 07:29:46 +0000 (18:29 +1100)]
s4-waf: merge in the latest changes from master

The heimdal changes mean the asn1 compiler produces a 2nd header file

10 years agowaf-pidl: don't need this debug ls any more
Andrew Tridgell [Sun, 28 Mar 2010 06:53:04 +0000 (17:53 +1100)]
waf-pidl: don't need this debug ls any more

10 years agos4-waf: change bundled extension to 'samba4'
Andrew Tridgell [Sun, 28 Mar 2010 06:46:59 +0000 (17:46 +1100)]
s4-waf: change bundled extension to 'samba4'

This matches what debian currently uses for libldb-samba4

10 years agos4-waf: more dependencies on talloc
Andrew Tridgell [Sun, 28 Mar 2010 06:46:25 +0000 (17:46 +1100)]
s4-waf: more dependencies on talloc

these are needed so we can support a system talloc without using the
bundled talloc.h

10 years agobuild: auto-detect platforms which don't support shared libs
Andrew Tridgell [Sun, 28 Mar 2010 06:24:05 +0000 (17:24 +1100)]
build: auto-detect platforms which don't support shared libs

10 years agobuild: only add -fPIC if it is supported
Andrew Tridgell [Sun, 28 Mar 2010 06:11:06 +0000 (17:11 +1100)]
build: only add -fPIC if it is supported

10 years agos4-waf: cleaned up tevent dependency
Andrew Tridgell [Sun, 28 Mar 2010 06:08:13 +0000 (17:08 +1100)]
s4-waf: cleaned up tevent dependency

10 years agos4-waf: cleanup use of LIBPOPT vs popt dependency
Andrew Tridgell [Sun, 28 Mar 2010 06:05:30 +0000 (17:05 +1100)]
s4-waf: cleanup use of LIBPOPT vs popt dependency

10 years agos4-waf: support the use of system libraries
Andrew Tridgell [Sun, 28 Mar 2010 05:38:27 +0000 (16:38 +1100)]
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.

10 years agos4-waf: we need a recent version of perls MakeMaker module
Andrew Tridgell [Sun, 28 Mar 2010 04:51:57 +0000 (15:51 +1100)]
s4-waf: we need a recent version of perls MakeMaker module

10 years agos4-waf: fixed some deps now we don't auto-include tevent and replace
Andrew Tridgell [Sun, 28 Mar 2010 04:43:26 +0000 (15:43 +1100)]
s4-waf: fixed some deps now we don't auto-include tevent and replace

this is preparation for being able to use system versions of these
libraries

10 years agos4-waf: set default for bundled libraries
Andrew Tridgell [Sun, 28 Mar 2010 04:42:28 +0000 (15:42 +1100)]
s4-waf: set default for bundled libraries

10 years agobuild: better control over bundled library extensions
Andrew Tridgell [Sun, 28 Mar 2010 04:41:49 +0000 (15:41 +1100)]
build: better control over bundled library extensions

10 years agobuild: better waf test script
Andrew Tridgell [Sun, 28 Mar 2010 04:39:16 +0000 (15:39 +1100)]
build: better waf test script

10 years agos4-waf: don't auto-include bundled library headers
Andrew Tridgell [Sun, 28 Mar 2010 03:16:12 +0000 (14:16 +1100)]
s4-waf: don't auto-include bundled library headers

If we are going to use the system versions of these libraries then
we should not force the use of the non-system headers

10 years agos4-waf: set the bundled library extension for some libs
Andrew Tridgell [Sun, 28 Mar 2010 03:10:15 +0000 (14:10 +1100)]
s4-waf: set the bundled library extension for some libs

10 years agobuild: added support for controlling library types
Andrew Tridgell [Sun, 28 Mar 2010 03:09:36 +0000 (14:09 +1100)]
build: added support for controlling library types

added:
 --bundled-library-extension   : control library extension for bundled libraries
 --builtin-libraries           : force a list of libraries to be builtin (non-shared)

10 years agoldb-waf: rename libldb.so to libldb-s4.so if built as part of s4
Andrew Tridgell [Sun, 28 Mar 2010 02:01:36 +0000 (13:01 +1100)]
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.

10 years agobuild: add an ls -lR blib/ to the pidl build to help debug things in the build farm
Andrew Tridgell [Sun, 28 Mar 2010 01:45:46 +0000 (12:45 +1100)]
build: add an ls -lR blib/ to the pidl build to help debug things in the build farm

10 years agobuild: fixed build group for the PIDL tables generation
Andrew Tridgell [Sat, 27 Mar 2010 23:00:53 +0000 (10:00 +1100)]
build: fixed build group for the PIDL tables generation

10 years agos4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
Andrew Tridgell [Sat, 27 Mar 2010 22:48:49 +0000 (09:48 +1100)]
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them

10 years agobuild: mark python rules as being part of the "main" group
Andrew Tridgell [Sat, 27 Mar 2010 22:45:06 +0000 (09:45 +1100)]
build: mark python rules as being part of the "main" group

10 years agos4-waf: ensure all the ldb.pc.in vars are set
Andrew Tridgell [Sat, 27 Mar 2010 10:29:42 +0000 (21:29 +1100)]
s4-waf: ensure all the ldb.pc.in vars are set

10 years agobuild: throw an error on all bad variable substitutions
Andrew Tridgell [Sat, 27 Mar 2010 10:29:18 +0000 (21:29 +1100)]
build: throw an error on all bad variable substitutions

10 years agos4-waf: move the gnu dirs check to the generic wafsamba code
Andrew Tridgell [Sat, 27 Mar 2010 10:28:59 +0000 (21:28 +1100)]
s4-waf: move the gnu dirs check to the generic wafsamba code

10 years agobuild: substitute @VAR@ variables in pkgconfig .pc.in files
Andrew Tridgell [Sat, 27 Mar 2010 09:00:01 +0000 (20:00 +1100)]
build: substitute @VAR@ variables in pkgconfig .pc.in files

10 years agobuild: fixed the python path in installed python scripts
Andrew Tridgell [Sat, 27 Mar 2010 08:12:10 +0000 (19:12 +1100)]
build: fixed the python path in installed python scripts

10 years agos4-waf: install dcerpc_atsvc.pc
Andrew Tridgell [Sat, 27 Mar 2010 07:25:40 +0000 (18:25 +1100)]
s4-waf: install dcerpc_atsvc.pc

10 years agobuild: fixed destination name for pc_files
Andrew Tridgell [Sat, 27 Mar 2010 07:25:20 +0000 (18:25 +1100)]
build: fixed destination name for pc_files

10 years agos4-waf: enable the configuration and options for pidl
Andrew Tridgell [Sat, 27 Mar 2010 07:14:50 +0000 (18:14 +1100)]
s4-waf: enable the configuration and options for pidl

10 years agos4-waf: enable the pc_files in the build rules
Andrew Tridgell [Sat, 27 Mar 2010 07:14:33 +0000 (18:14 +1100)]
s4-waf: enable the pc_files in the build rules

10 years agobuild: added support for pc_files= for pkgconfig files
Andrew Tridgell [Sat, 27 Mar 2010 07:14:06 +0000 (18:14 +1100)]
build: added support for pc_files= for pkgconfig files

10 years agos4-waf: only build the pidl manpages if we have MakeMaker.pm
Andrew Tridgell [Sat, 27 Mar 2010 07:13:44 +0000 (18:13 +1100)]
s4-waf: only build the pidl manpages if we have MakeMaker.pm

10 years agos4-waf: build and install the PIDL manpages
Andrew Tridgell [Sat, 27 Mar 2010 05:48:03 +0000 (16:48 +1100)]
s4-waf: build and install the PIDL manpages

10 years agobuild: a hack to get perl to put its generated blib files in the build directory
Andrew Tridgell [Sat, 27 Mar 2010 05:47:43 +0000 (16:47 +1100)]
build: a hack to get perl to put its generated blib files in the build directory

perl wants to put generated files in the source directory, whereas waf wants
them in the build directory. Use a symlink to trick perl into putting them
in the right place

10 years agobuild: only depend on the actual pidl source files in the pidl rule
Andrew Tridgell [Sat, 27 Mar 2010 05:46:33 +0000 (16:46 +1100)]
build: only depend on the actual pidl source files in the pidl rule

We don't need to depend on the wscript files, or any backup editor
files.

10 years agos4-waf: install PIDL modules
Andrew Tridgell [Sat, 27 Mar 2010 04:24:00 +0000 (15:24 +1100)]
s4-waf: install PIDL modules

10 years agos4-waf: install the rest of our python files
Andrew Tridgell [Sat, 27 Mar 2010 04:12:56 +0000 (15:12 +1100)]
s4-waf: install the rest of our python files

10 years agobuild: support wildcard excludes in INSTALL_WILDCARD()
Andrew Tridgell [Sat, 27 Mar 2010 04:12:40 +0000 (15:12 +1100)]
build: support wildcard excludes in INSTALL_WILDCARD()

10 years agobuild: install build python modules correctly
Andrew Tridgell [Sat, 27 Mar 2010 03:50:43 +0000 (14:50 +1100)]
build: install build python modules correctly

10 years agos4-waf: install pidl
Andrew Tridgell [Sat, 27 Mar 2010 03:00:56 +0000 (14:00 +1100)]
s4-waf: install pidl

10 years agos4-waf: install the rest of the headers
Andrew Tridgell [Sat, 27 Mar 2010 02:56:05 +0000 (13:56 +1100)]
s4-waf: install the rest of the headers