From 722700c84af743ff8c9f4cb9e0b22dbfe2c69423 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Mon, 9 Jan 2023 16:21:55 +0800 Subject: [PATCH] Do not install kmod-ast on loongarch platform --- 1005-Add-5.10-kmod-pack.patch | 8 +++++--- lorax-templates-anolis.spec | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/1005-Add-5.10-kmod-pack.patch b/1005-Add-5.10-kmod-pack.patch index a26d9a8..22d1a85 100644 --- a/1005-Add-5.10-kmod-pack.patch +++ b/1005-Add-5.10-kmod-pack.patch @@ -1,13 +1,15 @@ diff --git a/80-anolis/runtime-install.tmpl b/80-anolis/runtime-install.tmpl -index 3f14dd5..6b920f3 100644 +index e574b72..f4d0fa4 100644 --- a/80-anolis/runtime-install.tmpl +++ b/80-anolis/runtime-install.tmpl -@@ -170,5 +170,8 @@ installpkg spice-vdagent +@@ -188,5 +188,10 @@ installpkg spice-vdagent installpkg gdisk hexedit sg3_utils installpkg perl-interpreter +## install kmod-ast -+installpkg kmod-ast ++%if basearch != "loongarch64": ++ installpkg kmod-ast ++%endif + ## actually install all the requested packages run_pkg_transaction diff --git a/lorax-templates-anolis.spec b/lorax-templates-anolis.spec index 1f76787..8b167d6 100644 --- a/lorax-templates-anolis.spec +++ b/lorax-templates-anolis.spec @@ -1,4 +1,4 @@ -%define anolis_release 12 +%define anolis_release 13 Name: lorax-templates-anolis Version: 8.3 Release: 4.%{anolis_release}%{?dist} @@ -49,6 +49,9 @@ cp -a 80-anolis/* $RPM_BUILD_ROOT/%{templatedir} %{templatedir}/* %changelog +* Mon Jan 09 2023 Chang Gao - 8.3-4.13 +- Do not install kmod-ast on loongarch platform + * Tue Dec 06 2022 Chang Gao - 8.3-4.12 - Merge a8 branch and a8-poc branch -- Gitee