!133 Add loongarch support for dnf
From: @zhangwenlong01 Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
d311e1f951
25
0001-Add-loongarch-architecture-support.patch
Normal file
25
0001-Add-loongarch-architecture-support.patch
Normal 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
|
||||
|
||||
8
dnf.spec
8
dnf.spec
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user