diff --git a/blivet-3.4.2-sw.patch b/blivet-3.4.2-sw.patch new file mode 100755 index 0000000000000000000000000000000000000000..039580192045d0a8f94d5b261abc2945fd855dcd --- /dev/null +++ b/blivet-3.4.2-sw.patch @@ -0,0 +1,28 @@ +diff -Naur blivet-3.4.2.org/blivet/arch.py blivet-3.4.2.sw/blivet/arch.py +--- blivet-3.4.2.org/blivet/arch.py 2022-09-05 16:07:41.840000000 +0000 ++++ blivet-3.4.2.sw/blivet/arch.py 2022-09-05 16:09:17.720000000 +0000 +@@ -304,6 +304,15 @@ + 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(): + """ + :return: True if the hardware supports Alpha, False otherwise. +@@ -351,6 +360,8 @@ + return os.uname()[4] + elif is_aarch64(): + return 'aarch64' ++ elif is_sw_64(): ++ return 'sw_64' + elif is_alpha(): + return 'alpha' + elif is_arm(): diff --git a/python-blivet.spec b/python-blivet.spec index 116827bf71e486dcc3a796f7036f000ffa94f5d7..686f4b1b811a6cc4097121d86d6a54731417a9d1 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: blivet-3.4.2-sw.patch @@ -123,6 +124,9 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install %doc README.md %changelog +* Tue Oct 18 2022 wuzx - 3.4.2-3 +- add sw64 patch + * Thu Jul 28 2022 Chenxi Mao - 3.4.2-2 - Fix remove subvolumes error on brtfs during installation.