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:
parent
1f8bc7f232
commit
37f8d77967
@ -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}"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user