wafsamba: require PYTHONHASHSEED=1 to be exported
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Mar 2022 11:00:03 +0000 (13:00 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 29 Mar 2022 23:31:38 +0000 (23:31 +0000)
This avoids a lot of trouble with random build failures,
if people try to use waf directly.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Mar 29 23:31:38 UTC 2022 on sn-devel-184

buildtools/wafsamba/wscript

index a4d6f3e5c49ecb9e3bca2491c2c1ebd88683ae53..8729b0829daa4b50e0ed3f59a82a6d2cc6e2fbd8 100644 (file)
@@ -8,6 +8,10 @@ import wafsamba
 from samba_utils import symlink
 from optparse import SUPPRESS_HELP
 
+phs = os.environ.get("PYTHONHASHSEED", None)
+if phs != "1":
+    raise Errors.WafError('''PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!''')
+
 # this forces configure to be re-run if any of the configure
 # sections of the build scripts change. We have to check
 # for this in sys.argv as options have not yet been parsed when