From 21f28f7d9dcff98294f8a7da997b971f70ef0782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8B=87?= Date: Fri, 6 Aug 2021 15:11:31 +0800 Subject: [PATCH] Add missing extern variable in .c file fix downstream undefined reference problem --- Fix-missing-extern.patch | 13 +++++++++++++ libpsm2.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Fix-missing-extern.patch diff --git a/Fix-missing-extern.patch b/Fix-missing-extern.patch new file mode 100644 index 0000000..83af987 --- /dev/null +++ b/Fix-missing-extern.patch @@ -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; diff --git a/libpsm2.spec b/libpsm2.spec index 98c9d92..aa87aaf 100644 --- a/libpsm2.spec +++ b/libpsm2.spec @@ -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 - 10.3.58-9 +- Fix downstream missing lib problem + * Mon Aug 02 2021 wangyong - 10.3.58-8 - Fix build error caused by GCC upgrade to GCC-10 -- Gitee