Add loongarch support for dnf

Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn>
This commit is contained in:
Wenlong Zhang 2022-11-19 01:30:42 +00:00
parent 5a317830b0
commit 7098a2de5b
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 77d9646088647ae2bbecb70248701458662ebf48 Mon Sep 17 00:00:00 2001
From: Sun Haiyong <sunhaiyong@loongson.cn>
Date: Wed, 22 Dec 2021 14:37:16 +0800
Subject: [PATCH] Add loongarch architecture support.
---
dnf/rpm/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py
index 696e594..0db8e95 100644
--- a/dnf/rpm/__init__.py
+++ b/dnf/rpm/__init__.py
@@ -97,6 +97,8 @@ _BASEARCH_MAP = _invert({
'mipsel': ('mipsel',),
'mips64': ('mips64',),
'mips64el': ('mips64el',),
+ 'loongarch32' : ('loongarch32',),
+ 'loongarch64' : ('loongarch64',),
'noarch': ('noarch',),
'ppc': ('ppc',),
'ppc64': ('ppc64', 'ppc64iseries', 'ppc64p7', 'ppc64pseries'),
--
2.30.0

View File

@ -3,7 +3,7 @@
Name: dnf
Version: 4.14.0
Release: 1
Release: 2
Summary: A software package manager that manages packages on Linux distributions.
License: GPLv2+ and GPLv2 and GPL
URL: https://github.com/rpm-software-management/dnf
@ -18,6 +18,9 @@ Patch9004: fix-dnf-history-undo-error-when-history-sqlite-missing.pat
%ifarch sw_64
Patch6002: dnf-4.10.0-sw.patch
%endif
%ifarch loongarch64
Patch6003: 0001-Add-loongarch-architecture-support.patch
%endif
BuildArch: noarch
BuildRequires: cmake gettext systemd bash-completion python3-sphinx
@ -229,6 +232,9 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v
%{_mandir}/man8/%{name}-automatic.8*
%changelog
* Sat Nov 19 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.14.0-2
- Add loongarch support for dnf
* Thu Nov 17 2022 chenhaixing <chenhaixing@huawei.com> - 4.14.0-1
- DESC:upgrade dnf version to 4.14.0