diff --git a/1001-blivet-anolis-add-loongarch-support.patch b/1001-blivet-anolis-add-loongarch-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..ac0972e49cd0d01648260d99adb01133645f8a24 --- /dev/null +++ b/1001-blivet-anolis-add-loongarch-support.patch @@ -0,0 +1,11 @@ +--- blivet-3.2.2/blivet/arch.py 2020-05-21 18:45:40.000000000 +0800 ++++ blivet-3.2.2.new/blivet/arch.py 2021-09-26 22:43:56.625114066 +0800 +@@ -171,6 +171,8 @@ + + return False + ++def is_loongarch(): ++ return os.uname()[4] == 'loongarch64' + + def is_aarch64(): + """ diff --git a/python-blivet.spec b/python-blivet.spec index cddd80b3a248e9335081dbe0fd8ac635c27027ea..69b3c9accf8a90eec4721ce6f3517b7d773ffe87 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %define is_rhel 0%{?rhel} != 0 # python3 is not available on RHEL <=7 @@ -23,7 +25,7 @@ Version: 3.4.0 #%%global prerelease .b2 # prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2 -Release: 9%{?prerelease}%{?dist} +Release: 9%{?prerelease}%{anolis_release}%{?dist} Epoch: 1 License: LGPLv2+ %global realname blivet @@ -43,6 +45,10 @@ Patch9: 0010-Use-bigger-chunk-size-for-thinpools-bigger-than-15.8.patch Patch10: 0011-iscsi-Replace-all-log_exception_info-calls-with-log.patch Patch11: 0012-PO-update.patch +# Add by Anolis +Patch1001: 1001-blivet-anolis-add-loongarch-support.patch +# End + # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). %global partedver 3.2 @@ -204,6 +210,9 @@ configuration. %endif %changelog +* Mon Apr 18 2022 Liwei Ge - 3.4.0-9.0.1 +- Add loongarch64 support + * Thu Jan 10 2022 Vojtech Trefny - 3.4.0-9 - Translation update Resolves: rhbz#2003050