From 581792f72f3ff1bc8acbc125eed2bd3dc412841d92e3250887c1594beb32f93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:24:54 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main opa-ff revision a48d016df9ef4c09cec6da1331399a6a --- .gitattributes | 23 ++ _service | 18 + opa-cablehealth.service | 17 + opa-cablehealth.timer | 10 + opa-ff-10.12.1.0.6.0.d62756adb09f.tar.gz | 3 + opa-ff-add-shebang-for-exp-files.patch | 404 ++++++++++++++++++++++ opa-ff-suse-build-fixes.patch | 62 ++++ opa-ff.changes | 195 +++++++++++ opa-ff.rpmlintrc | 2 + opa-ff.spec | 417 +++++++++++++++++++++++ workaround-bsc-1172755.patch | 24 ++ 11 files changed, 1175 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 opa-cablehealth.service create mode 100644 opa-cablehealth.timer create mode 100644 opa-ff-10.12.1.0.6.0.d62756adb09f.tar.gz create mode 100644 opa-ff-add-shebang-for-exp-files.patch create mode 100644 opa-ff-suse-build-fixes.patch create mode 100644 opa-ff.changes create mode 100644 opa-ff.rpmlintrc create mode 100644 opa-ff.spec create mode 100644 workaround-bsc-1172755.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..016e70d --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + git + https://github.com/cornelisnetworks/opa-ff.git + no + .git + opa-ff + @PARENT_TAG@.@TAG_OFFSET@.%h + v(.*) + \1 + d62756adb09f53cf960ad6bfe6695678da8266b1 + + + opa-ff*.tar + gz + + + diff --git a/opa-cablehealth.service b/opa-cablehealth.service new file mode 100644 index 0000000..2dcf29b --- /dev/null +++ b/opa-cablehealth.service @@ -0,0 +1,17 @@ +[Unit] +Description=Automatic execution of opa-cablehealth + +[Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +ProtectHome=true +ProtectHostname=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions + +Type=oneshot +ExecStart=/usr/lib/opa/tools/opacablehealthcron \ No newline at end of file diff --git a/opa-cablehealth.timer b/opa-cablehealth.timer new file mode 100644 index 0000000..b91c697 --- /dev/null +++ b/opa-cablehealth.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Automatic execution of opa-cablehealth + +[Timer] +OnCalendar=Daily +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=timers.target \ No newline at end of file diff --git a/opa-ff-10.12.1.0.6.0.d62756adb09f.tar.gz b/opa-ff-10.12.1.0.6.0.d62756adb09f.tar.gz new file mode 100644 index 0000000..a531af3 --- /dev/null +++ b/opa-ff-10.12.1.0.6.0.d62756adb09f.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfa36a8a45dd558cf4a3d020a38292964060ad0c771fccd36591c30687e0b139 +size 2948936 diff --git a/opa-ff-add-shebang-for-exp-files.patch b/opa-ff-add-shebang-for-exp-files.patch new file mode 100644 index 0000000..a81af2b --- /dev/null +++ b/opa-ff-add-shebang-for-exp-files.patch @@ -0,0 +1,404 @@ +commit a63f004c9c628bcaa4750485bb3949dbc62a8422 +Author: Nicolas Morey-Chaisemartin +Date: Thu Jun 8 11:13:38 2017 +0200 + + opa-ff add shebang for exp files + + Signed-off-by: Nicolas Morey-Chaisemartin + +diff --git IbaTools/FastFabric/chassis_configure.exp IbaTools/FastFabric/chassis_configure.exp +index f18397fb794d..6ad42beb6c85 100644 +--- IbaTools/FastFabric/chassis_configure.exp ++++ IbaTools/FastFabric/chassis_configure.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git IbaTools/FastFabric/chassis_fmconfig.exp IbaTools/FastFabric/chassis_fmconfig.exp +index 9ec04cc20b5d..f407dceec5b0 100644 +--- IbaTools/FastFabric/chassis_fmconfig.exp ++++ IbaTools/FastFabric/chassis_fmconfig.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/chassis_fmcontrol.exp IbaTools/FastFabric/chassis_fmcontrol.exp +index 477953a9dc0f..129ab654d081 100644 +--- IbaTools/FastFabric/chassis_fmcontrol.exp ++++ IbaTools/FastFabric/chassis_fmcontrol.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/chassis_fmgetconfig.exp IbaTools/FastFabric/chassis_fmgetconfig.exp +index 2e61cde7241e..f6a4aa8d75bc 100644 +--- IbaTools/FastFabric/chassis_fmgetconfig.exp ++++ IbaTools/FastFabric/chassis_fmgetconfig.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/chassis_fmgetsecurityfiles.exp IbaTools/FastFabric/chassis_fmgetsecurityfiles.exp +index d31e055ff22f..afd9025f77be 100644 +--- IbaTools/FastFabric/chassis_fmgetsecurityfiles.exp ++++ IbaTools/FastFabric/chassis_fmgetsecurityfiles.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/chassis_fmsecurityfiles.exp IbaTools/FastFabric/chassis_fmsecurityfiles.exp +index 5c2a45dfe394..69c819af80b4 100644 +--- IbaTools/FastFabric/chassis_fmsecurityfiles.exp ++++ IbaTools/FastFabric/chassis_fmsecurityfiles.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/chassis_getconfig.exp IbaTools/FastFabric/chassis_getconfig.exp +index 7454afce2e9d..6ede46d963b7 100644 +--- IbaTools/FastFabric/chassis_getconfig.exp ++++ IbaTools/FastFabric/chassis_getconfig.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git IbaTools/FastFabric/chassis_reboot.exp IbaTools/FastFabric/chassis_reboot.exp +index b5f1f39b7d2a..8642c498ebc6 100644 +--- IbaTools/FastFabric/chassis_reboot.exp ++++ IbaTools/FastFabric/chassis_reboot.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/chassis_upgrade.exp IbaTools/FastFabric/chassis_upgrade.exp +index b2aa797b671e..981d2617e417 100644 +--- IbaTools/FastFabric/chassis_upgrade.exp ++++ IbaTools/FastFabric/chassis_upgrade.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/configipoib.exp IbaTools/FastFabric/configipoib.exp +index 10673114e371..8a0d86121986 100644 +--- IbaTools/FastFabric/configipoib.exp ++++ IbaTools/FastFabric/configipoib.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/ff_function.exp IbaTools/FastFabric/ff_function.exp +index ab64a00d054a..55f3d2c14bad 100644 +--- IbaTools/FastFabric/ff_function.exp ++++ IbaTools/FastFabric/ff_function.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/ipoibping.exp IbaTools/FastFabric/ipoibping.exp +index 5739e6072066..48bd84131283 100644 +--- IbaTools/FastFabric/ipoibping.exp ++++ IbaTools/FastFabric/ipoibping.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/load.exp IbaTools/FastFabric/load.exp +index b9d07514d3be..687983e68be4 100644 +--- IbaTools/FastFabric/load.exp ++++ IbaTools/FastFabric/load.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/mpiperf.exp IbaTools/FastFabric/mpiperf.exp +index 3b69e3a6e0dd..69e0f9afdcc9 100644 +--- IbaTools/FastFabric/mpiperf.exp ++++ IbaTools/FastFabric/mpiperf.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/mpiperfdeviation.exp IbaTools/FastFabric/mpiperfdeviation.exp +index bcd9839b16a0..113639d7326c 100644 +--- IbaTools/FastFabric/mpiperfdeviation.exp ++++ IbaTools/FastFabric/mpiperfdeviation.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/reboot.exp IbaTools/FastFabric/reboot.exp +index 53fc4b6d6d20..97b5e2bb7665 100644 +--- IbaTools/FastFabric/reboot.exp ++++ IbaTools/FastFabric/reboot.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/sacache.exp IbaTools/FastFabric/sacache.exp +index b9c188d02a8a..bc9ceaa9f4b0 100644 +--- IbaTools/FastFabric/sacache.exp ++++ IbaTools/FastFabric/sacache.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/switch_capture.exp IbaTools/FastFabric/switch_capture.exp +index 4e7054df4024..30351ccfab6f 100644 +--- IbaTools/FastFabric/switch_capture.exp ++++ IbaTools/FastFabric/switch_capture.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/switch_configure.exp IbaTools/FastFabric/switch_configure.exp +index 3516482b53ee..0bd7c8391d1f 100644 +--- IbaTools/FastFabric/switch_configure.exp ++++ IbaTools/FastFabric/switch_configure.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git IbaTools/FastFabric/switch_dump.exp IbaTools/FastFabric/switch_dump.exp +index dae0e5b26d45..0d17627946fd 100644 +--- IbaTools/FastFabric/switch_dump.exp ++++ IbaTools/FastFabric/switch_dump.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/switch_fwverify.exp IbaTools/FastFabric/switch_fwverify.exp +index 7cf1101384ec..20016f27b8e8 100644 +--- IbaTools/FastFabric/switch_fwverify.exp ++++ IbaTools/FastFabric/switch_fwverify.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + + # BEGIN_ICS_COPYRIGHT8 **************************************** + # +diff --git IbaTools/FastFabric/switch_getconfig.exp IbaTools/FastFabric/switch_getconfig.exp +index 30d6b3fbdc60..16f8ed441ade 100644 +--- IbaTools/FastFabric/switch_getconfig.exp ++++ IbaTools/FastFabric/switch_getconfig.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + + # BEGIN_ICS_COPYRIGHT8 **************************************** + # +diff --git IbaTools/FastFabric/switch_hwvpd.exp IbaTools/FastFabric/switch_hwvpd.exp +index 266518cc119c..e46696b6031d 100644 +--- IbaTools/FastFabric/switch_hwvpd.exp ++++ IbaTools/FastFabric/switch_hwvpd.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + + # BEGIN_ICS_COPYRIGHT8 **************************************** + # +diff --git IbaTools/FastFabric/switch_info.exp IbaTools/FastFabric/switch_info.exp +index 735a5e5303a2..f5389a356542 100644 +--- IbaTools/FastFabric/switch_info.exp ++++ IbaTools/FastFabric/switch_info.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + + # BEGIN_ICS_COPYRIGHT8 **************************************** + # +diff --git IbaTools/FastFabric/switch_ping.exp IbaTools/FastFabric/switch_ping.exp +index 87733455e0de..7d11f907d48a 100644 +--- IbaTools/FastFabric/switch_ping.exp ++++ IbaTools/FastFabric/switch_ping.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + + # BEGIN_ICS_COPYRIGHT8 **************************************** + # +diff --git IbaTools/FastFabric/switch_reboot.exp IbaTools/FastFabric/switch_reboot.exp +index 1ee19eaa06f6..840e2a39f4ba 100644 +--- IbaTools/FastFabric/switch_reboot.exp ++++ IbaTools/FastFabric/switch_reboot.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/switch_upgrade.exp IbaTools/FastFabric/switch_upgrade.exp +index 6c5c1041a179..1560d6b39f30 100644 +--- IbaTools/FastFabric/switch_upgrade.exp ++++ IbaTools/FastFabric/switch_upgrade.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git IbaTools/FastFabric/upgrade.exp IbaTools/FastFabric/upgrade.exp +index dd4abe573690..de0e352bd440 100644 +--- IbaTools/FastFabric/upgrade.exp ++++ IbaTools/FastFabric/upgrade.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2017, Intel Corporation +diff --git TestTools/basic.exp TestTools/basic.exp +index 4ffe1f5dbb10..cae42a380ad4 100644 +--- TestTools/basic.exp ++++ TestTools/basic.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/chassis.exp TestTools/chassis.exp +index 93265e2d30ed..488ab27fbbf1 100644 +--- TestTools/chassis.exp ++++ TestTools/chassis.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2020, Intel Corporation +diff --git TestTools/common_funcs.exp TestTools/common_funcs.exp +index 68d55d8fdf48..22bed8bdbb7e 100644 +--- TestTools/common_funcs.exp ++++ TestTools/common_funcs.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/defs.exp TestTools/defs.exp +index 8e1a8e6e816d..2081a2b64d1e 100644 +--- TestTools/defs.exp ++++ TestTools/defs.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/extmng.exp TestTools/extmng.exp +index cf6d989fc8f5..52caed45283b 100644 +--- TestTools/extmng.exp ++++ TestTools/extmng.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2020, Intel Corporation +diff --git TestTools/ib.exp TestTools/ib.exp +index 06c4a6ecc645..5b32311d123f 100644 +--- TestTools/ib.exp ++++ TestTools/ib.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/ibtools.exp TestTools/ibtools.exp +index 36b945c565eb..b23ae61a60d4 100644 +--- TestTools/ibtools.exp ++++ TestTools/ibtools.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/install.exp TestTools/install.exp +index 773676547a28..8b84886318c8 100644 +--- TestTools/install.exp ++++ TestTools/install.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/mpi.exp TestTools/mpi.exp +index f3b7e29fb0d0..d810878a5759 100644 +--- TestTools/mpi.exp ++++ TestTools/mpi.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2020, Intel Corporation +diff --git TestTools/network.exp TestTools/network.exp +index c1b8867019f0..f4f212c5a59b 100644 +--- TestTools/network.exp ++++ TestTools/network.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/opa_to_xml.exp TestTools/opa_to_xml.exp +index f81f07ae8c00..fd52484818ef 100644 +--- TestTools/opa_to_xml.exp ++++ TestTools/opa_to_xml.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2020, Intel Corporation +diff --git TestTools/proc_mgr.exp TestTools/proc_mgr.exp +index abcb65d214ec..e86621d5ea12 100644 +--- TestTools/proc_mgr.exp ++++ TestTools/proc_mgr.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/sm_control.exp TestTools/sm_control.exp +index 7f08ccb0e6e0..e639b1a44132 100644 +--- TestTools/sm_control.exp ++++ TestTools/sm_control.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/switch_methods.exp TestTools/switch_methods.exp +index 9f1377397dcb..cf59126aeb35 100644 +--- TestTools/switch_methods.exp ++++ TestTools/switch_methods.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation +diff --git TestTools/target.exp TestTools/target.exp +index 8d8311aaa1a6..2e5c05e4e0b9 100644 +--- TestTools/target.exp ++++ TestTools/target.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015-2020, Intel Corporation +diff --git TestTools/tools.exp TestTools/tools.exp +index 850e7891b035..1250087c58be 100644 +--- TestTools/tools.exp ++++ TestTools/tools.exp +@@ -1,3 +1,4 @@ ++#!/usr/bin/expect + # BEGIN_ICS_COPYRIGHT8 **************************************** + # + # Copyright (c) 2015, Intel Corporation diff --git a/opa-ff-suse-build-fixes.patch b/opa-ff-suse-build-fixes.patch new file mode 100644 index 0000000..473715e --- /dev/null +++ b/opa-ff-suse-build-fixes.patch @@ -0,0 +1,62 @@ +commit 8a65ab8349d0a4d9879469d88fb798a275bb2c60 +Author: Nicolas Morey-Chaisemartin +Date: Thu Jun 8 11:11:01 2017 +0200 + + opa-ff suse build fixes + + Signed-off-by: Nicolas Morey-Chaisemartin + +diff --git Makerules/Defs.Flags Makerules/Defs.Flags +index c4ceb2711b45..35112ca71974 100755 +--- Makerules/Defs.Flags ++++ Makerules/Defs.Flags +@@ -53,8 +53,8 @@ CCDEPENDFLAGS = $(CCFLAGS) $(DEPENDENV) $(DEPENDPROJ) $(DEPENDMOD) $(DEPENDLOCA + + CINCLUDE_DIRS = $(LOCAL_INCLUDE_DIRS) $(MOD_INCLUDE_DIRS) $(PROJ_INCLUDE_DIRS) $(SYS_INCLUDE_DIRS) + ifndef KERNELRELEASE +-CFLAGS = $(CMACH) $(CSYS) $(CENV) $(CENVFS) $(CPROJ) $(CMOD) $(CLOCAL) $(COPT) $(CDEBUG) $(CINCSRCH) +-CCFLAGS = $(CCMACH) $(CCSYS) $(CCENV) $(CCENVFS) $(CCPROJ) $(CCMOD) $(CCLOCAL) $(CCOPT) $(CCDEBUG) $(CINCSRCH) ++CFLAGS = $(CMACH) $(CSYS) $(CENV) $(CENVFS) $(CPROJ) $(CMOD) $(CLOCAL) $(COPT) $(CDEBUG) $(CINCSRCH) $(RPM_OPT_FLAGS) ++CCFLAGS = $(CCMACH) $(CCSYS) $(CCENV) $(CCENVFS) $(CCPROJ) $(CCMOD) $(CCLOCAL) $(CCOPT) $(CCDEBUG) $(CINCSRCH) $(RPM_OPT_FLAGS) + + LDFLAGS = $(LDMACH) $(LDSYS) $(LDENV) $(LDENVFS) $(LDPROJ) $(LDMOD) $(LDLOCAL) $(LDLIBSRCH) $(LDSTRIP) $(LDOUTPUT) + LD_LIB_DIRS = $(LOCAL_LIB_DIRS) $(MOD_LIB_DIRS) $(PROJ_LIB_DIRS) $(SYS_LIB_DIRS) +diff --git Makerules/Target.LINUX.INTEL.X86_64 Makerules/Target.LINUX.INTEL.X86_64 +index a373262676b5..3a6687d563cc 100755 +--- Makerules/Target.LINUX.INTEL.X86_64 ++++ Makerules/Target.LINUX.INTEL.X86_64 +@@ -132,6 +132,7 @@ endif + + endif + CKERNEL+=-include $(TL_DIR)/Makerules/LINUX/$(BUILD_TARGET).$(BUILD_TARGET_OS_VENDOR).$(BUILD_TARGET_OS_VERSION).h ++CKERNEL+= $(RPM_OPT_FLAGS) + + # Include directories for kernel + KERNELDIR=/lib/modules/$(BUILD_TARGET_OS_VERSION)/build +diff --git OpenIb_Host/ff_build.sh OpenIb_Host/ff_build.sh +index dd457e3cf16a..3f31c8ae26be 100755 +--- OpenIb_Host/ff_build.sh ++++ OpenIb_Host/ff_build.sh +@@ -57,7 +57,13 @@ export PRODUCT=${PRODUCT:-OPENIB_FF} + # for FF the kernel rev is not important. We simply use the kernel rev + # of the running kernel. While BUILD_TARGET_OS_VERSION is needed by Makerules + # it will have no impact on what is actually built for FF +-export BUILD_TARGET_OS_VERSION=${BUILD_TARGET_OS_VERSION:-`uname -r`} ++export BUILD_TARGET_OS_VERSION=`uname -r` ++export BUILD_PLATFORM_OS_VENDOR="SuSE" ++export BUILD_TARGET_OS_VENDOR="SuSE" ++export BUILD_PLATFORM_OS_VENDOR_VERSION="OPENSUSE_BUILD_SYSTEM" ++export BUILD_TARGET_OS_VENDOR=$BUILD_PLATFORM_OS_VENDOR ++export BUILD_TARGET_OS_VENDOR_VERSION=$BUILD_PLATFORM_OS_VENDOR_VERSION ++ + setver $BUILD_TARGET_OS_VENDOR $BUILD_TARGET_OS_VERSION + export OPA_FEATURE_SET=opa10 + +@@ -70,6 +76,7 @@ shift + set -x + { + echo "Environment:" ++ export BUILD_TARGET_OS_VERSION="4.4" + env + echo "----------------------------------------------------------------------------" + echo diff --git a/opa-ff.changes b/opa-ff.changes new file mode 100644 index 0000000..063eea9 --- /dev/null +++ b/opa-ff.changes @@ -0,0 +1,195 @@ +------------------------------------------------------------------- +Fri Nov 3 21:50:15 UTC 2023 - Martin Schreiner + +- opa-fastfabric: migrate from cron to systemd timers. + +------------------------------------------------------------------- +Thu Sep 28 13:55:20 UTC 2023 - Nicolas Morey + +- Update to v10.12.1.0.6 + - No changelog available + +------------------------------------------------------------------- +Fri Sep 30 13:24:40 UTC 2022 - Nicolas Morey-Chaisemartin + +- Update to v10.11.1.3.1 + - No changelog available + +------------------------------------------------------------------- +Thu Sep 2 11:12:16 UTC 2021 - Martin Liška + +- Fix build with rpmlint 2 where the suse-filelist-forbidden-sysconfig + is renamed. + +------------------------------------------------------------------- +Tue Aug 24 06:53:06 UTC 2021 - Nicolas Morey-Chaisemartin + +- Update URL to Cornelis Networks (jsc#SLE-20579) + +------------------------------------------------------------------- +Wed Apr 28 08:23:35 UTC 2021 - Nicolas Morey-Chaisemartin + +- Update to v10.11.0.0.575 + - No changelog available + +------------------------------------------------------------------- +Wed Jul 22 15:39:26 UTC 2020 - Nicolas Morey-Chaisemartin + +- Update to v10.10.3.0.11 + - No changelog available +- Refresh opa-ff-add-shebang-for-exp-files.patch against latest sources + +------------------------------------------------------------------- +Tue Jun 9 19:33:56 UTC 2020 - Nicolas Morey-Chaisemartin + +- Update to v10.10.1.0.35 + - No changelog available +- Add workaround-bsc-1172755.patch to fix compilation with LTO enabled. + +------------------------------------------------------------------- +Fri Sep 6 14:32:59 UTC 2019 - Nicolas Morey-Chaisemartin + +- Update to v10.9.3.1.1 + - No changelog available +- Refresh patches against newer sources: + - opa-ff-add-shebang-for-exp-files.patch + - opa-ff-suse-build-fixes.patch +- Drop patches merged upstream: + - reproduciblecpu.patch + - reproducible.patch + +------------------------------------------------------------------- +Fri Dec 28 11:19:40 UTC 2018 - Bernhard Wiedemann + +- Add reproduciblecpu.patch to drop -march=native (boo#1100677) + +------------------------------------------------------------------- +Thu Oct 25 12:12:28 UTC 2018 - Jan Engelhardt + +- Use noun phrase. +- Fix RPM groups. + +------------------------------------------------------------------- +Mon Oct 15 07:24:55 UTC 2018 - nmoreychaisemartin@suse.com + +- Update to v10.8.0.0.201 (fate#325855) + * No changelog available. +* Rebase opa-ff-suse-build-fixes.patch and opa-ff-add-shebang-for-exp-files.patch + to the latest sources + +------------------------------------------------------------------- +Wed Aug 1 04:29:23 UTC 2018 - bwiedemann@suse.com + +- Add reproducible.patch to override build date (boo#1047218) + +------------------------------------------------------------------- +Tue Jun 12 07:16:45 UTC 2018 - nmoreychaisemartin@suse.com + +- Update to v10.7.0.0.133 (fate#325049) + * No changelog available +- Rebase opa-ff-suse-build-fixes.patch to the latest sources +- Update opa-ff-add-shebang-for-exp-files.patchto not use /usr/bin/env + +------------------------------------------------------------------- +Wed May 23 05:37:05 UTC 2018 - nmoreychaisemartin@suse.com + +- Update opa-adress-resolution and libopasadb descriptions (bsc#1093880) + +------------------------------------------------------------------- +Tue Mar 27 06:42:29 UTC 2018 - nmoreychaisemartin@suse.com + +- Update pseudo_opt path to %{_prefix}/lib/opa (bsc#1042721,bsc#1086934) +- Update opasysconfdif to %{_sysconfdir}/opa/ +- Minor cleanup of sysconfig install code + +------------------------------------------------------------------- +Thu Mar 1 16:33:18 UTC 2018 - nmoreychaisemartin@suse.com + +- Cleanup install section +- Install and package missing libopamgt (bsc#1083499) + +------------------------------------------------------------------- +Mon Nov 20 16:47:51 UTC 2017 - nmoreychaisemartin@suse.com + +- Update to v10.6.0.0.131 + * No changelog available +- Remove opa-ff-sigset-was-removed.patch as it was fixed upstream. +- Rebase opa-ff-suse-build-fixes.patch and + opa-ff-add-shebang-for-exp-files.patch to the latest sources + +------------------------------------------------------------------- +Tue Sep 19 11:59:58 UTC 2017 - nmoreychaisemartin@suse.com + +- Update to v10.5.0.0.140 + * No changelog available + +------------------------------------------------------------------- +Sat Sep 9 11:59:20 UTC 2017 - jengelh@inai.de + +- Fix RPM groups. Implement shared library guideline. + +------------------------------------------------------------------- +Tue Sep 5 14:26:48 UTC 2017 - nmoreychaisemartin@suse.com + +- Update _service file to allow auto updates from github + +------------------------------------------------------------------- +Mon Aug 28 12:01:45 UTC 2017 - nmoreychaisemartin@suse.com + +- Updates patches to latest sources: + * opa-ff_fix_suse_build_issue.patch replaced by + opa-ff-suse-build-fixes.patch + * 0001-Add-shebang-for-exp-files.patch replaced by + opa-ff-add-shebang-for-exp-files.patch +- Add opa-ff-sigset-was-removed.patch to build with the latest glibc + which does not expose anymore + +------------------------------------------------------------------- +Fri Jun 23 15:40:51 UTC 2017 - nmoreychaisemartin@suse.com + +- Replace dependency from libibmad-devel to infiniband-diags-devel + +------------------------------------------------------------------- +Mon Jun 12 08:35:25 UTC 2017 - nmoreychaisemartin@suse.com + +- Remove AutoReq: no + +------------------------------------------------------------------- +Thu Jun 8 09:18:02 UTC 2017 - nmoreychaisemartin@suse.com + +- Update to v10.4.0.0.197 + * No changelog available +- Update opa-ff_fix_suse_build_issue.patch and + 0001-Add-shebang-for-exp-files.patch to new sources + +------------------------------------------------------------------- +Mon Apr 3 12:30:57 UTC 2017 - josef.moellers@suse.com + +- Package opa-address-resolution-devel renamed to + opa-address-resolution, then .so's and .h files packaged + into a new opa-address-resolution-devel. + +------------------------------------------------------------------- +Tue Mar 28 11:35:42 CEST 2017 - pth@suse.de + +- BuildRequire rdma-core-devel not rdma-core +- BuildRequire libibmad-devel + +------------------------------------------------------------------- +Tue Feb 28 13:39:33 UTC 2017 - josef.moellers@suse.com + +- Update to v10.3.1 + Unfortunately intel has not shared any + information related to the changes + (fate#321474) + +------------------------------------------------------------------- +Thu Jul 21 20:46:16 CEST 2016 - ndas@suse.de + +- create sym link only if /etc/sysconfig/opa dir doesn't exist (bsc#989135). + +------------------------------------------------------------------- +Tue Mar 22 11:06:22 UTC 2016 - ndas@suse.de + +- Initial package for fate#319232 + diff --git a/opa-ff.rpmlintrc b/opa-ff.rpmlintrc new file mode 100644 index 0000000..62920a6 --- /dev/null +++ b/opa-ff.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("suse-filelist-forbidden-sysconfig") +addFilter("filelist-forbidden-sysconfig") diff --git a/opa-ff.spec b/opa-ff.spec new file mode 100644 index 0000000..05309a9 --- /dev/null +++ b/opa-ff.spec @@ -0,0 +1,417 @@ +# +# spec file for package opa-ff +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define git_ver .0.d62756adb09f +%define opamgt_major 0 +%define opasadb_major 1_0_0 + +%define pseudo_opt %{_prefix}/lib/opa/ +%define opasysconfdir %{_sysconfdir}/opa/ + +Name: opa-ff +Version: 10.12.1.0.6 +Release: 0 +Summary: Intel Omni-Path basic tools and libraries for fabric managment +License: BSD-3-Clause OR GPL-2.0-only +Group: Productivity/Networking/System +URL: https://github.com/cornelisnetworks/opa-ff +Source0: %{name}-%{version}%{git_ver}.tar.gz +Source1: opa-ff.rpmlintrc +Source2: opa-cablehealth.service +Source3: opa-cablehealth.timer +Patch1: opa-ff-add-shebang-for-exp-files.patch +Patch2: opa-ff-suse-build-fixes.patch +Patch3: workaround-bsc-1172755.patch +BuildRequires: gcc-c++ +BuildRequires: infiniband-diags-devel +BuildRequires: libexpat-devel +BuildRequires: libopenssl-devel +BuildRequires: librdmacm1 +BuildRequires: ncurses-devel +BuildRequires: rdma-core-devel +BuildRequires: tcl-devel +BuildRequires: zlib-devel + +BuildRoot: %{_tmppath}/%{name}-%{version}-build +#Currently ONLY builds on x86_64 +ExclusiveArch: x86_64 + +%description +The %{name} contains basic tools and libraries for Intel Omni-Path fabric management applications. This +includes: the opa-fastfabric opa-basic-tools, opa-address-resolution + +%package -n opa-basic-tools +Summary: OmniPath managment level tools and scripts +Group: Productivity/Networking/System +Requires: rdma + +%description -n opa-basic-tools +Contains basic tools for fabric managment necessary on all compute nodes. + +%package -n opa-fastfabric +Summary: OmniPath management level tools and scripts +Group: Productivity/Networking/System +Requires: opa-basic-tools +%if 0%{?rhel} +Requires: atlas +%endif + +%description -n opa-fastfabric +Contains tools for managing fabric on a managment node. + +%package -n libopasadb%{opasadb_major} +Summary: OmniPath Subnet Administrator database library +Group: System/Libraries + +%description -n libopasadb%{opasadb_major} +This package contains the library necessary for opa-address-resolution. + +%package -n opa-address-resolution +Summary: OmniPath Address Resolution manager +Group: Productivity/Networking/System +Requires: opa-basic-tools + +%description -n opa-address-resolution +This package contains the ibacm distributed SA provider (dsap) for name and address resolution on OPA platform. +It also contains the library and tools to access the shared memory database exported by dsap. + +%package -n opa-address-resolution-devel +Summary: Development files for the OmniPath Address Resolution manager +Group: Development/Libraries/C and C++ +Requires: libopasadb%{opasadb_major} = %{version} +Requires: opa-address-resolution = %{version} +Requires: opa-basic-tools + +%description -n opa-address-resolution-devel +This package contains the include files and libraries +required to develop programs for the opa-address-resolution package. + +%package -n libopamgt%{opamgt_major} +Summary: Omni-Path management API library +Group: System/Libraries + +%description -n libopamgt%{opamgt_major} +This package contains the library necessary to build applications that interface with an Omni-Path FM. + +%package -n libopamgt-devel +Summary: Omni-Path library development headers +Group: Development/Libraries/C and C++ +Requires: libopamgt%{opamgt_major} = %{version} + +%description -n libopamgt-devel +This package contains the necessary headers for opamgt development. + +%package -n opa-snapconfig +Summary: Tools for configureing fabrics with snapshot files +Group: Productivity/Networking/System +Requires: opa-fastfabric + +%description -n opa-snapconfig +Tools for parsing information from provided snapshot files and issuing packets to program. + +%prep +%setup -q -n %{name}-%{version}%{git_ver} +%patch1 +%patch2 +%patch3 + +%build +export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-address-of-packed-member" +if [ -d OpenIb_Host ] +then + cd OpenIb_Host && ./ff_build.sh %{_builddir} $FF_BUILD_ARGS +else + ./ff_build.sh %{_builddir} $FF_BUILD_ARGS +fi + +%install +. OpenIb_Host/ff_filegroups.sh +%define release_string IntelOPA-Tools-FF.$BUILD_TARGET_OS_ID.$MODULEVERSION + +#rm -rf $RPM_BUILD_ROOT +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_sbindir} +mkdir -p %{buildroot}%{pseudo_opt}/{tools,fm_tools,help,samples,samples/opamgt} +mkdir -p %{buildroot}%{_libdir}/ibacm +mkdir -p %{buildroot}%{_sysconfdir}/rdma +mkdir -p %{buildroot}%{_sysconfdir}/opa +mkdir -p %{buildroot}%{opasysconfdir} +mkdir -p %{buildroot}%{_includedir}/infiniband +mkdir -p %{buildroot}%{_includedir}/opamgt/iba/public +mkdir -p %{buildroot}%{_mandir}/man1 +mkdir -p %{buildroot}%{_mandir}/man8 +mkdir -p %{buildroot}%{_sysconfdir}/sysconfig +mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/opa +#Binaries and scripts installing (basic tools) +#cd builtbin.OPENIB_FF.release +cd $(cat %{_builddir}/RELEASE_PATH) + +cd bin +cp -t %{buildroot}%{_sbindir} ${basic_tools_sbin} +cp -t %{buildroot}/%{pseudo_opt}/tools/ ${basic_tools_opt} +ln -s ./opaportinfo %{buildroot}%{_sbindir}/opaportconfig +ln -s ./opasmaquery %{buildroot}%{_sbindir}/opapmaquery + +cd ../opasadb +cp -t %{buildroot}%{_bindir} ${opasadb_bin} +cp -t %{buildroot}%{_includedir}/infiniband ${opasadb_header} + +cd ../opamgt +cp -t %{buildroot}%{_includedir}/opamgt $opamgt_headers +cp -t %{buildroot}%{_includedir}/opamgt/iba $opamgt_iba_headers +cp -t %{buildroot}%{_includedir}/opamgt/iba/public $opamgt_iba_public_headers +cp -t %{buildroot}%{pseudo_opt}/samples/opamgt $opamgt_examples + +cd ../bin +cp -t %{buildroot}/%{pseudo_opt}/tools/ ${ff_tools_opt} +#cp -t %{buildroot}/%{pseudo_opt}/tools/ ${opasnapconfig_bin} + +cd ../fastfabric +cp -t %{buildroot}%{_sbindir} ${ff_tools_sbin} +cp -t %{buildroot}%{pseudo_opt}tools/ ${ff_tools_misc} +cp -t %{buildroot}%{pseudo_opt}help ${help_doc} +cp -t %{buildroot}%{opasysconfdir} ${basic_configs} + +cd ../etc +cp -t %{buildroot}/%{pseudo_opt}fm_tools/ ${ff_tools_fm} +ln -s %{pseudo_opt}/fm_tools/config_check %{buildroot}%{_sbindir}/opafmconfigcheck +ln -s %{pseudo_opt}/fm_tools/config_diff %{buildroot}%{_sbindir}/opafmconfigdiff +# We do not want their cron.d stuff. +# We enable the appropriate systemd service/timer that uses the correct binary. +install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/opa-cablehealth.service +install -D -m 0644 %{SOURCE3} %{buildroot}/%{_unitdir}/opa-cablehealth.timer +cd ../fastfabric/samples +cp -t %{buildroot}%{pseudo_opt}samples ${ff_iba_samples} ${basic_samples} +cd .. + +cd ../fastfabric/tools +chmod 755 *.exp +cp -t %{buildroot}%{pseudo_opt}tools/ ${ff_tools_exp} +cp -t %{buildroot}%{pseudo_opt}tools/ ${ff_libs_misc} +cp -t %{buildroot}%{pseudo_opt}tools/ osid_wrapper +cp -t %{buildroot}%{opasysconfdir} allhosts chassis esm_chassis hosts ports switches +cd .. + +cd ../man/man1 +cp -t %{buildroot}%{_mandir}/man1 ${basic_mans} +cp -t %{buildroot}%{_mandir}/man1 ${opasadb_mans} +cd ../man8 +cp -t %{buildroot}%{_mandir}/man8 ${ff_mans} +cd .. + +#Config files +cd ../config +cp -t %{buildroot}%{_sysconfdir}/rdma dsap.conf op_path_rec.conf opasadb.xml +cp -t %{buildroot}/%{opasysconfdir} opamon.conf opamon.si.conf + +#Libraries installing +cd $(cat %{_builddir}/LIB_PATH) +cp -t %{buildroot}%{_libdir} libopasadb.so.* +ln -s libopasadb.so.* %{buildroot}%{_libdir}/libopasadb.so +cp -t %{buildroot}%{_libdir}/ibacm libdsap.so.* +ln -s libdsap.so.* %{buildroot}%{_libdir}/ibacm/libdsap.so +cp -t %{buildroot}%{_libdir}/ libopamgt.so.* +ln -s libopamgt.so.* %{buildroot}%{_libdir}/libopamgt.so + +# Now that we've put everything in the buildroot, copy any default config files to their expected location for user +# to edit. To prevent nuking existing user configs, the files section of this spec file will reference these as noreplace +# config files. +cp %{buildroot}%{pseudo_opt}tools/opafastfabric.conf.def %{buildroot}/%{opasysconfdir}/opafastfabric.conf + +for file in $(ls %{buildroot}/%{opasysconfdir}); do + ln -s %{opasysconfdir}/$file %{buildroot}/etc/sysconfig/opa/$file +done + +#Now we do a bunch of work to build the file listing of what belongs to each RPM + +# List for basic +( + #Basic tools sbin + for file in ${basic_tools_sbin} ${basic_tools_sbin_sym}; do + echo "%{_sbindir}/${file}" + done + #Basic tools opt + for file in ${basic_tools_opt}; do + echo "%{pseudo_opt}tools/${file}" + done + #Basic man pages + for file in ${basic_mans}; do + # Extra wildcard to accept .1.gz + echo "%{_mandir}/man1/${file}*" + done + #Basic config pages + for file in ${basic_configs}; do + echo "%config(noreplace) %{opasysconfdir}${file}" + done +) > %{_builddir}/basic_file.list + +# List for opa-fastfabric +( + #FF tools opt + for file in ${ff_tools_opt}; do + echo "%{pseudo_opt}tools/${file}" + done + + #FF exp files opt + for file in ${ff_tools_exp}; do + echo "%{pseudo_opt}tools/${file}" + done + + #FF misc files opt + for file in ${ff_tools_misc}; do + echo "%{pseudo_opt}tools/${file}" + done + + #FF libs misc + for file in ${ff_libs_misc}; do + echo "%{pseudo_opt}tools/${file}" + done + + #FF iba samples + for file in ${ff_iba_samples} ${basic_samples}; do + echo "%{pseudo_opt}samples/${file}" + done + + #FF tools to FM configuration + for file in ${ff_tools_fm}; do + echo "%{pseudo_opt}fm_tools/${file}" + done + + #FF man pages + for file in ${ff_mans}; do + # Extra wildcard to accept .8.gz + echo "%{_mandir}/man8/${file}*" + done + + #FF tools help doc + for file in ${help_doc}; do + echo "%{pseudo_opt}help/${file}" + done + + #FF tools sbin + for file in ${ff_tools_sbin}; do + echo "%{_sbindir}/${file}" + done + +) > %{_builddir}/ff_file.list + +# List for snapconfig +( + for file in ${opasnapconfig_bin}; do + echo "%{pseudo_opt}tools/${file}" + done +) > %{_builddir}/snapconfig_file.list + +%post -n libopasadb%{opasadb_major} -p /sbin/ldconfig +%postun -n libopasadb%{opasadb_major} -p /sbin/ldconfig + +%post -n libopamgt%{opamgt_major} -p /sbin/ldconfig +%postun -n libopamgt%{opamgt_major} -p /sbin/ldconfig + +%files -n opa-basic-tools -f %{_builddir}/basic_file.list +%defattr(-,root,root,-) +%dir %{pseudo_opt} +%dir %{pseudo_opt}tools/ +%dir %{opasysconfdir} + +%doc README +%license LICENSE + +%pre -n opa-fastfabric +%service_add_pre opa-cablehealth.service opa-cablehealth.timer + +%preun -n opa-fastfabric +%service_del_preun opa-cablehealth.service opa-cablehealth.timer + +%post -n opa-fastfabric +%service_add_post opa-cablehealth.service opa-cablehealth.timer + +%postun -n opa-fastfabric +%service_del_postun opa-cablehealth.service opa-cablehealth.timer + +%files -n opa-fastfabric -f %{_builddir}/ff_file.list +%defattr(-,root,root,0755) +%dir %{pseudo_opt} +%dir %{pseudo_opt}fm_tools +%dir %{pseudo_opt}help +%dir %{pseudo_opt}samples +%dir %{pseudo_opt}tools + +%dir %{_sysconfdir}/sysconfig/opa +%dir %{opasysconfdir} +/etc/sysconfig/opa/* + +%config(noreplace) %{opasysconfdir}/opafastfabric.conf +%config(noreplace) %{opasysconfdir}/opamon.conf +%config(noreplace) %{opasysconfdir}/allhosts +%config(noreplace) %{opasysconfdir}/chassis +%config(noreplace) %{opasysconfdir}/esm_chassis +%config(noreplace) %{opasysconfdir}/hosts +%config(noreplace) %{opasysconfdir}/ports +%config(noreplace) %{opasysconfdir}/switches +%{_unitdir}/opa-cablehealth.service +%{_unitdir}/opa-cablehealth.timer +%{opasysconfdir}/opamon.si.conf +# Replace opamon.si.conf, as it's a template config file. +%{pseudo_opt}tools/osid_wrapper +%{_sbindir}/opafmconfigcheck +%{_sbindir}/opafmconfigdiff + +# /opt/opa + +%files -n libopasadb%{opasadb_major} +%defattr(-,root,root) +%{_libdir}/libopasadb.so.1* + +%files -n opa-address-resolution +%defattr(-,root,root,-) +%dir %{_sysconfdir}/rdma/ +%dir %{_libdir}/ibacm/ +#Everything under the bin directory belongs exclusively to opasadb at this time. +%{_bindir}/* +%{_libdir}/ibacm/*.so.* +%{_mandir}/man1/opa_osd_dump.1* +%{_mandir}/man1/opa_osd_exercise.1* +%{_mandir}/man1/opa_osd_perf.1* +%{_mandir}/man1/opa_osd_query.1* +%config(noreplace) %{_sysconfdir}/rdma/dsap.conf +%config(noreplace) %{_sysconfdir}/rdma/op_path_rec.conf +%config %{_sysconfdir}/rdma/opasadb.xml + +%files -n opa-address-resolution-devel +%{_includedir}/infiniband +%{_libdir}/libopasadb.so +%{_libdir}/ibacm/libdsap.so + +%files -n libopamgt%{opamgt_major} +%{_libdir}/libopamgt.so.0* + +%files -n libopamgt-devel +%{_libdir}/libopamgt.so +%{_includedir}/opamgt +%{pseudo_opt}/samples/opamgt + +%files -n opa-snapconfig -f %{_builddir}/snapconfig_file.list +%defattr(-,root,root,-) +%dir %{pseudo_opt} +%dir %{pseudo_opt}tools/ + +%doc README +%license LICENSE + +%changelog diff --git a/workaround-bsc-1172755.patch b/workaround-bsc-1172755.patch new file mode 100644 index 0000000..861714e --- /dev/null +++ b/workaround-bsc-1172755.patch @@ -0,0 +1,24 @@ +commit c477cf2496c1ec83a63a28629a4fdf0c2a10d458 +Author: Nicolas Morey-Chaisemartin +Date: Tue Jun 9 22:57:52 2020 +0200 + + workaround bsc 1172755 + + GCC bug causes compilation to fail with LTO enabled. + Workaround the issue by changing mcmodel + + Signed-off-by: Nicolas Morey-Chaisemartin + +diff --git IbaTools/stream/Makefile IbaTools/stream/Makefile +index 7ed670d19fee..6eb0a334c8a9 100644 +--- IbaTools/stream/Makefile ++++ IbaTools/stream/Makefile +@@ -110,7 +110,7 @@ INCLUDE_SUBDIR = + # (in addition to LOCALDEPLIBS) + #LOCAL_LIB_DIRS = User library directories for libpaths [Empty] + +-CLOCAL = $(CPIE) -mcmodel=medium -DSTREAM_ARRAY_SIZE=353783808 -fopenmp ++CLOCAL = $(CPIE) -mcmodel=large -DSTREAM_ARRAY_SIZE=353783808 -fopenmp + LDLOCAL = -fopenmp + + # Include Make Rules definitions and rules