Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 7121066c2da12ce987bf614408a59bca1bf1c207)
This commit is contained in:
wzx 2022-11-03 20:01:20 +08:00 committed by openeuler-sync-bot
parent 638e5ede4f
commit 67daf88249
2 changed files with 18 additions and 1 deletions

11
dnf-4.10.0-sw.patch Executable file
View File

@ -0,0 +1,11 @@
diff -Naur dnf-4.10.0.org/dnf/rpm/__init__.py dnf-4.10.0.sw/dnf/rpm/__init__.py
--- dnf-4.10.0.org/dnf/rpm/__init__.py 2022-02-27 01:21:45.610000000 +0000
+++ dnf-4.10.0.sw/dnf/rpm/__init__.py 2022-02-27 01:22:17.040000000 +0000
@@ -87,6 +87,7 @@
_BASEARCH_MAP = _invert({
'aarch64': ('aarch64',),
+ 'sw_64': ('sw_64',),
'alpha': ('alpha', 'alphaev4', 'alphaev45', 'alphaev5', 'alphaev56',
'alphaev6', 'alphaev67', 'alphaev68', 'alphaev7', 'alphapca56'),
'arm': ('armv5tejl', 'armv5tel', 'armv5tl', 'armv6l', 'armv7l', 'armv8l'),

View File

@ -3,7 +3,7 @@
Name: dnf
Version: 4.10.0
Release: 7
Release: 8
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
@ -17,6 +17,9 @@ Patch9004: fix-dnf-history-undo-error-when-history-sqlite-missing.pat
Patch6000: backport-fix-dnf-mark-error-when-history-sqlite-missing.patch
Patch6001: backport-Fix-Python-dnf-API-does-not-respect-cacheonly-RhBug1862970.patch
%ifarch sw_64
Patch6002: dnf-4.10.0-sw.patch
%endif
BuildArch: noarch
BuildRequires: cmake gettext systemd bash-completion python3-sphinx
@ -228,6 +231,9 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v
%{_mandir}/man8/%{name}-automatic.8*
%changelog
* Thu Jul 28 2022 wuzx<wuzx1226@qq.com> - 4.10.0-8
- add sw64 patch
* Thu Jun 28 2022 chenhaixing <chenhaixing@huawei.com> - 4.10.0-7
- Type:bugfix
- CVE:NA