From 7e99075c8e2a8f42b2ac6944eaa3c3f65bb865ac Mon Sep 17 00:00:00 2001 From: zhangrui Date: Thu, 5 Jan 2023 15:55:17 +0800 Subject: [PATCH] add loongarch (cherry picked from commit 2670717d29736b2dfce07e02275158ec12672a76) --- ...-libdnf-0.65.0-add-loongarch-support.patch | 25 +++++++++++++++++++ libdnf.spec | 8 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-libdnf-0.65.0-add-loongarch-support.patch diff --git a/0001-libdnf-0.65.0-add-loongarch-support.patch b/0001-libdnf-0.65.0-add-loongarch-support.patch new file mode 100644 index 0000000..7dd7938 --- /dev/null +++ b/0001-libdnf-0.65.0-add-loongarch-support.patch @@ -0,0 +1,25 @@ +From a734378da28087be668d1ddda7dcfd3c2f3737b1 Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Thu, 2 Jun 2022 06:51:17 +0000 +Subject: [PATCH] libdnf 0.65.0 add loongarch support + +--- + libdnf/dnf-context.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp +index ad467aa..9ed55ec 100644 +--- a/libdnf/dnf-context.cpp ++++ b/libdnf/dnf-context.cpp +@@ -112,6 +112,8 @@ static const struct { + { "riscv32", { "riscv32", NULL } }, + { "riscv64", { "riscv64", NULL } }, + { "riscv128", { "riscv128", NULL } }, ++ { "loongarch32", { "loongarch32", NULL } }, ++ { "loongarch64", { "loongarch64", NULL } }, + { "s390", { "s390", NULL } }, + { "s390x", { "s390x", NULL } }, + { "sh3", { "sh3", NULL } }, +-- +2.33.0 + diff --git a/libdnf.spec b/libdnf.spec index 5d428f8..d0aa8d6 100644 --- a/libdnf.spec +++ b/libdnf.spec @@ -18,7 +18,7 @@ Name: libdnf Version: 0.69.0 -Release: 2 +Release: 3 Summary: Library providing simplified C and Python API to libsolv License: LGPLv2+ URL: https://github.com/rpm-software-management/libdnf @@ -41,6 +41,9 @@ Obsoletes: python2-hawkey-debuginfo < %{version}-%{release} Obsoletes: python2-libdnf-debuginfo < %{version}-%{release} Patch6000: backport-query-py-ensure-reldep-is-from-the-same-sack.patch +%ifarch loongarch64 +Patch6001: 0001-libdnf-0.65.0-add-loongarch-support.patch +%endif %description A Library providing simplified C and Python API to libsolv. @@ -120,6 +123,9 @@ popd %{python3_sitearch}/hawkey/ %changelog +* Thu Jan 5 2023 zhangrui - 0.69.0-3 +- DESC:add loongarch + * Fri Dec 9 2022 zhangrui - 0.69.0-2 - DESC:backport patch to ensure reldep is from the same sack -- Gitee