diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-10-11 20:41:26 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-10-14 07:16:58 -0700 |
commit | c3248fa4d2b06281aeb24be8a2654c6d86e71efd (patch) | |
tree | 3a1906df2f0b77bd9978d6cb3e09ed78b80484ba /meta-networking | |
parent | 8994c5d2cb5d57404a9b393e585376e42c59a0dc (diff) | |
download | meta-openembedded-c3248fa4d2b06281aeb24be8a2654c6d86e71efd.tar.gz |
openipmi: add a python 3.10 compatibility patch
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-support/openipmi/files/0001-m4-ax_python_devel.m4-do-not-check-for-distutils.patch | 41 | ||||
-rw-r--r-- | meta-networking/recipes-support/openipmi/openipmi_2.0.31.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/openipmi/files/0001-m4-ax_python_devel.m4-do-not-check-for-distutils.patch b/meta-networking/recipes-support/openipmi/files/0001-m4-ax_python_devel.m4-do-not-check-for-distutils.patch new file mode 100644 index 0000000000..00956fb117 --- /dev/null +++ b/meta-networking/recipes-support/openipmi/files/0001-m4-ax_python_devel.m4-do-not-check-for-distutils.patch @@ -0,0 +1,41 @@ +From 3a35611687864cf3599712d0d2ff54532b0118ac Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <alex@linutronix.de> +Date: Sun, 3 Oct 2021 21:42:32 +0200 +Subject: [PATCH] m4/ax_python_devel.m4: do not check for distutils + +With py 3.10 this prints a deprecation warning which is +taken as an error. Upstream should rework the code to not +use distuils. + +Upstream-Status: Inappropriate [needs a proper fix upstream] +Signed-off-by: Alexander Kanavin <alex@linutronix.de> +--- + m4/ax_python_devel.m4 | 15 --------------- + 1 file changed, 15 deletions(-) + +diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 +index e0804c5..cfc0b24 100644 +--- a/m4/ax_python_devel.m4 ++++ b/m4/ax_python_devel.m4 +@@ -138,21 +138,6 @@ variable to configure. See ``configure --help'' for reference. + fi + fi + +- # +- # Check if you have distutils, else fail +- # +- AC_MSG_CHECKING([for the distutils Python package]) +- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` +- if test -z "$ac_distutils_result"; then +- AC_MSG_RESULT([yes]) +- else +- AC_MSG_RESULT([no]) +- AC_MSG_ERROR([cannot import Python module "distutils". +-Please check your Python installation. The error was: +-$ac_distutils_result]) +- PYTHON_VERSION="" +- fi +- + # + # Check for Python include path + # diff --git a/meta-networking/recipes-support/openipmi/openipmi_2.0.31.bb b/meta-networking/recipes-support/openipmi/openipmi_2.0.31.bb index ecc98dd8be..4b85d94273 100644 --- a/meta-networking/recipes-support/openipmi/openipmi_2.0.31.bb +++ b/meta-networking/recipes-support/openipmi/openipmi_2.0.31.bb @@ -31,6 +31,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/openipmi/OpenIPMI-${PV}.tar.gz \ file://include_sys_types.patch \ file://openipmi-helper \ file://ipmi.service \ + file://0001-m4-ax_python_devel.m4-do-not-check-for-distutils.patch \ " S = "${WORKDIR}/OpenIPMI-${PV}" |