mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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
This commit is contained in:
parent
aa02cf3c44
commit
420bbb1d92
@ -8,6 +8,10 @@ import wafsamba
|
|||||||
from samba_utils import symlink
|
from samba_utils import symlink
|
||||||
from optparse import SUPPRESS_HELP
|
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
|
# this forces configure to be re-run if any of the configure
|
||||||
# sections of the build scripts change. We have to check
|
# sections of the build scripts change. We have to check
|
||||||
# for this in sys.argv as options have not yet been parsed when
|
# for this in sys.argv as options have not yet been parsed when
|
||||||
|
Loading…
x
Reference in New Issue
Block a user