samba.git
14 years agobuild: use a target_in_list() function for more flexible builtin control
Andrew Tridgell [Tue, 6 Apr 2010 09:31:39 +0000 (19:31 +1000)]
build: use a target_in_list() function for more flexible builtin control

14 years agobuild: cope with binaries with subdir prefixes (for s3 waf build)
Andrew Tridgell [Mon, 5 Apr 2010 08:16:47 +0000 (18:16 +1000)]
build: cope with binaries with subdir prefixes (for s3 waf build)

14 years agos4-waf: don't need TOUCH_FILE() any more
Andrew Tridgell [Mon, 5 Apr 2010 01:41:37 +0000 (11:41 +1000)]
s4-waf: don't need TOUCH_FILE() any more

14 years agobuild: run distcheck in testwaf.sh
Andrew Tridgell [Mon, 5 Apr 2010 01:26:45 +0000 (11:26 +1000)]
build: run distcheck in testwaf.sh

14 years agos4-waf: add subdir argument to distcheck for source4
Andrew Tridgell [Mon, 5 Apr 2010 01:26:24 +0000 (11:26 +1000)]
s4-waf: add subdir argument to distcheck for source4

14 years agobuild: update version of waf to add subdir argument to distcheck
Andrew Tridgell [Mon, 5 Apr 2010 01:25:54 +0000 (11:25 +1000)]
build: update version of waf to add subdir argument to distcheck

14 years agos4-waf: replace TOUCH_FILE() with normal install rules
Andrew Tridgell [Mon, 5 Apr 2010 01:25:20 +0000 (11:25 +1000)]
s4-waf: replace TOUCH_FILE() with normal install rules

this allows it to work with 'waf uninstall'

14 years agobuild: simpler symlink_bin and symlink_lib methods
Andrew Tridgell [Mon, 5 Apr 2010 01:23:28 +0000 (11:23 +1000)]
build: simpler symlink_bin and symlink_lib methods

14 years agos4-waf: fixed waf distcheck for our standalone libs and s4
Andrew Tridgell [Sun, 4 Apr 2010 23:58:23 +0000 (09:58 +1000)]
s4-waf: fixed waf distcheck for our standalone libs and s4

14 years agos4-waf: added simple 'waf test' support for tdb, talloc and ldb
Andrew Tridgell [Sun, 4 Apr 2010 12:11:30 +0000 (22:11 +1000)]
s4-waf: added simple 'waf test' support for tdb, talloc and ldb

14 years agos4-waf: added python_dsdb from merge with master
Andrew Tridgell [Sun, 4 Apr 2010 11:29:34 +0000 (21:29 +1000)]
s4-waf: added python_dsdb from merge with master

14 years agobuild: fixed LOAD_ENVIRONMENT for out of tree builds
Andrew Tridgell [Sun, 4 Apr 2010 11:14:21 +0000 (21:14 +1000)]
build: fixed LOAD_ENVIRONMENT for out of tree builds

14 years agos4-waf: autogen-waf.sh for the standalone library builds
Andrew Tridgell [Sun, 4 Apr 2010 08:31:54 +0000 (18:31 +1000)]
s4-waf: autogen-waf.sh for the standalone library builds

14 years agos4-waf: new autogen-waf.sh
Andrew Tridgell [Sun, 4 Apr 2010 08:27:30 +0000 (18:27 +1000)]
s4-waf: new autogen-waf.sh

this one will work with the tdb, talloc, etc directories

14 years agos4-waf: use a common pattern for finding buildtools and libs
Andrew Tridgell [Sun, 4 Apr 2010 03:16:49 +0000 (13:16 +1000)]
s4-waf: use a common pattern for finding buildtools and libs

14 years agos4-waf: move to a universal method of recursing into subdirs
Andrew Tridgell [Sun, 4 Apr 2010 03:08:05 +0000 (13:08 +1000)]
s4-waf: move to a universal method of recursing into subdirs

This works with both standalone lib builds and bundled builds

14 years agos4-waf: fixed finding of buildtools and srcdir
Andrew Tridgell [Sun, 4 Apr 2010 01:40:05 +0000 (11:40 +1000)]
s4-waf: fixed finding of buildtools and srcdir

14 years agoldb-waf: fixed buildtools path
Andrew Tridgell [Sun, 4 Apr 2010 01:02:15 +0000 (11:02 +1000)]
ldb-waf: fixed buildtools path

14 years agos4-waf: avoid having to run waf configure before waf dist
Andrew Tridgell [Sun, 4 Apr 2010 01:00:42 +0000 (11:00 +1000)]
s4-waf: avoid having to run waf configure before waf dist

