Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
This commit is contained in:
parent
bd10e288ac
commit
d1aaed08e6
28
blivet-3.4.2-sw.patch
Executable file
28
blivet-3.4.2-sw.patch
Executable file
@ -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():
|
||||
@ -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,9 @@ 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
|
||||
%ifarch sw_64
|
||||
Patch9002: blivet-3.4.2-sw.patch
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
@ -123,6 +126,9 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
||||
* Tue Oct 18 2022 wuzx<wuzx1226@qq.com> - 3.4.2-3
|
||||
- add sw64 patch
|
||||
|
||||
* Thu Jul 28 2022 Chenxi Mao <chenxi.mao@suse.com> - 3.4.2-2
|
||||
- Fix remove subvolumes error on brtfs during installation.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user