1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib
Thomas Nagy 963ccff806 build:wafsamba: Remove samba_utils.runonce
The decorator order matters in the following:
"""
@runonce
@conf
function()
"""

First, the @conf decorator binds the function to the configuration context
and then returns the same function. The @runonce decorator then takes
the output function and replaces it by another that performs caching. This new
function remains in the current script and is never bound to the configuration
context, so caching never occurs.

The declaration would have been correct if written like this:
"""
@conf
@runonce
function()
"""

Yet the decorator @run_once does not keep the function name (__name__), so the
annotation with @conf would fail. The straightforward approach is to remove
all the incorrect @runonce occurrences.

Besides that, the function Utils.run_once is already present in the Waf library,
and is sufficient for the current needs of the Samba code (it caches only the
first argument). Therefore samba_utils.runonce can be safely replaced by
Utils.run_once, which is also present in Waf 1.8.

Note: at runtime, only SETUP_BUILD_GROUPS seems to actually use caching.

Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Uri Simchoni uri@samba.org
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-11-06 10:37:24 +01:00
..
addns lib: Fix CID 1273234 Untrusted value as argument 2015-06-23 22:12:08 +02:00
afs waf: add --with-fake-kaserver option 2014-06-04 20:09:38 +02:00
async_req selftest: Fix memset parameters in test for async_connect_send() 2015-10-21 17:31:00 +02:00
compression lib/compression/tests: add missing #include "torture/local/proto.h" 2014-04-02 09:03:44 +02:00
crypto lib/crypto: make it possible to use only parts of aes.[ch] 2015-08-27 23:23:54 +02:00
dbwrap lib: dbwrap_local_open references loadparm_context 2015-10-28 16:00:20 +01:00
krb5_wrap krb5-wrap: Use the principal returned by the KDC to create the ccache 2015-07-30 10:24:26 +02:00
ldb ldb: version 1.1.23 2015-11-05 21:11:35 +01:00
ldb-samba ldb: Fix a "ignoring return value" warning 2015-10-28 19:04:15 +01:00
nss_wrapper build: Build *_wrapper without -DNDEBUG for in-tree use 2015-10-16 16:36:22 +02:00
param lib/param: fix hiding of FLAG_SYNONYM values 2015-09-21 01:50:15 +02:00
replace build:wafsamba: Remove samba_utils.runonce 2015-11-06 10:37:24 +01:00
resolv_wrapper build: Build *_wrapper without -DNDEBUG for in-tree use 2015-10-16 16:36:22 +02:00
smbconf lib/smbconf: remove const warning 2014-11-14 23:27:05 +01:00
socket Fix bug # 9666 - Broken filtering of link-local addresses. 2013-02-28 20:56:57 +01:00
socket_wrapper build: Build *_wrapper without -DNDEBUG for in-tree use 2015-10-16 16:36:22 +02:00
talloc talloc: version 2.1.5 2015-11-05 18:04:23 +01:00
tdb tdb: version 1.3.8 2015-11-05 18:04:23 +01:00
tdb_wrap tdb_wrap: Use a struct initializer 2015-07-23 14:39:18 +02:00
tdr lib/tdr/tests: add missing #include "torture/local/proto.h" 2014-04-02 09:03:44 +02:00
tevent tevent: version 0.9.26 2015-11-05 18:04:23 +01:00
texpect texpect: undefined symbol rep_fprintf 2015-10-22 14:28:17 +02:00
torture lib/torture: add torture_assert_hresult_{equal,ok} macros. 2015-07-31 01:55:28 +02:00
tsocket lib/tsocket: fix non-blockging connect() error handling 2015-10-21 23:13:17 +02:00
uid_wrapper uwrap: Bump version to 1.2.0 2015-11-05 12:30:02 +01:00
util Fix up some aesthetics ... ie, align things as they were intended. 2015-11-06 10:36:37 +01:00
README subunit: Update to newer upstream version. 2010-03-29 18:05:29 +02:00
wscript_build Remove 'external' python module support code - use the third_party directory instead. 2015-03-06 04:41:48 +01:00

compression - Various compression algorithms (MSZIP, lzxpress)
dnspython - Python module for working with DNS.
nss_wrapper - Wrapper for the user and group NSS API allowing the use 
              of other data sources.
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions 
          not provided by the host platform.
socket_wrapper - Wrapper library allowing TCP/IP traffic to be redirected 
                 over Unix domain sockets.
subunit - Utilities and bindings for working with the Subunit test result 
          reporting protocol.
talloc - Hierarchical pool based memory allocator 
tdb - Simple but fast key/value database library, supporting multiple writers
torture - Simple unit testing helper library