[applied] configure: Disable abidb on python version < 3.9
Commit Message
Hello,
When running on EL8, I am seeing a number of issues in the
abidb-related tests. As I haven't tested abidb on EL8, I am disabling
it on those systems for now.
* configure.ac: Disable abidb on systems that have python version
less than 3.9.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to the mainline
---
configure.ac | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
@@ -890,7 +890,18 @@ if test x$PYTHON3_INTERPRETER != xno -a x$ENABLE_ABIDB != xno; then
[FOUND_ALL_PYTHON_MODULES=yes],
[FOUND_ALL_PYTHON_MODULES=no])
- if test x$FOUND_ALL_PYTHON_MODULES = xno; then
+ $PYTHON3_INTERPRETER -c "import sys; sys.exit(0 if sys.version_info >= (3, 9) else 1)"
+ if test $? -ne 0; then
+ AC_MSG_NOTICE([Python 3 version 3.9 or higher is required for abidb])
+ AC_MSG_WARN([disabling abidb as a result])
+ ENABLE_ABIDB=no
+ else
+ AC_MSG_NOTICE([Found Python 3 version at 3.9 or higher. Great for abidb!])
+ fi
+
+ if test x$ENABLE_ABIDB = xno; then
+ pass
+ elif test x$ENABLE_ABIDB != xno -a x$FOUND_ALL_PYTHON_MODULES = xno; then
AC_MSG_NOTICE([missing python modules: $MISSING_PYTHON_MODULES])
AC_MSG_WARN([disabling abidb as a result])
ENABLE_ABIDB=no