diff --git a/backport-Fix-getting-missing-libblockdev-technologies-with-Py.patch b/backport-Fix-getting-missing-libblockdev-technologies-with-Py.patch new file mode 100644 index 0000000000000000000000000000000000000000..284f0997ce96804f162e2facda222686ac34476f --- /dev/null +++ b/backport-Fix-getting-missing-libblockdev-technologies-with-Py.patch @@ -0,0 +1,33 @@ +From e231d01e62be2914d659df15e5adc78f0aa3ec34 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Mon, 9 Jun 2025 20:59:32 +0200 +Subject: [PATCH] Fix getting missing libblockdev technologies with Python 3.14 + +Hotfix for rhbz#2371256. Technologies in libblockdev are defined +as enums and we are using 'value_name' to get the technology name/ +description in blivet. For some unknown reason the 'value_name' +attribute from GLib.GEnumValue is not available with Python 3.14. +This needs to be investigated more thoroughly, but for now we can +just not include this information. + +Resolves: rhbz#2371256 + +Conflict: NA +Reference: https://github.com/storaged-project/blivet/commit/e231d01e62be2914d659df15e5adc78f0aa3ec34 +--- + blivet/tasks/availability.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/blivet/tasks/availability.py b/blivet/tasks/availability.py +index 388b199c1..e93687a97 100644 +--- a/blivet/tasks/availability.py ++++ b/blivet/tasks/availability.py +@@ -225,7 +225,7 @@ def _check_technologies(self): + try: + self._tech_info.check_fn(tech, mode) + except GLib.GError as e: +- errors.append("%s: %s" % (tech.value_name, e.message)) ++ errors.append("%s" % e.message) + return errors + + def availability_errors(self, resource): diff --git a/python-blivet.spec b/python-blivet.spec index d6fa4e576c120ba066e76bc1e79d9ef3eb5e3af2..a0fd351313a3d0f263f8f7c0d1d6ed6305b37788 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -3,7 +3,7 @@ Name: python-blivet Version: 3.8.2 -Release: 10 +Release: 11 Epoch: 1 Summary: A python module for system storage configuration License: LGPL-2.1-or-later @@ -26,6 +26,7 @@ patch6001: backport-Ignore-invalid-empty-UUIDs-for-NVMe-namespaces.patch patch9003: bugfix-fix-empty-UUIDs-for-NVMe-namespaces.patch patch9004: bugfix-revert-Prefer-UUID-for-fstab-spec-for-DM-devices-too.patch patch6002: backport-Fix-intel-biosraid-cant-get-device-name-causing-crashed.patch +patch6003: backport-Fix-getting-missing-libblockdev-technologies-with-Py.patch %description The python-blivet package is a python module for examining and modifying @@ -128,6 +129,12 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install %doc README.md %changelog +* Thu Jul 31 2025 xinghe - 1:3.8.2-11 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix blivet-gui test fail + * Sun Mar 09 2025 yueyuankun - 1:3.8.2-10 - Type:update - ID:NA