fix build error in loongarch64
This commit is contained in:
parent
6ed835b22f
commit
ef6ae6ac2f
25
0001-resolving-loongarch64-compilation-errors.patch
Normal file
25
0001-resolving-loongarch64-compilation-errors.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 82350f0759efb43ddd7e0d26beb48fb9243d811e Mon Sep 17 00:00:00 2001
|
||||
From: doupengda <doupengda@loongson.cn>
|
||||
Date: Tue, 23 Jan 2024 17:02:11 +0800
|
||||
Subject: [PATCH] resolving loongarch64 compilation errors
|
||||
|
||||
---
|
||||
src/libpmem2/loongarch64/init.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/libpmem2/loongarch64/init.c b/src/libpmem2/loongarch64/init.c
|
||||
index f8b531b..6b5572a 100644
|
||||
--- a/src/libpmem2/loongarch64/init.c
|
||||
+++ b/src/libpmem2/loongarch64/init.c
|
||||
@@ -36,6 +36,6 @@ pmem2_arch_init(struct pmem2_arch_info *info)
|
||||
{
|
||||
LOG(3, NULL);
|
||||
|
||||
- info->fence = loongarch_fence;
|
||||
+ info->fence = loongarch_memory_fence;
|
||||
info->flush = loongarch_flush;
|
||||
}
|
||||
--
|
||||
2.33.0
|
||||
|
||||
|
||||
@ -7,19 +7,19 @@
|
||||
Name: nvml
|
||||
Summary: Persistent Memory Development Kit (formerly NVML)
|
||||
Version: 1.13.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: BSD-3-Clause
|
||||
URL: http://pmem.io/pmdk
|
||||
|
||||
Source0: https://github.com/pmem/pmdk/releases/download/%{upstreamversion}/pmdk-%{upstreamversion}.tar.gz
|
||||
|
||||
Patch0001: 0001-resolving-loongarch64-compilation-errors.patch
|
||||
BuildRequires: gcc make glibc-devel autoconf automake man doxygen pkgconfig cmake
|
||||
BuildRequires: ndctl-devel >= %{min_ndctl_ver} daxctl-devel >= %{min_ndctl_ver}
|
||||
BuildRequires: libfabric-devel >= %{min_libfabric_ver}
|
||||
|
||||
Requires: libfabric >= %{min_libfabric_ver} openssh-clients
|
||||
|
||||
ExclusiveArch: x86_64
|
||||
ExclusiveArch: x86_64 loongarch64
|
||||
|
||||
Obsoletes: nvml-tools < %{version}-%{release}
|
||||
|
||||
@ -246,6 +246,9 @@ echo "PMEM_FS_DIR_FORCE_PMEM=1" >> src/test/testconfig.sh
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon May 13 2024 Huang Yang <huangyang@loongson.cn> - 1.13.1-2
|
||||
- fix build error in loongarch64
|
||||
|
||||
* Tue Sep 5 2023 liyanan <thistleslyn@163.com> - 1.13.1-1
|
||||
- update to 1.13.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user