From 67daf882491034421544cb12537af2cfbdcddc22 Mon Sep 17 00:00:00 2001 From: wzx Date: Thu, 3 Nov 2022 20:01:20 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx (cherry picked from commit 7121066c2da12ce987bf614408a59bca1bf1c207) --- dnf-4.10.0-sw.patch | 11 +++++++++++ dnf.spec | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 dnf-4.10.0-sw.patch diff --git a/dnf-4.10.0-sw.patch b/dnf-4.10.0-sw.patch new file mode 100755 index 0000000..15db699 --- /dev/null +++ b/dnf-4.10.0-sw.patch @@ -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'), diff --git a/dnf.spec b/dnf.spec index 40ecb8e..61ed9a6 100644 --- a/dnf.spec +++ b/dnf.spec @@ -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 - 4.10.0-8 +- add sw64 patch + * Thu Jun 28 2022 chenhaixing - 4.10.0-7 - Type:bugfix - CVE:NA