From 71c410dfa916461e5ded386b8585a028e72e3337 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Thu, 23 Jul 2020 08:09:55 +0200 Subject: [PATCH] Disable Python hash seed randomization in brp-python-bytecompile This change should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078 --- brp-python-bytecompile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brp-python-bytecompile b/brp-python-bytecompile index c6afd1e..fbbd02b 100755 --- a/brp-python-bytecompile +++ b/brp-python-bytecompile @@ -114,6 +114,10 @@ fi # For example, below /usr/lib/python2.6/, we're targeting /usr/bin/python2.6 # and below /usr/lib/python3.1/, we're targeting /usr/bin/python3.1 +# Disable Python hash seed randomization +# This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078 +export PYTHONHASHSEED=0 + shopt -s nullglob for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]+$"`; do