From f8882765ca81244f970c38a51b1b0934a91b1360 Mon Sep 17 00:00:00 2001 From: huangwenhua Date: Mon, 6 May 2024 15:47:04 +0800 Subject: [PATCH] Fix loongarch architecture support (cherry picked from commit 002e19205fdcf7ce6fc2995df3f3a8bf14f3c4de) --- 0001-Add-loongarch-architecture-support.patch | 21 +++++++++---------- dnf.spec | 8 ++++++- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/0001-Add-loongarch-architecture-support.patch b/0001-Add-loongarch-architecture-support.patch index 177c430..2cb3ab9 100644 --- a/0001-Add-loongarch-architecture-support.patch +++ b/0001-Add-loongarch-architecture-support.patch @@ -1,25 +1,24 @@ -From 77d9646088647ae2bbecb70248701458662ebf48 Mon Sep 17 00:00:00 2001 -From: Sun Haiyong -Date: Wed, 22 Dec 2021 14:37:16 +0800 -Subject: [PATCH] Add loongarch architecture support. +From 07faf607bb2cfa8c99ced77301c589062782b14d Mon Sep 17 00:00:00 2001 +From: Wenhua Huang +Date: Mon, 6 May 2024 15:31:15 +0800 +Subject: [PATCH] Add loongarch architecture support --- - dnf/rpm/__init__.py | 2 ++ - 1 file changed, 2 insertions(+) + dnf/rpm/__init__.py | 1 + + 1 file changed, 1 insertion(+) diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py -index 696e594..0db8e95 100644 +index 12efca7..3ac5716 100644 --- a/dnf/rpm/__init__.py +++ b/dnf/rpm/__init__.py -@@ -97,6 +97,8 @@ _BASEARCH_MAP = _invert({ +@@ -97,6 +97,7 @@ _BASEARCH_MAP = _invert({ 'mipsel': ('mipsel',), 'mips64': ('mips64',), 'mips64el': ('mips64el',), + 'loongarch32' : ('loongarch32',), -+ 'loongarch64' : ('loongarch64',), + 'loongarch64': ('loongarch64',), 'noarch': ('noarch',), 'ppc': ('ppc',), - 'ppc64': ('ppc64', 'ppc64iseries', 'ppc64p7', 'ppc64pseries'), -- -2.30.0 +2.33.0 diff --git a/dnf.spec b/dnf.spec index 11d0084..4f6d789 100644 --- a/dnf.spec +++ b/dnf.spec @@ -3,7 +3,7 @@ Name: dnf Version: 4.16.2 -Release: 2 +Release: 3 Summary: A software package manager that manages packages on Linux distributions. License: GPL-2.0-or-later AND GPL-1.0-only URL: https://github.com/rpm-software-management/dnf @@ -252,6 +252,12 @@ popd %{_mandir}/man8/%{name}-automatic.8* %changelog +* Mon May 06 2024 huangwenhua - 4.16.2-3 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:dnf:Fix loongarch architecture support + * Tue Jan 02 2024 chenhaixing - 4.16.2-2 - Type:bugfix - CVE:NA -- Gitee