This should be useful for building tarballs from a clean checkout

14 years agobuild: nicer error msg when git ls-files fails
Andrew Tridgell [Sun, 4 Apr 2010 00:23:43 +0000 (10:23 +1000)]
build: nicer error msg when git ls-files fails

14 years agos4-waf: allow standalone tarball build of libraries
Andrew Tridgell [Sun, 4 Apr 2010 00:18:39 +0000 (10:18 +1000)]
s4-waf: allow standalone tarball build of libraries

14 years agos4-waf: added 'waf dist' to our standalone libs as well
Andrew Tridgell [Sun, 4 Apr 2010 00:06:34 +0000 (10:06 +1000)]
s4-waf: added 'waf dist' to our standalone libs as well

14 years agos4-waf: added 'waf dist' to build the tarball
Andrew Tridgell [Sat, 3 Apr 2010 23:57:33 +0000 (09:57 +1000)]
s4-waf: added 'waf dist' to build the tarball

14 years agobuild: removed some unused imports found by pyflakes
Andrew Tridgell [Sat, 3 Apr 2010 22:04:39 +0000 (08:04 +1000)]
build: removed some unused imports found by pyflakes

thanks to Jelmer for pointing me at pyflakes

14 years agotalloc-waf: install talloc.pc if standalone
Andrew Tridgell [Sat, 3 Apr 2010 12:26:35 +0000 (23:26 +1100)]
talloc-waf: install talloc.pc if standalone

14 years agobuild: fixed the expansions in pkgconfig files
Andrew Tridgell [Sat, 3 Apr 2010 12:26:21 +0000 (23:26 +1100)]
build: fixed the expansions in pkgconfig files

thanks to Jelmer for the hint on this

14 years agobuild: fixed DESTDIR for TOUCH_FILE()
Andrew Tridgell [Sat, 3 Apr 2010 11:46:32 +0000 (22:46 +1100)]
build: fixed DESTDIR for TOUCH_FILE()

14 years agobuild: waf update to fix macos build error
Andrew Tridgell [Sat, 3 Apr 2010 11:25:33 +0000 (22:25 +1100)]
build: waf update to fix macos build error

14 years agobuild: try to fix the python link problem on SerNet-imini
Andrew Tridgell [Sat, 3 Apr 2010 10:21:24 +0000 (21:21 +1100)]
build: try to fix the python link problem on SerNet-imini

14 years agobuild: use waf from waf-svn.git repo
Andrew Tridgell [Sat, 3 Apr 2010 03:11:31 +0000 (14:11 +1100)]
build: use waf from waf-svn.git repo

Added README explaining where waf comes from, and where to get the
upstream sources and the exact version we use in Samba

14 years agobuild: try the generic C compiler on hpux if gcc not found
Andrew Tridgell [Fri, 2 Apr 2010 23:41:44 +0000 (10:41 +1100)]
build: try the generic C compiler on hpux if gcc not found

14 years agobuild: update wav-svn
Andrew Tridgell [Fri, 2 Apr 2010 22:41:17 +0000 (09:41 +1100)]
build: update wav-svn

this version works around the tarfile problem on irix

14 years agobuild: added 'generic' cc support and a simple irix cc support module
Andrew Tridgell [Fri, 2 Apr 2010 22:19:57 +0000 (09:19 +1100)]
build: added 'generic' cc support and a simple irix cc support module

these will let us get past the 'detect cc' stage and try a build. It
also makes for a reasonable template for new ports

14 years agobuild: initial version of a tru64 compiler module
Andrew Tridgell [Fri, 2 Apr 2010 10:32:42 +0000 (21:32 +1100)]
build: initial version of a tru64 compiler module

this doesn't do shared libs yet, but at least configure passes

14 years agopidl-waf: disable pidl manpages
Andrew Tridgell [Fri, 2 Apr 2010 10:27:09 +0000 (21:27 +1100)]
pidl-waf: disable pidl manpages

it's still causing trouble in the build farm

14 years agopidl-waf: better handling of the man page generation
Andrew Tridgell [Fri, 2 Apr 2010 09:55:37 +0000 (20:55 +1100)]
pidl-waf: better handling of the man page generation

we now avoid leaving build files in the source tree

14 years agopidl-waf: build pidl man pages and parsers separately
Andrew Tridgell [Fri, 2 Apr 2010 09:18:57 +0000 (20:18 +1100)]
pidl-waf: build pidl man pages and parsers separately

this should prevent gratuitious builds

