!8 [sync] PR-7: fix build error for loongarch64
From: @openeuler-sync-bot Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
a883d82478
26
fix-build-error-for-loongarch64.patch
Normal file
26
fix-build-error-for-loongarch64.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From c8376fb7589920ab9fcb1daafc6166af7c7f21a7 Mon Sep 17 00:00:00 2001
|
||||
From: Jingyun Hua <huajingyun@loongson.cn>
|
||||
Date: Wed, 11 Jan 2023 16:43:06 +0800
|
||||
Subject: [PATCH] fix build error for loongarch64
|
||||
|
||||
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index c98cf35..f966afd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -4,7 +4,7 @@ PYTHONINCLUDE := $(shell $(PYTHON)-config --includes)
|
||||
|
||||
VERSION=1.2.3
|
||||
|
||||
-ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64,$(shell uname -m)))
|
||||
+ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 loongarch64,$(shell uname -m)))
|
||||
LIBDIR = lib64
|
||||
else
|
||||
LIBDIR = lib
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
Name: isomd5sum
|
||||
Version: 1.2.3
|
||||
Release: 6
|
||||
Release: 7
|
||||
Epoch: 1
|
||||
Summary: Utilities for working with md5sum implanted in ISO images
|
||||
License: GPLv2+
|
||||
URL: https://github.com/rhinstaller/isomd5sum
|
||||
Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz
|
||||
Patch1: fix-build-error-for-loongarch64.patch
|
||||
|
||||
%global common_description %{expand:
|
||||
isomd5sum provides a way of making use of the ISO9660 application data
|
||||
@ -62,6 +63,9 @@ PYTHON=%{__python3} make DESTDIR=%{buildroot} install-bin install-devel install-
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 11 2023 huajingyun <huajingyun@loongson.cn> - 1:1.2.3-7
|
||||
- fix build error for loongarch64
|
||||
|
||||
* Wed Oct 19 2022 zhangruifang <zhangruifang1@h-partners.com> - 1:1.2.3-6
|
||||
- remove redundant macros
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user