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
This commit is contained in:
Lumir Balhar 2020-07-23 08:09:55 +02:00
parent b983c2118b
commit 71c410dfa9
1 changed files with 4 additions and 0 deletions

View File

@ -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