opa-psm2: add v11.2.185 (#21208)

- also update to reflect Cornelis Networks as source maintainer rather Intel
- also replace explicit install prefix patch with edit step file filter
This commit is contained in:
Phil Carns 2021-01-25 01:33:59 -05:00 committed by GitHub
parent 577f6e8ade
commit f269b4d7c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 88 deletions

View file

@ -1,78 +0,0 @@
diff -Naupr opa-psm2-PSM2_11.2.68/Makefile opa-psm2-PSM2_11.2.68-pathfix/Makefile
--- opa-psm2-PSM2_11.2.68/Makefile 2018-09-27 19:48:03.000000000 -0400
+++ opa-psm2-PSM2_11.2.68-pathfix/Makefile 2019-06-07 11:34:37.658270976 -0400
@@ -135,9 +135,9 @@ endif
ifndef LIBDIR
ifeq (${arch},x86_64)
- INSTALL_LIB_TARG=/usr/lib64
+ INSTALL_LIB_TARG=/lib64
else
- INSTALL_LIB_TARG=/usr/lib
+ INSTALL_LIB_TARG=/lib
endif
else
INSTALL_LIB_TARG=${LIBDIR}
@@ -177,7 +177,7 @@ UDEV_40_PSM_RULES := %{_udevrulesdir}/40
ifeq (fedora,$(DISTRO))
# On Fedora, we change these two variables to these values:
- LIBPSM2_COMPAT_CONF_DIR := /usr/lib
+ LIBPSM2_COMPAT_CONF_DIR := /lib
LIBPSM2_COMPAT_SYM_CONF_DIR := %{_prefix}/lib
SPEC_FILE_RELEASE_DIST := %{?dist}
UDEV_40_PSM_RULES :=#
@@ -411,20 +411,20 @@ install: all
ln -sf ${TARGLIB}.so.${MAJOR} ${TARGLIB}.so)
install -D $(OUTDIR)/${TARGLIB}.a \
${DESTDIR}${INSTALL_LIB_TARG}/${TARGLIB}.a
- install -m 0644 -D psm2.h ${DESTDIR}/usr/include/psm2.h
- install -m 0644 -D psm2_mq.h ${DESTDIR}/usr/include/psm2_mq.h
- install -m 0644 -D psm2_am.h ${DESTDIR}/usr/include/psm2_am.h
+ install -m 0644 -D psm2.h ${DESTDIR}/include/psm2.h
+ install -m 0644 -D psm2_mq.h ${DESTDIR}/include/psm2_mq.h
+ install -m 0644 -D psm2_am.h ${DESTDIR}/include/psm2_am.h
ifneq (fedora,${DISTRO})
install -m 0644 -D 40-psm.rules ${DESTDIR}$(UDEVDIR)/rules.d/40-psm.rules
endif
# The following files and dirs were part of the noship rpm:
- mkdir -p ${DESTDIR}/usr/include/hfi1diag
- mkdir -p ${DESTDIR}/usr/include/hfi1diag/linux-x86_64
- install -m 0644 -D include/linux-x86_64/bit_ops.h ${DESTDIR}/usr/include/hfi1diag/linux-x86_64/bit_ops.h
- install -m 0644 -D include/linux-x86_64/sysdep.h ${DESTDIR}/usr/include/hfi1diag/linux-x86_64/sysdep.h
- install -m 0644 -D include/opa_udebug.h ${DESTDIR}/usr/include/hfi1diag/opa_udebug.h
- install -m 0644 -D include/opa_debug.h ${DESTDIR}/usr/include/hfi1diag/opa_debug.h
- install -m 0644 -D include/opa_intf.h ${DESTDIR}/usr/include/hfi1diag/opa_intf.h
+ mkdir -p ${DESTDIR}/include/hfi1diag
+ mkdir -p ${DESTDIR}/include/hfi1diag/linux-x86_64
+ install -m 0644 -D include/linux-x86_64/bit_ops.h ${DESTDIR}/include/hfi1diag/linux-x86_64/bit_ops.h
+ install -m 0644 -D include/linux-x86_64/sysdep.h ${DESTDIR}/include/hfi1diag/linux-x86_64/sysdep.h
+ install -m 0644 -D include/opa_udebug.h ${DESTDIR}/include/hfi1diag/opa_udebug.h
+ install -m 0644 -D include/opa_debug.h ${DESTDIR}/include/hfi1diag/opa_debug.h
+ install -m 0644 -D include/opa_intf.h ${DESTDIR}/include/hfi1diag/opa_intf.h
for h in opa_user_gen1.h opa_service_gen1.h opa_common_gen1.h ; do \
sed -e 's/#include "opa_user_gen1.h"/#include "opa_user.h"/' \
-e 's/#include "opa_common_gen1.h"/#include "opa_common.h"/' \
@@ -434,14 +434,14 @@ endif
done
cat include/opa_user.h $(TEMP_INST_DIR)/opa_user_gen1.h > $(TEMP_INST_DIR)/opa_user.h
cat include/opa_service.h $(TEMP_INST_DIR)/opa_service_gen1.h > $(TEMP_INST_DIR)/opa_service.h
- install -m 0644 -D $(TEMP_INST_DIR)/opa_user.h ${DESTDIR}/usr/include/hfi1diag/opa_user.h
- install -m 0644 -D $(TEMP_INST_DIR)/opa_service.h ${DESTDIR}/usr/include/hfi1diag/opa_service.h
- install -m 0644 -D $(TEMP_INST_DIR)/opa_common_gen1.h ${DESTDIR}/usr/include/hfi1diag/opa_common.h
- install -m 0644 -D include/opa_byteorder.h ${DESTDIR}/usr/include/hfi1diag/opa_byteorder.h
- install -m 0644 -D include/psm2_mock_testing.h ${DESTDIR}/usr/include/hfi1diag/psm2_mock_testing.h
- install -m 0644 -D include/opa_revision.h ${DESTDIR}/usr/include/hfi1diag/opa_revision.h
- install -m 0644 -D psmi_wrappers.h ${DESTDIR}/usr/include/hfi1diag/psmi_wrappers.h
- install -m 0644 -D psm_hal_gen1/hfi1_deprecated_gen1.h ${DESTDIR}/usr/include/hfi1diag/hfi1_deprecated.h
+ install -m 0644 -D $(TEMP_INST_DIR)/opa_user.h ${DESTDIR}/include/hfi1diag/opa_user.h
+ install -m 0644 -D $(TEMP_INST_DIR)/opa_service.h ${DESTDIR}/include/hfi1diag/opa_service.h
+ install -m 0644 -D $(TEMP_INST_DIR)/opa_common_gen1.h ${DESTDIR}/include/hfi1diag/opa_common.h
+ install -m 0644 -D include/opa_byteorder.h ${DESTDIR}/include/hfi1diag/opa_byteorder.h
+ install -m 0644 -D include/psm2_mock_testing.h ${DESTDIR}/include/hfi1diag/psm2_mock_testing.h
+ install -m 0644 -D include/opa_revision.h ${DESTDIR}/include/hfi1diag/opa_revision.h
+ install -m 0644 -D psmi_wrappers.h ${DESTDIR}/include/hfi1diag/psmi_wrappers.h
+ install -m 0644 -D psm_hal_gen1/hfi1_deprecated_gen1.h ${DESTDIR}/include/hfi1diag/hfi1_deprecated.h
rm -fr $(TEMP_INST_DIR)
specfile: specfile_clean | $(OUTDIR)

