Skip to content

Commit

Permalink
build: Workaround python3 hash order issues (for now)
Browse files Browse the repository at this point in the history
This works around python3 having a new hash seed each time it starts to allow
a second "make" not to rebuild the world.

This should probably be reverted once we find the hash that is causing
the issue, but should reduce frustration for now.

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
  • Loading branch information
abartlet committed Dec 13, 2018
1 parent a42f18c commit 19a4d3c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PYTHON?=python3
WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
WAF=WAF_MAKE=1 $(WAF_BINARY)
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)

all:
$(WAF) build
Expand Down
2 changes: 1 addition & 1 deletion lib/ldb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PYTHON?=python3
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
WAF=WAF_MAKE=1 $(WAF_BINARY)
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)

all:
$(WAF) build
Expand Down
2 changes: 1 addition & 1 deletion lib/replace/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PYTHON?=python3
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
WAF=WAF_MAKE=1 $(WAF_BINARY)
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)

all:
$(WAF) build
Expand Down
2 changes: 1 addition & 1 deletion lib/talloc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PYTHON?=python3
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
WAF=WAF_MAKE=1 $(WAF_BINARY)
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)

all:
$(WAF) build
Expand Down
2 changes: 1 addition & 1 deletion lib/tdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PYTHON?=python3
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
WAF=WAF_MAKE=1 $(WAF_BINARY)
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)

all:
$(WAF) build
Expand Down
2 changes: 1 addition & 1 deletion lib/tevent/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# simple makefile wrapper to run waf
PYTHON?=python3
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
WAF=WAF_MAKE=1 $(WAF_BINARY)
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)

all:
$(WAF) build
Expand Down

0 comments on commit 19a4d3c

Please sign in to comment.