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 d97460fd6590fd090457c704c9d173132bec6095..e49b815ca6c61ad64d73a6fb14779dfc90260e81 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 @@ -40,6 +42,10 @@ Patch6: 0007-Do-not-set-chunk-size-for-RAID1.patch Patch7: 0008-Fix-running-tests-in-gating.patch Patch8: 0009-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 @@ -201,6 +207,9 @@ configuration. %endif %changelog +* Sun Sep 26 2021 Liwei Ge - 3.4.0-6.0.1 +- Add loongarch64 support + * Mon Sep 13 2021 Vojtech Trefny - 3.4.0-6 - Localization update for 8.5 Resolves: rhbz#1962016