View file

@ -7,11 +7,12 @@
class OpaPsm2(MakefilePackage):
""" Intel Omni-Path Performance Scaled Messaging 2 (PSM2) library"""
""" Omni-Path Performance Scaled Messaging 2 (PSM2) library"""
homepage = "http://github.com/intel/opa-psm2"
url = "https://github.com/intel/opa-psm2/archive/PSM2_10.3-8.tar.gz"
homepage = "http://github.com/cornelisnetworks/opa-psm2"
url = "https://github.com/cornelisnetworks/opa-psm2/archive/PSM2_10.3-8.tar.gz"
version('11.2.185', sha256='8c0446e989feb4a3822791e4a3687060916f7c4612d1e8e493879be66f10db09')
version('11.2.77', sha256='5cc33d1e19d871a5861efe0bb897526f404b4bf2b88ac58bb277db96ac5ecb54')
version('11.2.68', sha256='42e16a14fc8c90b50855dcea46af3315bee32fb1ae89d83060f9b2ebdce1ec26')
version('10.3-37', sha256='43e46f6fb345db67bb45b48e2b2bb05f590f7ccbc3ee337b33312043b46946b9')
@ -26,13 +27,8 @@ class OpaPsm2(MakefilePackage):
depends_on('numactl')
# patch to prevent opa-psm2 from adding an additional "usr/"
# subdirectory within the installation prefix, which breaks paths for
# dependent packages like libfabric
patch('opa-psm2-install-prefix.patch', when='@11.2.68:')
# patch to get the Makefile to use the spack compiler wrappers
patch('opa-psm2-compiler.patch', when='@11.2.68:',
patch('opa-psm2-compiler.patch', when='@11.2.68:11.2.77',
sha256='fe31fda9aaee13acb87d178af2282446196d2cc0b21163034573706110b2e2d6')
def setup_build_environment(self, env):
@ -46,7 +42,8 @@ def edit(self, spec, prefix):
# Change the makefile so libraries and includes are not
# placed under $PREFIX/usr
env['LIBDIR'] = '/lib'
filter_file(r'${DESTDIR}/usr', '${DESTDIR}', 'Makefile')
filter_file(r'${DESTDIR}/usr', '${DESTDIR}', 'Makefile', string=True)
filter_file(r'/usr/lib', '/lib', 'Makefile', string=True)
if '~avx2' in spec:
env['PSM_DISABLE_AVX2'] = 'True'