14 years agobuild: don't depend on the blib/ files in SAMBA_PIDL()
Andrew Tridgell [Fri, 2 Apr 2010 08:57:32 +0000 (19:57 +1100)]
build: don't depend on the blib/ files in SAMBA_PIDL()

14 years agotalloc-waf: match version number with main build
Andrew Tridgell [Fri, 2 Apr 2010 08:19:12 +0000 (19:19 +1100)]
talloc-waf: match version number with main build

14 years agobuild: loop until all object reductions are complete
Andrew Tridgell [Fri, 2 Apr 2010 07:16:23 +0000 (18:16 +1100)]
build: loop until all object reductions are complete

we will issue a warning if any object duplication remains

14 years agobuild: make sure the directory exists in TOUCH_FILE()
Andrew Tridgell [Fri, 2 Apr 2010 02:10:14 +0000 (13:10 +1100)]
build: make sure the directory exists in TOUCH_FILE()

14 years agobuild: nicer display of command type for prototypes and generators
Andrew Tridgell [Fri, 2 Apr 2010 02:06:35 +0000 (13:06 +1100)]
build: nicer display of command type for prototypes and generators

14 years agos4-waf: create a blank __init__.py in samba/external
Andrew Tridgell [Fri, 2 Apr 2010 01:26:27 +0000 (12:26 +1100)]
s4-waf: create a blank __init__.py in samba/external

needed for the external lib loader

14 years agos4-waf: fixed install location of external python libs
Andrew Tridgell [Fri, 2 Apr 2010 01:20:23 +0000 (12:20 +1100)]
s4-waf: fixed install location of external python libs

this merges with jelmers recent changes in master

14 years agobuild: a bit more information for tracking --target deps
Andrew Tridgell [Fri, 2 Apr 2010 00:55:07 +0000 (11:55 +1100)]
build: a bit more information for tracking --target deps

14 years agos4-waf: format-subunit and filter-subunit are in python now
Andrew Tridgell [Fri, 2 Apr 2010 00:54:24 +0000 (11:54 +1100)]
s4-waf: format-subunit and filter-subunit are in python now

14 years agos4-waf: added new install system for external python libs
Andrew Tridgell [Thu, 1 Apr 2010 21:47:38 +0000 (08:47 +1100)]
s4-waf: added new install system for external python libs

14 years agos4-waf: filter-subunit has been renamed
Andrew Tridgell [Thu, 1 Apr 2010 13:15:02 +0000 (00:15 +1100)]
s4-waf: filter-subunit has been renamed

14 years agos4-waf: updates for the new python installer from jelmer
Andrew Tridgell [Thu, 1 Apr 2010 13:13:26 +0000 (00:13 +1100)]
s4-waf: updates for the new python installer from jelmer

14 years agobuild: much simpler and faster rpath install handler
Andrew Tridgell [Thu, 1 Apr 2010 11:19:32 +0000 (22:19 +1100)]
build: much simpler and faster rpath install handler

This avoids creating additional task generators at build time, and
instead moves all the rpath logic into samba_install.py where it is
triggered by the install_lib and install_bin features

14 years agobuild: only link install targets at install time
Andrew Tridgell [Thu, 1 Apr 2010 01:30:56 +0000 (12:30 +1100)]
build: only link install targets at install time

14 years agobuild: enable nothreads workaround only with WAF_NOTHREADS=1
Andrew Tridgell [Thu, 1 Apr 2010 06:24:02 +0000 (17:24 +1100)]
build: enable nothreads workaround only with WAF_NOTHREADS=1

14 years agobuild: fixed the dependencies of the install targets
Andrew Tridgell [Wed, 31 Mar 2010 22:49:46 +0000 (09:49 +1100)]
build: fixed the dependencies of the install targets

we want the install targets to have identical calculated dependencies
to the build targets.

14 years agos4-waf: disable MAKEMAKER until a dependency problem is solved
Andrew Tridgell [Wed, 31 Mar 2010 12:14:50 +0000 (23:14 +1100)]
s4-waf: disable MAKEMAKER until a dependency problem is solved

14 years agobuild: fixed the task counter when nothreads is used
Andrew Tridgell [Wed, 31 Mar 2010 10:26:33 +0000 (21:26 +1100)]
build: fixed the task counter when nothreads is used

14 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

14 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.

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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!

14 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

14 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

14 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

14 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()

14 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

14 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

14 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

14 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.

14 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

14 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

14 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!

14 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.

14 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

14 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

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

14 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

14 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

14 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

14 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.

14 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

14 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

14 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

14 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

14 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

14 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()

14 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

14 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.

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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