!8 fix build error when other packages require opa-psm2
From: @aslfjk Reviewed-by: @yanan-rock Signed-off-by: @yanan-rock
This commit is contained in:
commit
54bed98f8e
13
Fix-missing-extern.patch
Normal file
13
Fix-missing-extern.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/psm_utils.c b/psm_utils.c
|
||||
index 87e522b..6b7c0d1 100644
|
||||
--- a/psm_utils.c
|
||||
+++ b/psm_utils.c
|
||||
@@ -57,6 +57,8 @@
|
||||
#include "psm_mq_internal.h"
|
||||
#include "psm_am_internal.h"
|
||||
|
||||
+uint32_t psmi_cpu_model;
|
||||
+
|
||||
int psmi_ep_device_is_enabled(const psm2_ep_t ep, int devid);
|
||||
|
||||
struct psmi_epid_table psmi_epid_table;
|
||||
@ -1,6 +1,6 @@
|
||||
Name: libpsm2
|
||||
Version: 10.3.58
|
||||
Release: 8
|
||||
Release: 9
|
||||
Summary: Intel PSM Libraries
|
||||
License: BSD or GPLv2
|
||||
URL: https://github.com/01org/opa-psm2/
|
||||
@ -10,6 +10,7 @@ Source0: https://github.com/intel/opa-psm2/archive/PSM2_10.3.58.tar.gz
|
||||
Patch0: 0000-extend-fdesc-array.patch
|
||||
Patch1: fix-stringop-truncation-build-error.patch
|
||||
Patch2: Fix-opa-psm2-gcc10.patch
|
||||
Patch3: Fix-missing-extern.patch
|
||||
|
||||
ExclusiveArch: x86_64
|
||||
BuildRequires: libuuid-devel numactl-devel gcc systemd-udev
|
||||
@ -74,6 +75,9 @@ rm -f %{buildroot}%{_libdir}/*.a
|
||||
%{_sysconfdir}/modprobe.d/libpsm2-compat.conf
|
||||
|
||||
%changelog
|
||||
* Fri Aug 06 2021 wangyong <wangyong187@huawei.com> - 10.3.58-9
|
||||
- Fix downstream missing lib problem
|
||||
|
||||
* Mon Aug 02 2021 wangyong <wangyong187@huawei.com> - 10.3.58-8
|
||||
- Fix build error caused by GCC upgrade to GCC-10
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user