diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-03-28 12:59:12 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2022-03-29 22:32:32 +0000 |
commit | 22c46d9f41876d9ec7187148e658d1692bf37cdd (patch) | |
tree | 7af663a64c78a033fbbe4b7cf5e01ecb8135bb17 | |
parent | a6b1e4b5766205b7337e0e4b00944184289bfc36 (diff) | |
download | samba-22c46d9f41876d9ec7187148e658d1692bf37cdd.tar.gz |
configure/Makefile: export PYTHONHASHSEED=1 in all 'configure/Makefile' scripts
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | buildtools/scripts/Makefile.waf | 4 | ||||
-rwxr-xr-x | buildtools/scripts/configure.waf | 11 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | ctdb/Makefile | 2 | ||||
-rwxr-xr-x | ctdb/configure | 7 | ||||
-rwxr-xr-x | lib/ldb/configure | 7 | ||||
-rwxr-xr-x | lib/replace/configure | 7 | ||||
-rwxr-xr-x | lib/talloc/configure | 7 | ||||
-rwxr-xr-x | lib/tdb/configure | 7 | ||||
-rwxr-xr-x | lib/tevent/configure | 7 |
10 files changed, 58 insertions, 5 deletions
diff --git a/buildtools/scripts/Makefile.waf b/buildtools/scripts/Makefile.waf index 5fc939c99e0..a15a5f87607 100644 --- a/buildtools/scripts/Makefile.waf +++ b/buildtools/scripts/Makefile.waf @@ -1,7 +1,7 @@ # simple makefile wrapper to run waf -WAF_BINARY=BUILDTOOLS/bin/waf -WAF=WAF_MAKE=1 $(WAF_BINARY) +WAF_BINARY=$(PYTHON) BUILDTOOLS/bin/waf +WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY) all: $(WAF) build diff --git a/buildtools/scripts/configure.waf b/buildtools/scripts/configure.waf index a7d8d1dbd64..ccb62849a54 100755 --- a/buildtools/scripts/configure.waf +++ b/buildtools/scripts/configure.waf @@ -1,6 +1,6 @@ #!/bin/sh -PREVPATH=`dirname $0` +PREVPATH=$(dirname $0) WAF=BUILDTOOLS/bin/waf @@ -9,6 +9,13 @@ WAF=BUILDTOOLS/bin/waf JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd BUILDPATH || exit 1 -$WAF configure "$@" || exit 1 +$PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/configure b/configure index 237d2306f79..ef80911d944 100755 --- a/configure +++ b/configure @@ -12,6 +12,10 @@ export JOBS # Make sure we don't have any library preloaded. unset LD_PRELOAD +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/ctdb/Makefile b/ctdb/Makefile index ec362e29408..5dbc7acdc54 100644 --- a/ctdb/Makefile +++ b/ctdb/Makefile @@ -1,7 +1,7 @@ # simple makefile wrapper to run waf WAF_BINARY=$(PYTHON) ../buildtools/bin/waf -WAF=WAF_MAKE=1 $(WAF_BINARY) +WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY) all: $(WAF) build diff --git a/ctdb/configure b/ctdb/configure index dbb0c1446b5..48b786b1612 100755 --- a/ctdb/configure +++ b/ctdb/configure @@ -10,6 +10,13 @@ WAF=buildtools/bin/waf JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/lib/ldb/configure b/lib/ldb/configure index 8979f07581b..2ed32403fd7 100755 --- a/lib/ldb/configure +++ b/lib/ldb/configure @@ -16,6 +16,13 @@ fi JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/lib/replace/configure b/lib/replace/configure index d0ab6685fbe..af761854ef4 100755 --- a/lib/replace/configure +++ b/lib/replace/configure @@ -16,6 +16,13 @@ fi JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/lib/talloc/configure b/lib/talloc/configure index d0ab6685fbe..af761854ef4 100755 --- a/lib/talloc/configure +++ b/lib/talloc/configure @@ -16,6 +16,13 @@ fi JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/lib/tdb/configure b/lib/tdb/configure index d0ab6685fbe..af761854ef4 100755 --- a/lib/tdb/configure +++ b/lib/tdb/configure @@ -16,6 +16,13 @@ fi JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH diff --git a/lib/tevent/configure b/lib/tevent/configure index 63e4a2a00b5..7b972bd0bc8 100755 --- a/lib/tevent/configure +++ b/lib/tevent/configure @@ -16,6 +16,13 @@ fi JOBS=1 export JOBS +# Make sure we don't have any library preloaded. +unset LD_PRELOAD + +# Make sure we get stable hashes +PYTHONHASHSEED=1 +export PYTHONHASHSEED + cd . || exit 1 $PYTHON $WAF configure "$@" || exit 1 cd $PREVPATH |