diff --git a/0000-extend-fdesc-array.patch b/0000-extend-fdesc-array.patch new file mode 100644 index 0000000000000000000000000000000000000000..47290578c0dbedf392045595106c9756f4fa47d2 --- /dev/null +++ b/0000-extend-fdesc-array.patch @@ -0,0 +1,11 @@ +--- psm_utils.c.orig 2018-03-14 21:12:33.678607767 -0400 ++++ psm_utils.c 2018-03-14 21:11:04.696909162 -0400 +@@ -951,7 +951,7 @@ struct psmi_faultinj_spec *psmi_faultinj + union psmi_envvar_val env_fi; + char fvals_str[128]; + char fname[128]; +- char fdesc[256]; ++ char fdesc[512]; + + snprintf(fvals_str, sizeof(fvals_str) - 1, "%d:%d:1", num, + denom); diff --git a/PSM2_10.3.58.tar.gz b/PSM2_10.3.58.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d3ffcf0429d714e68f0cdb6b9c162d5275619743 Binary files /dev/null and b/PSM2_10.3.58.tar.gz differ diff --git a/libpsm2.spec b/libpsm2.spec new file mode 100644 index 0000000000000000000000000000000000000000..97d4470b8ced4a59d2768967f46d4a0aa69445e8 --- /dev/null +++ b/libpsm2.spec @@ -0,0 +1,72 @@ +Name: libpsm2 +Version: 10.3.58 +Release: 3 +Summary: Intel PSM Libraries +License: BSD or GPLv2 +URL: https://github.com/01org/opa-psm2/ + +Source0: https://github.com/intel/opa-psm2/archive/PSM2_10.3.58.tar.gz +#extend fdesc array +Patch0: 0000-extend-fdesc-array.patch + +ExclusiveArch: x86_64 +BuildRequires: libuuid-devel numactl-devel +Obsoletes: hfi1-psm < 1.0.0 + +%package devel +Summary: Development files for Intel PSM +Requires: libpsm2 = 10.3.58-3 libuuid-devel + +%package compat +Summary: Compat library for Intel PSM +Requires: libpsm2 = 10.3.58-3 systemd-udev + +%description +The PSM Messaging API, or PSM API, is the low-level user-level communications interface for the Intel OPA +family of products. PSM users are enabled with mechanisms necessary to implement higher level communications +interfaces in parallel environments. The PSM2 library supports a number of fabric media and stack. + +%description devel +Development package for the Intel PSM library + +%description compat +Support for MPIs linked with PSM versions less than 2 + +%prep +%autosetup -n opa-psm2-PSM2_10.3.58 -p0 + +%build +%make_build + +%install +%make_install +rm -f %{buildroot}%{_libdir}/*.a + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%license COPYING +%{_libdir}/libpsm2.so.2.1 +%{_libdir}/libpsm2.so.2 +%{_udevrulesdir}/40-psm.rules + +%files devel +%{_libdir}/libpsm2.so +%{_includedir}/psm2.h +%{_includedir}/psm2_mq.h +%{_includedir}/psm2_am.h +%{_includedir}/hfi1diag + +%files compat +%{_libdir}/psm2-compat +%{_udevrulesdir}/40-psm-compat.rules +%{_prefix}/lib/libpsm2 +%{_sysconfdir}/modprobe.d/libpsm2-compat.conf + +%changelog +* Wed Mar 4 2020 zhangtao - 10.3.58-3 +- Package init