Set $LD_LIBRARY_PATH when asserting libmpdec version

Without $LD_LIBRARY_PATH, the test uses installed libpython,
which might be older Python version when updating
or missing entirely when building --with bootstrap.

Related: rhbz#1950291
This commit is contained in:
Miro Hrončok 2021-05-19 14:58:45 +02:00 committed by Charalampos Stratakis
parent 1f8bc7f232
commit 37f8d77967
1 changed files with 1 additions and 1 deletions

View File

@ -1204,7 +1204,7 @@ done
# Verify that the bundled libmpdec version python was compiled with, is the same version we have virtual
# provides for in the SPEC.
test "$($(pwd)/build/optimized/python -c 'import decimal; print(decimal.__libmpdec_version__)')" = \
test "$(LD_LIBRARY_PATH=$(pwd)/build/optimized $(pwd)/build/optimized/python -c 'import decimal; print(decimal.__libmpdec_version__)')" = \
"%{libmpdec_version}"