summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-03-28 13:00:03 +0200
committerAndrew Bartlett <abartlet@samba.org>2022-03-29 23:31:38 +0000
commit420bbb1d92fd2a28725b53f425ba3d214831b660 (patch)
tree774ca44f8b1679df32be1a73847ef39ea6b6a5ff /buildtools
parentaa02cf3c4449cb0a22da8f359f0b3edc4f1d9bb7 (diff)
downloadsamba-420bbb1d92fd2a28725b53f425ba3d214831b660.tar.gz
wafsamba: require PYTHONHASHSEED=1 to be exported
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
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index a4d6f3e5c49..8729b0829da 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -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