From 341c169dd5bd3f75affa4507f682d76878aca2f3 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Tue, 11 Mar 2025 13:23:31 +0800 Subject: [PATCH] Add sw_64 support (cherry picked from commit 80f4624e5a2dc5437003af649d8a3f9d116d7e96) --- 0002-fix-sw_64-build-error.patch | 25 +++++++++++++++++++++++++ isomd5sum.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0002-fix-sw_64-build-error.patch diff --git a/0002-fix-sw_64-build-error.patch b/0002-fix-sw_64-build-error.patch new file mode 100644 index 0000000..e5605ef --- /dev/null +++ b/0002-fix-sw_64-build-error.patch @@ -0,0 +1,25 @@ +From 870e7c48c64897522b7368ae2fa283d6387890c5 Mon Sep 17 00:00:00 2001 +From: mahailiang +Date: Mon, 3 Mar 2025 15:24:22 +0800 +Subject: [PATCH] fix sw_64 build error + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 208393c..6f532ed 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,7 @@ PYTHONINCLUDE := $(shell $(PYTHON)-config --includes) + + VERSION=1.2.5 + +-ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 mips64 riscv64 loongarch64,$(shell uname -m))) ++ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 mips64 riscv64 loongarch64 sw_64,$(shell uname -m))) + LIBDIR = lib64 + else + LIBDIR = lib +-- +2.39.3 + diff --git a/isomd5sum.spec b/isomd5sum.spec index 1e87afb..148a355 100644 --- a/isomd5sum.spec +++ b/isomd5sum.spec @@ -1,6 +1,6 @@ Name: isomd5sum Version: 1.2.5 -Release: 1 +Release: 2 Epoch: 1 Summary: Utilities for working with md5sum implanted in ISO images License: GPLv2+ @@ -8,6 +8,7 @@ URL: https://github.com/rhinstaller/isomd5sum Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz Patch0001: 0001-PATCH-add-loongarch64-support.patch +Patch0002: 0002-fix-sw_64-build-error.patch %global common_description %{expand: isomd5sum provides a way of making use of the ISO9660 application data @@ -67,6 +68,9 @@ make test %{_mandir}/man1/* %changelog +* Tue Mar 11 2025 mahailiang - 1:1.2.5-2 +- Add sw_64 support + * Wed Jul 3 warlcok - 1:1.2.5-1 - update to 1.2.5 - add loongarch64 support -- Gitee