diff --git a/0012-Add-sw_64-support.patch b/0012-Add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..56b8840aa7d98f5616089e4d825c99b645846159 --- /dev/null +++ b/0012-Add-sw_64-support.patch @@ -0,0 +1,41 @@ +From 8ed93f93b51e3c56b8d1770ea1792355005afde2 Mon Sep 17 00:00:00 2001 +From: "fenghui@nfschina.com" +Date: Mon, 31 Mar 2025 20:08:17 +0800 +Subject: [PATCH 1/1] Add sw_64 support + +--- + blivet/arch.py | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/blivet/arch.py b/blivet/arch.py +index 6c2a584..f851305 100644 +--- a/blivet/arch.py ++++ b/blivet/arch.py +@@ -330,6 +330,15 @@ def is_ia64(): + """ + return os.uname()[4] == 'ia64' + ++def is_sw_64(): ++ """ ++ :return: True if the hardware supports Sw_64, False otherwise. ++ :rtype: boolean ++ ++ """ ++ return os.uname()[4].startswith('sw_64') ++ ++ + + def is_alpha(): + """ +@@ -410,6 +419,8 @@ def get_arch(): + return os.uname()[4] + elif is_aarch64(): + return 'aarch64' ++ elif is_sw_64(): ++ return 'sw_64' + elif is_alpha(): + return 'alpha' + elif is_arm(): +-- +2.41.0 + diff --git a/python-blivet.spec b/python-blivet.spec index cbc2392abfacb01d5fa4b1bc74a92bf9ba7e8a8c..39ed3efbe27c9c7d7b62996a0ef6ff1f739a20ae 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Summary: A python module for system storage configuration Name: python-blivet Url: https://storageapis.wordpress.com/projects/blivet @@ -22,6 +22,7 @@ Patch5: 0008-Align-sizes-up-for-growable-LVs.patch Patch6: 0009-mod_pass_in_stratis_test.patch Patch7: 0010-Fix_running_tests_in_FIPS_mode.patch Patch8: 0011-Make-GPT-default-label-type-on-all-architectures.patch +Patch9: 0012-Add-sw_64-support.patch # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). @@ -129,6 +130,9 @@ make PYTHON=%{__python3} DESTDIR=%{buildroot} install %doc README.md ChangeLog examples %changelog +* Mon Mar 31 2025 fenghui - 3.10.0-2 +- arch: Support sw_64 arch + * Wed Mar 26 2025 Xiaoping Liu - 3.10.0-1 - update to 3.10.0 from 3.6.1 - Migrated to SPDX license