diff --git a/OpenIPMI-2.0.32.tar.gz b/OpenIPMI-2.0.33.tar.gz similarity index 35% rename from OpenIPMI-2.0.32.tar.gz rename to OpenIPMI-2.0.33.tar.gz index 019f5d02f0b767ac4cd9b3550c3e5cf4a3b4f0b5..fe59c6952f067057a2670625177a593ae2f68a41 100644 Binary files a/OpenIPMI-2.0.32.tar.gz and b/OpenIPMI-2.0.33.tar.gz differ diff --git a/OpenIPMI.spec b/OpenIPMI.spec index 54711c99ad5f21ff84317b46aaee60ee87eaa65c..a9680666ca0aa0fe354d09c6b084d93123d79220 100644 --- a/OpenIPMI.spec +++ b/OpenIPMI.spec @@ -1,6 +1,6 @@ Name: OpenIPMI -Version: 2.0.32 -Release: 2 +Version: 2.0.33 +Release: 1 Summary: IPMI (Intelligent Platform Management Interface) library and tools License: LGPLv2+ and GPLv2+ or BSD URL: https://sourceforge.net/projects/openipmi/ @@ -10,10 +10,8 @@ Source2: ipmi.service Source3: openipmi-helper Patch0: 0001-man.patch -Patch1: backport-OpenIPMI-ax-python.patch -Patch2: backport-OpenIPMI-sysconfig.patch -BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel +BuildRequires: make gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel BuildRequires: openssl-devel python3-devel perl-devel perl-generators BuildRequires: pkgconfig libedit-devel automake autoconf libtool readline-devel %{?systemd_requires} @@ -143,6 +141,12 @@ echo ".so man1/openipmish.1" > %{buildroot}%{_mandir}/man1/ipmish.1 %exclude %{_mandir}/man1/openipmigui.1 %changelog +* Tue Jan 31 2023 yanglu - 2.0.33-1 +- Type:requirement +- CVE:NA +- SUG:NA +- DESC:update OpenIPMI version to 2.0.33 + * Fri Nov 04 2022 yanglu - 2.0.32-2 - Type:bugfix - CVE: diff --git a/backport-OpenIPMI-ax-python.patch b/backport-OpenIPMI-ax-python.patch deleted file mode 100644 index 9c74546fe6536e8d58d8c1f7aaac7561b6aa9de8..0000000000000000000000000000000000000000 --- a/backport-OpenIPMI-ax-python.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urNp a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 ---- a/m4/ax_python_devel.m4 2021-08-02 13:15:04.122972905 +0200 -+++ b/m4/ax_python_devel.m4 2021-08-02 13:16:17.407749535 +0200 -@@ -143,7 +143,7 @@ variable to configure. See ``configure - - # - AC_MSG_CHECKING([for the distutils Python package]) - ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` -- if test -z "$ac_distutils_result"; then -+ if test $? -eq 0; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) diff --git a/backport-OpenIPMI-sysconfig.patch b/backport-OpenIPMI-sysconfig.patch deleted file mode 100644 index bfd56d366bd80b729c5c8486af337e468f05492b..0000000000000000000000000000000000000000 --- a/backport-OpenIPMI-sysconfig.patch +++ /dev/null @@ -1,239 +0,0 @@ -diff -urNp a/configure b/configure ---- a/configure 2021-08-02 13:38:21.012807239 +0200 -+++ b/configure 2021-08-02 14:32:29.884167376 +0200 -@@ -13535,20 +13535,20 @@ variable to configure. See \`\`configure - fi - - # -- # Check if you have distutils, else fail -+ # Check if you have sysconfig, else fail - # -- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 --$as_echo_n "checking for the distutils Python package... " >&6; } -- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` -- if test -z "$ac_distutils_result"; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python package" >&5 -+$as_echo_n "checking for the sysconfig Python package... " >&6; } -+ ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1` -+ if test -z "$ac_sysconfig_result"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 - $as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 - $as_echo "no" >&6; } -- as_fn_error $? "cannot import Python module \"distutils\". -+ as_fn_error $? "cannot import Python module \"sysconfig\". - Please check your Python installation. The error was: --$ac_distutils_result" "$LINENO" 5 -+$ac_sysconfig_result" "$LINENO" 5 - PYTHON_VERSION="" - fi - -@@ -13558,10 +13558,10 @@ $ac_distutils_result" "$LINENO" 5 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 - $as_echo_n "checking for Python include path... " >&6; } - if test -z "$PYTHON_CPPFLAGS"; then -- python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_inc ());"` -- plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_inc (plat_specific=1));"` -+ python_path=`$PYTHON -c "import sysconfig; \ -+ print (sysconfig.get_path('include'));"` -+ plat_python_path=`$PYTHON -c "import sysconfig; \ -+ print (sysconfig.get_path('include'));"` - if test -n "${python_path}"; then - if test "${plat_python_path}" != "${python_path}"; then - python_path="-I$python_path -I$plat_python_path" -@@ -13587,7 +13587,7 @@ $as_echo_n "checking for Python library - - # join all versioning strings, on some systems - # major/minor numbers could be in different list elements --from distutils.sysconfig import * -+from sysconfig import * - e = get_config_var('VERSION') - if e is not None: - print(e) -@@ -13613,8 +13613,8 @@ _ACEOF - ac_python_libdir=`cat<&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 - $as_echo_n "checking for Python site-packages path... " >&6; } - if test -z "$PYTHON_SITE_PKG"; then -- PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_lib(0,0));"` -+ PYTHON_SITE_PKG=`$PYTHON -c "import sysconfig; \ -+ print (sysconfig.get_path('platlib'));"` - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 - $as_echo "$PYTHON_SITE_PKG" >&6; } -@@ -13678,8 +13678,8 @@ $as_echo "$PYTHON_SITE_PKG" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 - $as_echo_n "checking python extra libraries... " >&6; } - if test -z "$PYTHON_EXTRA_LDFLAGS"; then -- PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ -- conf = distutils.sysconfig.get_config_var; \ -+ PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import sysconfig; \ -+ conf = sysconfig.get_config_var; \ - print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 -@@ -13692,8 +13692,8 @@ $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 - $as_echo_n "checking python extra linking flags... " >&6; } - if test -z "$PYTHON_EXTRA_LIBS"; then -- PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ -- conf = distutils.sysconfig.get_config_var; \ -+ PYTHON_EXTRA_LIBS=`$PYTHON -c "import sysconfig; \ -+ conf = sysconfig.get_config_var; \ - print (conf('LINKFORSHARED'))"` - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 -diff -urNp a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 ---- a/m4/ax_python_devel.m4 2021-08-02 13:38:21.025807373 +0200 -+++ b/m4/ax_python_devel.m4 2021-08-02 14:36:33.262720424 +0200 -@@ -139,17 +139,17 @@ variable to configure. See ``configure - - fi - - # -- # Check if you have distutils, else fail -+ # Check if you have sysconfig, else fail - # -- AC_MSG_CHECKING([for the distutils Python package]) -- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` -+ AC_MSG_CHECKING([for the sysconfig Python package]) -+ ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1` - if test $? -eq 0; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -- AC_MSG_ERROR([cannot import Python module "distutils". -+ AC_MSG_ERROR([cannot import Python module "sysconfig". - Please check your Python installation. The error was: --$ac_distutils_result]) -+$ac_sysconfig_result]) - PYTHON_VERSION="" - fi - -@@ -158,10 +158,10 @@ $ac_distutils_result]) - # - AC_MSG_CHECKING([for Python include path]) - if test -z "$PYTHON_CPPFLAGS"; then -- python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_inc ());"` -- plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_inc (plat_specific=1));"` -+ python_path=`$PYTHON -c "import sysconfig; \ -+ print (sysconfig.get_path('include'));"` -+ plat_python_path=`$PYTHON -c "import sysconfig; \ -+ print (sysconfig.get_path('include'));"` - if test -n "${python_path}"; then - if test "${plat_python_path}" != "${python_path}"; then - python_path="-I$python_path -I$plat_python_path" -@@ -185,7 +185,7 @@ $ac_distutils_result]) - - # join all versioning strings, on some systems - # major/minor numbers could be in different list elements --from distutils.sysconfig import * -+from sysconfig import * - e = get_config_var('VERSION') - if e is not None: - print(e) -@@ -208,8 +208,8 @@ EOD` - ac_python_libdir=`cat<