From 89963f63958004ae63cd498afed015d89e91a597 Mon Sep 17 00:00:00 2001 From: zhuyunfei Date: Wed, 12 Mar 2025 11:19:51 +0800 Subject: [PATCH] add sw_64 arch support Project:TC2024110202 Signed-off-by: zhuyunfei --- 0001-add-sw_64-arch-support.patch | 25 +++++++++++++++++++++++++ libdnf.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-add-sw_64-arch-support.patch diff --git a/0001-add-sw_64-arch-support.patch b/0001-add-sw_64-arch-support.patch new file mode 100644 index 0000000..84d8a60 --- /dev/null +++ b/0001-add-sw_64-arch-support.patch @@ -0,0 +1,25 @@ +From d2b84eeca0f4c9625b943853462864d0e4e627a1 Mon Sep 17 00:00:00 2001 +From: zhuyunfei +Date: Wed, 12 Mar 2025 11:15:57 +0800 +Subject: [PATCH] add sw_64 arch support Project:TC2024110202 + +Signed-off-by: zhuyunfei +--- + libdnf/dnf-context.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp +index e775f51..cce7f75 100644 +--- a/libdnf/dnf-context.cpp ++++ b/libdnf/dnf-context.cpp +@@ -120,6 +120,7 @@ static const struct { + "sparcv9", "sparcv9v", NULL } }, + { "x86_64", { "x86_64", "amd64", "ia32e", NULL } }, + { "loongarch64", { "loongarch64", NULL } }, ++ { "sw_64", { "sw_64", NULL } }, + { NULL, { NULL } } + }; + +-- +2.41.0 + diff --git a/libdnf.spec b/libdnf.spec index 83e3639..52ade39 100644 --- a/libdnf.spec +++ b/libdnf.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Name: libdnf Version: 0.70.2 @@ -9,6 +9,7 @@ License: LGPL-2.1-or-later URL: https://github.com/rpm-software-management/libdnf Source0: https://github.com/rpm-software-management/libdnf/archive/refs/tags/%{version}.tar.gz +Patch0001: 0001-add-sw_64-arch-support.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ @@ -114,6 +115,9 @@ Python 3 bindings for the hawkey library. %{python3_sitearch}/hawkey/ %changelog +* Wed Mar 12 2025 zhuyunfei - 0.70.2-3 +- add sw_64 arch support + * Tue Mar 12 2024 Bo Ren - 0.70.2-2 - Rebuild with python3.11 -- Gitee