diff --git a/fix-loglevel.patch b/fix-loglevel.patch new file mode 100644 index 0000000..cc6119a --- /dev/null +++ b/fix-loglevel.patch @@ -0,0 +1,12 @@ +diff --color -Naur python-dmidecode-3.12.3-orig/src/efi.c python-dmidecode-3.12.3/src/efi.c +--- python-dmidecode-3.12.3-orig/src/efi.c 2022-11-17 06:51:28 ++++ python-dmidecode-3.12.3/src/efi.c 2025-02-25 14:25:32 +@@ -84,7 +84,7 @@ + } + + if(ret == 0){ +- log_append(logp, LOGFL_NODUPS, LOG_DEBUG, "%s: entry point at 0x%08llx", eptype, (unsigned long long)*address); ++ log_append(logp, LOGFL_NODUPS, LOG_WARNING, "%s: entry point at 0x%08llx", eptype, (unsigned long long)*address); + } + + return ret; diff --git a/python-dmidecode.changes b/python-dmidecode.changes index 0260098..88636c2 100644 --- a/python-dmidecode.changes +++ b/python-dmidecode.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 3 10:46:32 UTC 2025 - Daniel Garcia + +- Add patch fix-loglevel.patch to fix invalid log level error. + gh#nima/python-dmidecode#60 bsc#1237685 + ------------------------------------------------------------------- Tue Oct 22 06:56:53 UTC 2024 - Daniel Garcia diff --git a/python-dmidecode.spec b/python-dmidecode.spec index 10831e6..c432ad2 100644 --- a/python-dmidecode.spec +++ b/python-dmidecode.spec @@ -1,7 +1,7 @@ # # spec file for package python-dmidecode # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,6 +39,8 @@ Patch2: 31-version_info-v-version.patch Patch3: detect-lib-with-py3.patch # PATCH-FIX-UPSTREAM gcc14.patch gh#nima/python-dmidecode#59 -- daniel.garcia@suse.com Patch4: gcc14.patch +# PATCH-FIX-OPENSUSE fix-loglevel.patch gh#nima/python-dmidecode#60 +Patch5: fix-loglevel.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes