From dccd43b6f8e872cb067728237903910314bc9d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 19 May 2021 14:58:45 +0200 Subject: [PATCH] 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. --- python3.9.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3.9.spec b/python3.9.spec index a077332..0a2b7c2 100644 --- a/python3.9.spec +++ b/python3.9.spec @@ -1207,7 +1207,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}"