Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-dmidecode for openSUSE:Factory checked in at 2022-10-27 13:54:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-dmidecode (Old) and /work/SRC/openSUSE:Factory/.python-dmidecode.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dmidecode" Thu Oct 27 13:54:11 2022 rev:6 rq:1031403 version:3.12.2+git.1666757106.e6ab5bc Changes: -------- --- /work/SRC/openSUSE:Factory/python-dmidecode/python-dmidecode.changes 2022-10-18 12:45:19.237767550 +0200 +++ /work/SRC/openSUSE:Factory/.python-dmidecode.new.2275/python-dmidecode.changes 2022-10-27 13:54:50.944774626 +0200 @@ -1,0 +2,28 @@ +Wed Oct 26 09:14:38 UTC 2022 - mc...@cepl.eu + +- Update to version 3.12.2+git.1666757106.e6ab5bc: + * fix address_from_efi ret=0 message + * fix function dmi_slot_segment_bus_func null point error in system slot + * fix warning: this 'if' clause does not guard + * fix warning: variable 'str_n' set but not used + * fix warning: passing argument 2 of 'dmi_tpm_vendor_id' makes pointer from integer without a cast + * fix warning: unused variable 'attr' + * fix warning: unused variable 'addrstr' + * fix warning: suggest parentheses around assignment used as truth value + * fix warning: suggest parentheses around assignment used as truth value + * src/dmidecode.c: In function 'dmi_tpm_characteristics': src/dmidecode.c:4788:24: warning: 'return' with a value, in function returning void [-Wreturn-type] 4788 | return data_n; | ^~~~~~ + * fix warning: passing argument 3 of 'dmi_slot_peers' from incompatible pointer type + * fix warning: unused variable 'ver' + * fix warning: variable 'eptype' set but not used + * fix warning: suggest parentheses around '&&' within '||' + * fix warning: comparison of integer expressions of different signedness + * fix warning: ignoring return value of 'legacy_decode' + * fix warning argument 1 null where non-null expected + * Update python-dmidecode to smbios 3.3.0 + * Fix for printing an empty dictionary + * Fix the failure of opening "/dev/mem": Permission denied + * Fix bugs: 1. Fix smbios3_decode decoding sysfs table dump error. 2. Fix check smbios version error warning message. + * Fix reading info permission deny bugs. +- Remove duplicated Makefile_libdir.patch. + +------------------------------------------------------------------- Old: ---- Makefile_libdir.patch python-dmidecode-3.12.2+git.1625035095.f0a089a.tar.gz New: ---- python-dmidecode-3.12.2+git.1666757106.e6ab5bc.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-dmidecode.spec ++++++ --- /var/tmp/diff_new_pack.Lq0cCB/_old 2022-10-27 13:54:51.628778115 +0200 +++ /var/tmp/diff_new_pack.Lq0cCB/_new 2022-10-27 13:54:51.632778136 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-dmidecode -Version: 3.12.2+git.1625035095.f0a089a +Version: 3.12.2+git.1666757106.e6ab5bc Release: 0 Summary: Python module to access DMI data License: GPL-2.0-only @@ -27,20 +27,18 @@ URL: https://github.com/nima/python-dmidecode # Source0: https://github.com/nima/python-dmidecode/archive/refs/tags/v%%{version}.tar.gz#/python-dmidecode-%%{version}.tar.gz Source0: python-dmidecode-%{version}.tar.gz +# PATCH-FIX-UPSTREAM huge-memory.patch gh#nima/python-dmidecode#33 mc...@suse.com # use DWORD instead of WORD when calling dmi_memory_device_extended_size Patch0: huge-memory.patch # PATCH-FIX-UPSTREAM gcc7-inline.patch gh#nima/python-dmidecode#35 mc...@suse.com # Don't use inline keyword. Patch1: gcc7-inline.patch -# PATCH-FIX-UPSTREAM detect-lib-with-py3.patch gh#nima/python-dmidecode#36 mc...@suse.com -# Make the code future-proof against removal of distutils module. -Patch2: detect-lib-with-py3.patch # PATCH-FIX-UPSTREAM 31-version_info-v-version.patch gh#nima/python-dmidecode#31 mc...@suse.com # use sys.version_info instead of sys.version -Patch3: 31-version_info-v-version.patch -# PATCH-FIX-UPSTREAM Makefile_libdir.patch bsc#[0-9]+ mc...@suse.com -# Something's wrong with finding libdirs -Patch4: Makefile_libdir.patch +Patch2: 31-version_info-v-version.patch +# PATCH-FIX-UPSTREAM detect-lib-with-py3.patch gh#nima/python-dmidecode#36 mc...@suse.com +# Make the code future-proof against removal of distutils module. +Patch3: detect-lib-with-py3.patch Obsoletes: %{oldpython}-dmidecode <= %{version} Obsoletes: python-python-dmidecode <= %{version} BuildRequires: %{python_module devel} ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.Lq0cCB/_old 2022-10-27 13:54:51.708778523 +0200 +++ /var/tmp/diff_new_pack.Lq0cCB/_new 2022-10-27 13:54:51.712778543 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/nima/python-dmidecode.git</param> - <param name="changesrevision">467038237266e2c1bec79d1d6698170b81208026</param></service></servicedata> + <param name="changesrevision">e6ab5bc3b8b60fd560e411e148f6bf9571feae47</param></service></servicedata> (No newline at EOF) ++++++ detect-lib-with-py3.patch ++++++ --- /var/tmp/diff_new_pack.Lq0cCB/_old 2022-10-27 13:54:51.728778625 +0200 +++ /var/tmp/diff_new_pack.Lq0cCB/_new 2022-10-27 13:54:51.732778645 +0200 @@ -1,33 +1,43 @@ --- - src/setup_common.py | 14 +++++++++++--- - 1 file changed, 11 insertions(+), 3 deletions(-) + Makefile | 3 ++- + src/setup_common.py | 9 ++++++--- + 2 files changed, 8 insertions(+), 4 deletions(-) +--- a/Makefile ++++ b/Makefile +@@ -42,9 +42,10 @@ PY_BIN := python3 + VERSION := $(shell cd src;$(PY_BIN) -c "from setup_common import *; print(get_version());") + PACKAGE := python-dmidecode + PY_VER := $(shell $(PY_BIN) -c 'import sys; print("%d.%d"%sys.version_info[0:2])') ++PY_VER_DL := $(shell echo $(PY_VER) | tr -d '.') + PY_MV := $(shell echo $(PY_VER) | cut -b 1) + PY := python$(PY_VER) +-SO_PATH := build/lib.linux-$(shell uname -m)-$(PY_VER) ++SO_PATH := build/lib.linux-$(shell uname -m)-cpython-$(PY_VER_DL) + ifeq ($(PY_MV),2) + SO := $(SO_PATH)/dmidecodemod.so + else --- a/src/setup_common.py +++ b/src/setup_common.py -@@ -30,7 +30,12 @@ import subprocess, sys +@@ -30,7 +30,7 @@ import subprocess, sys if sys.version_info[0] < 3: import commands as subprocess from os import path as os_path -from distutils.sysconfig import get_python_lib -+try: -+ from distutils.sysconfig import get_python_lib, get_config_var -+ __python_lib = get_python_lib(1) -+except ImportError: -+ from sysconfig import get_config_var, get_path -+ __python_lib = get_path('platlib') ++from sysconfig import get_config_var, get_path # libxml2 - C flags def libxml2_include(incdir): -@@ -50,7 +55,7 @@ def libxml2_include(incdir): +@@ -50,7 +50,7 @@ def libxml2_include(incdir): # libxml2 - library flags def libxml2_lib(libdir, libs): - libdir.append(get_python_lib(1)) -+ libdir.append(__python_lib) ++ libdir.append(get_path('platlib')) if os_path.exists("/etc/debian_version"): #. XXX: Debian Workaround... libdir.append("/usr/lib/pymodules/python%d.%d"%sys.version_info[0:2]) -@@ -69,7 +74,10 @@ def libxml2_lib(libdir, libs): +@@ -69,7 +69,10 @@ def libxml2_lib(libdir, libs): libs.append(l.replace("-l", "", 1)) # this library is not reported and we need it anyway ++++++ huge-memory.patch ++++++ --- /var/tmp/diff_new_pack.Lq0cCB/_old 2022-10-27 13:54:51.756778768 +0200 +++ /var/tmp/diff_new_pack.Lq0cCB/_new 2022-10-27 13:54:51.760778788 +0200 @@ -4,7 +4,7 @@ --- a/src/dmidecode.c +++ b/src/dmidecode.c -@@ -4533,7 +4533,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, dmi +@@ -5378,7 +5378,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, dmi dmi_memory_device_width(sect_n, "TotalWidth", WORD(data + 0x08)); dmi_memory_device_width(sect_n, "DataWidth", WORD(data + 0x0A)); if (h->length >= 0x20 && WORD(data + 0x0C) == 0x7FFF) { ++++++ python-dmidecode-3.12.2+git.1625035095.f0a089a.tar.gz -> python-dmidecode-3.12.2+git.1666757106.e6ab5bc.tar.gz ++++++ ++++ 3547 lines of diff (skipped)