diff --git a/python-blivet-add-sw_64-support.patch b/python-blivet-add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..511d35cb3c02462142b5e8302405bc684c4d0a1f --- /dev/null +++ b/python-blivet-add-sw_64-support.patch @@ -0,0 +1,39 @@ +From edf0a2d1d07346a51fcb4787a4176091a40cc163 Mon Sep 17 00:00:00 2001 +From: pangqing +Date: Fri, 10 Jan 2025 18:25:47 +0800 +Subject: [PATCH] add sw_64 support + +--- + blivet/arch.py | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/blivet/arch.py b/blivet/arch.py +index 41ccd08..705402c 100644 +--- a/blivet/arch.py ++++ b/blivet/arch.py +@@ -330,6 +330,13 @@ def is_ia64(): + """ + return os.uname()[4] == 'ia64' + ++def is_sw_64(): ++ """ ++ :return: True if the hardware supports IA64, False otherwise. ++ :rtype: boolean ++ ++ """ ++ return os.uname()[4].startswith('sw_64') + + def is_alpha(): + """ +@@ -414,6 +421,8 @@ def get_arch(): + return 'aarch64' + elif is_alpha(): + return 'alpha' ++ elif is_sw_64(): ++ return 'sw_64' + elif is_arm(): + return 'arm' + elif is_riscv64(): +-- +2.39.3 + diff --git a/python-blivet.spec b/python-blivet.spec index e4a3f46e634d53d19dbfb53dd999389b5f52e3b2..212f4926b380eeedad6cc661358c87074a27d8c7 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -3,7 +3,7 @@ Name: python-blivet Version: 3.8.2 -Release: 9 +Release: 10 Epoch: 1 Summary: A python module for system storage configuration License: LGPL-2.1-or-later @@ -28,6 +28,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 +Patch9005: python-blivet-add-sw_64-support.patch %description The python-blivet package is a python module for examining and modifying @@ -130,6 +131,9 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install %doc README.md %changelog +* Thu Feb 27 2025 zhangshaoning - 1:3.8.2-10 +- Add sw_64 support + * Wed Dec 04 2024 sunhai - 1:3.8.2-9 - Type:bugfix - ID:NA