!128 [sync] PR-123: 添加sw架构

From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-11-08 02:22:24 +00:00 committed by Gitee
commit 7e1d361b2d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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