From e70670addcc1308283a1c693c771c1d1f3b7ae50 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Mon, 9 Dec 2024 17:38:49 +0100 Subject: [PATCH] m4: Fix check for Python 3.6 version. The check is still looking for Pythn 3.4, instead of 3.6. Also, RHEL documentation points to EPEL for RHEL 6, but it only contains Python 3.4, so remove the pointer. Fixes: 4d55a364ff60 ("python: Add async DNS support.") Acked-by: Eelco Chaudron Signed-off-by: Ilya Maximets --- Documentation/intro/install/rhel.rst | 6 ++---- m4/openvswitch.m4 | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Documentation/intro/install/rhel.rst b/Documentation/intro/install/rhel.rst index e442fca0c..36ab1341c 100644 --- a/Documentation/intro/install/rhel.rst +++ b/Documentation/intro/install/rhel.rst @@ -93,10 +93,8 @@ If python3-sphinx package is not available in your version of RHEL, you can install it via pip with 'pip install sphinx'. Open vSwitch requires python 3.6 or newer which is not available in older -distributions. In the case of RHEL 6.x and its derivatives, one option is -to install python34 from `EPEL`_. - -.. _EPEL: https://fedoraproject.org/wiki/EPEL +distributions. For those, one option is to build and install required version +from source. .. _rhel-bootstrapping: diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index b93516557..b226c851b 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -374,7 +374,7 @@ AC_DEFUN([OVS_CHECK_PYTHON3], IFS=$ovs_save_IFS test -z "$dir" && dir=. if test -x "$dir"/"$binary" && "$dir"/"$binary" -c 'import sys -if sys.hexversion >= 0x03040000 and sys.hexversion < 0x04000000: +if sys.hexversion >= 0x03060000 and sys.hexversion < 0x04000000: sys.exit(0) else: sys.exit(1)'; then