diff options
| -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 @@ | |||
| 1 | From 3a35611687864cf3599712d0d2ff54532b0118ac Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Sun, 3 Oct 2021 21:42:32 +0200 | ||
| 4 | Subject: [PATCH] m4/ax_python_devel.m4: do not check for distutils | ||
| 5 | |||
| 6 | With py 3.10 this prints a deprecation warning which is | ||
| 7 | taken as an error. Upstream should rework the code to not | ||
| 8 | use distuils. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [needs a proper fix upstream] | ||
| 11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 12 | --- | ||
| 13 | m4/ax_python_devel.m4 | 15 --------------- | ||
| 14 | 1 file changed, 15 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 | ||
| 17 | index e0804c5..cfc0b24 100644 | ||
| 18 | --- a/m4/ax_python_devel.m4 | ||
| 19 | +++ b/m4/ax_python_devel.m4 | ||
| 20 | @@ -138,21 +138,6 @@ variable to configure. See ``configure --help'' for reference. | ||
| 21 | fi | ||
| 22 | fi | ||
| 23 | |||
| 24 | - # | ||
| 25 | - # Check if you have distutils, else fail | ||
| 26 | - # | ||
| 27 | - AC_MSG_CHECKING([for the distutils Python package]) | ||
| 28 | - ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` | ||
| 29 | - if test -z "$ac_distutils_result"; then | ||
| 30 | - AC_MSG_RESULT([yes]) | ||
| 31 | - else | ||
| 32 | - AC_MSG_RESULT([no]) | ||
| 33 | - AC_MSG_ERROR([cannot import Python module "distutils". | ||
| 34 | -Please check your Python installation. The error was: | ||
| 35 | -$ac_distutils_result]) | ||
| 36 | - PYTHON_VERSION="" | ||
| 37 | - fi | ||
| 38 | - | ||
| 39 | # | ||
| 40 | # Check for Python include path | ||
| 41 | # | ||
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 \ | |||
| 31 | file://include_sys_types.patch \ | 31 | file://include_sys_types.patch \ |
| 32 | file://openipmi-helper \ | 32 | file://openipmi-helper \ |
| 33 | file://ipmi.service \ | 33 | file://ipmi.service \ |
| 34 | file://0001-m4-ax_python_devel.m4-do-not-check-for-distutils.patch \ | ||
| 34 | " | 35 | " |
| 35 | 36 | ||
| 36 | S = "${WORKDIR}/OpenIPMI-${PV}" | 37 | S = "${WORKDIR}/OpenIPMI-${PV}" |
