summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba/samba_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* buildtools: Use separate storage for each function in runoncePetr Viktorin2015-02-171-1/+1
| | | | | | | | | | | | | The runonce decorator used shared storage for all functions, and dispatched only on arguments, so a call would be eliminated if a different runonce function had already been called with the same arguments. Use separate storage for each decorated function. Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Simo Sorce <simo@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* wafsamba: let TO_LIST(mylist) return a copy of mylistStefan Metzmacher2015-01-081-1/+2
| | | | | | | | | | | | | In most cases we have TO_LIST(mystring) which returns an independent list. newlist = TO_LIST(mylist) returned just a reference to mylist. Which means newlist.append("end") would also modify mylist. TO_LIST() should always return an independent list. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* build: test the generic md5 function after importing it from hashlibBjörn Jacke2014-01-081-1/+1
| | | | | | | | | | otherwise we used the one from md5 which lead to the following warning on SerNet-imini: the md5 module is deprecated; use hashlib instead import md5 Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: replace try:except: case with explicit comment about FIPS modeAlexander Bokovoy2012-12-081-8/+7
| | | | | | | | | | | Since exceptions will be caught be outer try:except: pair anyway, mark the test of MD5 code by the comment that explains why we need to really test it. Do it for both hashlib.md5 and md5 modules. Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Sat Dec 8 18:41:07 CET 2012 on sn-devel-104
* wafsamba: Make sure md5 is really work before using it or overriding the ↵Alexander Bokovoy2012-12-081-0/+8
| | | | | | | | | | | | | | | hash function In FIPS mode importing md5 Python module will not cause any error but calling md5.md5() function will throw ValueError since md5 is not available. Make sure md5.md5() actually works and if not, fall back to use hash replacement that we already have in wafsamba. Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Sat Dec 8 13:30:07 CET 2012 on sn-devel-104
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-271-5/+5
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* wafsamba: ensure TO_LIST does not fail with empty stringAlexander Bokovoy2012-05-231-0/+2
|
* Introduce system MIT krb5 build with --with-system-mitkrb5 option.Alexander Bokovoy2012-05-231-1/+10
| | | | | | | | | | | | | | | | | System MIT krb5 build also enabled by specifying --without-ad-dc When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level configure in WAF build we are trying to detect and use system-wide MIT krb5 libraries. As result, Samba 4 DC functionality will be disabled due to the fact that it is currently impossible to implement embedded KDC server with MIT krb5. Thus, --with-system-mitkrb5/--without-ad-dc build will only produce * Samba 4 client libraries and their Python bindings * Samba 3 server (smbd, nmbd, winbindd from source3/) * Samba 3 client libraries In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture. This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
* waf: samba-specific methods should have capitalized names, change ↵Alexander Bokovoy2012-04-141-3/+3
| | | | | | | | | | | process_separate_rule to follow Changing process_separate_rule to PROCESS_SEPARATE_RULE. Thanks Thomas Nagy for review. Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Sat Apr 14 08:55:43 CEST 2012 on sn-devel-104
* wafsamba: add support for separate rules in stagesAlexander Bokovoy2012-04-131-1/+24
| | | | | | | | | | | | | | | bld.process_separate_rule(rule) and conf.process_separate_rule(rule) will cause WAF to import wscript_<stage>_<rule> script into current context. Files wscript_<configure|build>_<rule> should exist in the current directory. This can be used to provide rules specific for alternative implementations of certain libraries Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Fri Apr 13 18:34:39 CEST 2012 on sn-devel-104
* wafsamba: Add tests for unique_list, subst_vars_error.Jelmer Vernooij2012-02-121-2/+1
|
* wafsamba: Cope with not everything having a final_libs attribute.Jelmer Vernooij2011-12-051-1/+1
|
* wafsamba: Use final_libs list to determine if a target needs private ↵Jelmer Vernooij2011-12-051-1/+1
| | | | libraries, rather than direct dependencies list.
* build: explain the passing of make options to wafAndrew Tridgell2011-10-201-0/+7
| | | | | | | | add a comment explaining how we pass make command line options into waf Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 20 07:24:02 CEST 2011 on sn-devel-104
* waf: ensure that MAKEFLAGS is set before parsing itAndrew Tridgell2011-03-151-0/+2
|
* waf: make mkdir_p() a bit more robustAndrew Tridgell2011-03-151-1/+6
|
* waf: support building libraries with a directory prefixAndrew Tridgell2011-02-181-2/+9
| | | | | | | SAMBA_LIBRARY('libsmb/smbclient') can now be built, which distinguishes it from the binary 'smbclient' Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: make mkdir_p on a empty string not recurse foreverAndrew Tridgell2010-12-091-1/+1
|
* waf-abi: auto-generate per-symbol versions from ABI filesAndrew Tridgell2010-12-091-0/+3
| | | | | | | | | | | | | This changes our version-script generation to use the ABI files that are saved in git with each version number change of our public libraries. We use these ABI files to generate a linker version script that gives the exact version number that each symbol was introduced. This provides us with automatic fine grained symbol versioning. Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* wafsamba: Fix indentation.Jelmer Vernooij2010-11-301-1/+1
| | | | | | | | Without this change we'd exclude the rpath for private libraries whenever the first dependency of a subsystem was a public library. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Nov 30 13:08:04 CET 2010 on sn-devel-104
* wafsamba: Only use private library rpath when linking against privateJelmer Vernooij2010-11-301-2/+12
| | | | | | | libraries. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Nov 30 02:23:37 CET 2010 on sn-devel-104
* waf: Put private libraries in a separate directory when building.Jelmer Vernooij2010-11-051-3/+4
| | | | Thanks to Tridge for pointing out what exactly I had to change. :-)
* wafsamba: Support expanding variables in LIBDIR/PRIVATELIBDIR variables.Jelmer Vernooij2010-11-051-2/+2
|
* Add --disable-rpath-private-install flag.Jelmer Vernooij2010-11-051-2/+5
|
* samba_utils: Use LIBDIR rather than assuming it is set to $prefix/lib.Jelmer Vernooij2010-11-051-1/+1
|
* waf: use Utils.WafError() instead of raising an AssertionErrorAndrew Tridgell2010-10-301-2/+1
| | | | this produces clearer output on errors
* waf: separate out get_tgt_list()Andrew Tridgell2010-10-301-0/+19
| | | | | | | this is a useful function for the new symbols code, so separate it out of samba_deps.py Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: cope with libraries with a specified version numberAndrew Tridgell2010-10-211-0/+3
| | | | | this fixes a problem with libnss_winbind.so.2. Thanks to Jelmer for spotting this.
* waf: automap shared library names from .so to the right extensionAndrew Tridgell2010-10-191-0/+39
| | | | this should help with MacOSX .dylib libraries
* waf: fixed some python3.x portability issuesAndrew Tridgell2010-10-061-0/+4
| | | | | these have crept into the tree over time. Maybe we should add testing of a range of python versions to autobuild?
* wafsamba: Some reformatting.Jelmer Vernooij2010-10-031-3/+1
|
* waf: add delimiter argument to TO_LIST.Günther Deschner2010-09-271-2/+2
| | | | Guenther
* waf: fixed make test with TESTS="test1 test2"Andrew Tridgell2010-09-041-1/+3
| | | | | when multiple tests are specified, make escapes the space in MAKEFLAGS with a backslash, so we need to use shlex.split()
* build: allow LOAD_ENVIRONMENT() to pass when no configure has been runAndrew Tridgell2010-06-291-2/+5
| | | | this returns an empty environment
* buildtools/wafsamba: fix build group orderingThomas Nagy2010-05-131-2/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: added a reconfigure targetAndrew Tridgell2010-05-061-0/+10
| | | | | 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
* build: use the waf patterns for RPATHAndrew Tridgell2010-05-031-4/+2
| | | | | | | | | | 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
* build: fixed a python-3 indent errorAndrew Tridgell2010-04-191-1/+1
|
* build: support make V=1 for verbose buildAndrew Tridgell2010-04-181-1/+10
| | | | this also adds support for other options, such as "make TESTS=testpattern"
* build: added ABI checking to the WAF buildAndrew Tridgell2010-04-181-0/+36
| | | | See http://wiki.samba.org/index.php/Waf#ABI_Checking for details
* build: throw a fatal error for duplicate target declarationsAndrew Tridgell2010-04-151-4/+4
| | | | | | | We don't want someone to declare two subsystems of the same name but with different source files Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* build: try to honor MAKEFLAGS from makeAndrew Tridgell2010-04-141-0/+26
| | | | | | | | | This means "make -j" and "make -k" now do roughly what is expected make -j will use the number of CPUs on the system, regardless of the number after the -j (as MAKEFLAGS doesn't contain that value). make -k will will continue on errors
* build: allow target upgrades from EMPTY to SYSLIBAndrew Tridgell2010-04-121-1/+1
| | | | | | | | A library may be initially set as empty if it wasn't needed for a list of functions in CHECK_FUNCS_IN(). A later check may require the library. Pair-Programmed-With: Kai Blin <kai@samba.org>
* build: use Logs.error() and Logs.info() instead of print()Andrew Tridgell2010-04-091-6/+6
| | | | | this gives appropriate colors on output, and ensures it works with compiler output
* build: make the handling of relative paths a bit sanerAndrew Tridgell2010-04-081-1/+1
| | | | | | This should fix a problem that Anatoliy has struck with the PIDL rules. It also brings us much closer to a working build for a true out of tree build (ie. with waf configure -b /tmp/build)
* build: allow the waf build to work with python 3.0 and 3.1Thomas Nagy2010-04-081-3/+3
| | | | | | Python 3.x is a bit fussier about print statements and indentation. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-waf: replace TOUCH_FILE() with normal install rulesAndrew Tridgell2010-04-061-13/+0
| | | | this allows it to work with 'waf uninstall'
* build: fixed LOAD_ENVIRONMENT for out of tree buildsAndrew Tridgell2010-04-061-1/+2
|
* s4-waf: move to a universal method of recursing into subdirsAndrew Tridgell2010-04-061-0/+32
| | | | This works with both standalone lib builds and bundled builds
* build: fixed DESTDIR for TOUCH_FILE()Andrew Tridgell2010-04-061-1/+6
|