diff --git a/0001-add-loongarch-support-for-python-blivet.patch b/0001-add-loongarch-support-for-python-blivet.patch new file mode 100644 index 0000000000000000000000000000000000000000..9d42cda14f47f5f1add478584ac326227f52a198 --- /dev/null +++ b/0001-add-loongarch-support-for-python-blivet.patch @@ -0,0 +1,27 @@ +From 2d79c8ce9e9177fd6dcef480ff6262479b8a871d Mon Sep 17 00:00:00 2001 +From: Jingyun Hua +Date: Wed, 19 Oct 2022 18:07:39 +0000 +Subject: [PATCH] add loongarch support + +--- + blivet/arch.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/blivet/arch.py b/blivet/arch.py +index 2cd978e..e7434f9 100644 +--- a/blivet/arch.py ++++ b/blivet/arch.py +@@ -172,6 +172,10 @@ def get_ppc_mac_book(): + return False + + ++def is_loongarch(): ++ return os.uname()[4] == 'loongarch64' ++ ++ + def is_aarch64(): + """ + :return: True if the hardware supports Aarch64, False otherwise. +-- +2.33.0 + diff --git a/python-blivet.spec b/python-blivet.spec index 116827bf71e486dcc3a796f7036f000ffa94f5d7..a21ea6421fd13faa911fcc1c5bb97b100123ec9b 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -3,7 +3,7 @@ Name: python-blivet Version: 3.4.2 -Release: 2 +Release: 3 Epoch: 1 Summary: A python module for system storage configuration License: LGPLv2+ @@ -21,6 +21,7 @@ Patch0: 0001-force-lvm-plugin.patch Patch1: fix-the-long-hostname.patch Patch9000: fix-allocate-partitions-threw-exception-when-raid.patch Patch9001: 0001-Make-sure-we-mount-the-top-level-subvolume-when-moun.patch +Patch9002: 0001-add-loongarch-support-for-python-blivet.patch @@ -123,6 +124,11 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install %doc README.md %changelog +* Mon Mar 28 2022 Wenlong Zhang - 1:3.4.2-3 +- ID:NA +- SUG:NA +- DESC: add loongarch support for python-blivet + * Thu Jul 28 2022 Chenxi Mao - 3.4.2-2 - Fix remove subvolumes error on brtfs during installation.