forked from pool/mstflint
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
35c1edf6b8 | ||
|
|
d4cbecb7ad | ||
| 8540aa04bc | |||
| 48c58255a6 | |||
| f8ea6b137a | |||
| e3a1993f9c | |||
| a5135e5a1e |
@@ -1,4 +1,4 @@
|
|||||||
commit 6a8758e9353447abdb9366638790984e84b04eb1
|
commit f5644b3f62db9edc49929a5d62fc03bd7fe542ed
|
||||||
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
||||||
Date: Wed Aug 9 17:31:57 2017 +0200
|
Date: Wed Aug 9 17:31:57 2017 +0200
|
||||||
|
|
||||||
@@ -9,18 +9,18 @@ Date: Wed Aug 9 17:31:57 2017 +0200
|
|||||||
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
||||||
|
|
||||||
diff --git configure.ac configure.ac
|
diff --git configure.ac configure.ac
|
||||||
index 4d549ee4cb79..c8e15447f5e1 100644
|
index 366d9a115693..dc356443f2cc 100644
|
||||||
--- configure.ac
|
--- configure.ac
|
||||||
+++ configure.ac
|
+++ configure.ac
|
||||||
@@ -308,6 +308,7 @@ AM_CONDITIONAL([USE_LOCAL_SQLITE], [test "$SQLITE_SYSTEM_AVAILABLE" = no])
|
@@ -604,6 +604,7 @@ AC_SEARCH_LIBS([sqlite3_initialize], [sqlite3], [SQLITE_SYSTEM_AVAILABLE="yes"],
|
||||||
|
AM_CONDITIONAL([USE_LOCAL_SQLITE], [test "$SQLITE_SYSTEM_AVAILABLE" = no])
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -DMST_UL"
|
CFLAGS="$CFLAGS -DMST_UL"
|
||||||
+CPPFLAGS="$CPPFLAGS -DMST_UL"
|
+CPPFLAGS="$CPPFLAGS -DMST_UL"
|
||||||
CXXFLAGS="$CXXFLAGS -DMST_UL"
|
CXXFLAGS="$CXXFLAGS -DMST_UL"
|
||||||
|
|
||||||
|
CCVER=`${CC} --version | grep ${CC} | grep -E -o "( )[[4-9]]\.[[0-9]]\.[[0-9]]" | head -1`
|
||||||
@@ -336,6 +337,14 @@ AX_CHECK_COMPILE_FLAG([-Wno-implicit-fallthrough], [CFLAGS="$CFLAGS -Wno-implici
|
@@ -631,6 +632,14 @@ AX_CHECK_COMPILE_FLAG([-Wno-implicit-fallthrough], [CFLAGS="$CFLAGS -Wno-implici
|
||||||
AX_CHECK_COMPILE_FLAG([-Wno-cast-function-type], [CFLAGS="$CFLAGS -Wno-cast-function-type"], [], [])
|
AX_CHECK_COMPILE_FLAG([-Wno-cast-function-type], [CFLAGS="$CFLAGS -Wno-cast-function-type"], [], [])
|
||||||
CFLAGS="$OLD_CFLAGS"
|
CFLAGS="$OLD_CFLAGS"
|
||||||
|
|
||||||
|
|||||||
21
PIE.patch
21
PIE.patch
@@ -1,4 +1,4 @@
|
|||||||
commit da607dd93fc67a63029d08f868e1e1c2c70e9663
|
commit 77ebcfe7e1c1d5a3037761aa64de6f9ca32361d7
|
||||||
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
Date: Fri Jul 9 13:01:55 2021 +0200
|
Date: Fri Jul 9 13:01:55 2021 +0200
|
||||||
|
|
||||||
@@ -9,16 +9,19 @@ Date: Fri Jul 9 13:01:55 2021 +0200
|
|||||||
Signed-off-by: Hardware error from APEI Generic Hardware Error Source: 0
|
Signed-off-by: Hardware error from APEI Generic Hardware Error Source: 0
|
||||||
|
|
||||||
diff --git configure.ac configure.ac
|
diff --git configure.ac configure.ac
|
||||||
index 35049bcbbed4..273ce3186936 100644
|
index dc356443f2cc..ef5fc5584e6a 100644
|
||||||
--- configure.ac
|
--- configure.ac
|
||||||
+++ configure.ac
|
+++ configure.ac
|
||||||
@@ -59,6 +59,9 @@ LDL=""
|
@@ -104,6 +104,12 @@ else
|
||||||
default_en_inband=""
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib64"
|
+# All bin programs are linked using LDL
|
||||||
|
+# reuse this instead of LDFLAGS as it would mess
|
||||||
|
+# up shared lib builds
|
||||||
+if test "$host_cpu" != "s390x"; then
|
+if test "$host_cpu" != "s390x"; then
|
||||||
+ LDFLAGS="${LDFLAGS} -pie"
|
+ LDL="${LDL} -pie"
|
||||||
+fi
|
+fi
|
||||||
CXXFLAGS="${CXXFLAGS} -isystem /usr/local/include"
|
|
||||||
if test "x$OS" = "xFreeBSD"; then
|
AC_SUBST(MTCR_CONF_DIR)
|
||||||
AC_MSG_NOTICE(FreeBSD Build)
|
AC_SUBST(VFIO_DRIVER_DIR)
|
||||||
|
|||||||
12
README.md
Normal file
12
README.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
## Build Results
|
||||||
|
|
||||||
|
Current state of mstflint in openSUSE:Factory is
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
The current state of mstflint in the devel project build (science:HPC)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
commit 59982ffad738c25082053bb4a87aa7fb97ebc796
|
|
||||||
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
||||||
Date: Fri Sep 30 14:10:47 2022 +0200
|
|
||||||
|
|
||||||
Remove date/time info from build
|
|
||||||
|
|
||||||
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
||||||
|
|
||||||
diff --git common/tools_version.h common/tools_version.h
|
|
||||||
index c656076c13b4..021da5429402 100644
|
|
||||||
--- common/tools_version.h
|
|
||||||
+++ common/tools_version.h
|
|
||||||
@@ -74,8 +74,9 @@ static inline int get_version_string(char* buf, int buf_size, const char* exe_na
|
|
||||||
len = snprintf(buf, buf_size, "%s %s, ", exe_name, tool_version);
|
|
||||||
}
|
|
||||||
// cut out first and last "$" from the SVN version string:
|
|
||||||
- len += snprintf(buf + len, buf_size - len, "%s, built on %s, %s. Git SHA Hash: %s", MSTFLINT_VERSION_STR, __DATE__,
|
|
||||||
- __TIME__, TOOLS_GIT_SHA);
|
|
||||||
+ len += snprintf(buf + len, buf_size - len, "%s. Git SHA Hash: %s",
|
|
||||||
+ MSTFLINT_VERSION_STR,
|
|
||||||
+ TOOLS_GIT_SHA);
|
|
||||||
return len;
|
|
||||||
}
|
|
||||||
|
|
||||||
17
_service
Normal file
17
_service
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/Mellanox/mstflint.git</param>
|
||||||
|
<param name="package-meta">no</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="filename">mstflint</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.%h</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
<param name="revision">9ed9e8c36608035769534e7450d1885483df8eaf</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="file">*mstflint*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
commit 77d8c2e2d7de83dc8202d99bb995c423299229fb
|
|
||||||
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
||||||
Date: Mon Oct 15 09:33:09 2018 +0200
|
|
||||||
|
|
||||||
fix race condition during install
|
|
||||||
|
|
||||||
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
||||||
|
|
||||||
diff --git dev_mgt/Makefile.am dev_mgt/Makefile.am
|
|
||||||
index 3118b85f97a4..193abaf79e11 100644
|
|
||||||
--- dev_mgt/Makefile.am
|
|
||||||
+++ dev_mgt/Makefile.am
|
|
||||||
@@ -46,7 +46,7 @@ libdev_mgt_a_SOURCES = \
|
|
||||||
|
|
||||||
dev_mgt_pylibdir = $(libdir)/mstflint/python_tools/
|
|
||||||
|
|
||||||
-dev_mgt_pylib_DATA = c_dev_mgt.so dev_mgt.py
|
|
||||||
+dev_mgt_pylib_DATA = c_dev_mgt.so
|
|
||||||
dist_dev_mgt_pylib_DATA = dev_mgt.py
|
|
||||||
|
|
||||||
c_dev_mgt.so: libdev_mgt.a
|
|
||||||
BIN
mstflint-4.33.0-1.60.9ed9e8c3.tar.gz
LFS
Normal file
BIN
mstflint-4.33.0-1.60.9ed9e8c3.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,5 +1,31 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 27 09:59:21 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Tue Nov 18 16:42:34 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
|
||||||
|
|
||||||
|
- Add _service to fetch from git directly
|
||||||
|
- Update to mstflint-4.33.0-1.60.9ed9e8c3
|
||||||
|
- See https://github.com/Mellanox/mstflint/releases/tag/v4.33.0-1
|
||||||
|
- Drop patches merged upstream:
|
||||||
|
- Remove-date-time-info-from-build.patch
|
||||||
|
- fix-race-condition-during-install.patch
|
||||||
|
- GCC15-C23-support.patch
|
||||||
|
- mflash-add-missing-stlib-include.patch
|
||||||
|
- Refresh patches against new sources:
|
||||||
|
- Fix-gcc7-and-gcc8.patch
|
||||||
|
- PIE.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 11 06:41:42 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
|
||||||
|
|
||||||
|
- Add GCC15-C23-support.patch to fix compilation with GCC >= 15
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 5 12:11:14 UTC 2024 - Nicolas Morey <nicolas.morey@suse.com>
|
||||||
|
|
||||||
|
- Add mflash-add-missing-stlib-include.patch to fix compilation
|
||||||
|
with GCC >= 14
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 22 13:26:27 UTC 2024 - pgajdos@suse.com
|
||||||
|
|
||||||
- Use %autosetup to work with rpm-4.20 (bsc#1240154)
|
- Use %autosetup to work with rpm-4.20 (bsc#1240154)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mstflint
|
# spec file for package mstflint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,21 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define extra_version -1
|
%define git_ver -1.60.9ed9e8c3
|
||||||
|
|
||||||
Name: mstflint
|
Name: mstflint
|
||||||
Version: 4.21.0
|
Version: 4.33.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Mellanox Firmware Burning and Diagnostics Tools
|
Summary: Mellanox Firmware Burning and Diagnostics Tools
|
||||||
License: BSD-2-Clause OR GPL-2.0-only
|
License: BSD-2-Clause OR GPL-2.0-only
|
||||||
Group: System/Console
|
Group: System/Console
|
||||||
URL: http://www.openfabrics.org
|
URL: http://www.openfabrics.org
|
||||||
Obsoletes: mstflint-devel < %{version}
|
Obsoletes: mstflint-devel < %{version}
|
||||||
Source: https://github.com/Mellanox/mstflint/releases/download/v%{version}%{extra_version}/mstflint-%{version}%{extra_version}.tar.gz
|
Source: mstflint-%{version}%{?git_ver}.tar.gz
|
||||||
Patch1: Remove-date-time-info-from-build.patch
|
Source100: README.md
|
||||||
Patch4: Fix-gcc7-and-gcc8.patch
|
Patch1: Fix-gcc7-and-gcc8.patch
|
||||||
Patch5: fix-race-condition-during-install.patch
|
Patch2: PIE.patch
|
||||||
Patch6: PIE.patch
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: infiniband-diags-devel
|
BuildRequires: infiniband-diags-devel
|
||||||
BuildRequires: libibverbs-devel
|
BuildRequires: libibverbs-devel
|
||||||
@@ -49,7 +48,7 @@ package. For a full documentation of the MFT package, please refer to
|
|||||||
the downloads page at the Mellanox web site.
|
the downloads page at the Mellanox web site.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p0
|
%autosetup -p0 -n %{name}-%{version}%{git_ver}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@@ -69,16 +68,19 @@ rm -rf %{buildroot}%{_bindir}/hca_self_test.ofed
|
|||||||
%license LICENSE COPYING
|
%license LICENSE COPYING
|
||||||
%{_bindir}/mstconfig
|
%{_bindir}/mstconfig
|
||||||
%{_bindir}/mstcongestion
|
%{_bindir}/mstcongestion
|
||||||
|
%{_bindir}/mstdevices_info
|
||||||
%{_bindir}/mstflint
|
%{_bindir}/mstflint
|
||||||
|
%{_bindir}/mstfwctrl
|
||||||
%{_bindir}/mstfwreset
|
%{_bindir}/mstfwreset
|
||||||
%{_bindir}/mstmcra
|
%{_bindir}/mstmcra
|
||||||
|
%{_bindir}/mstmget_temp
|
||||||
%{_bindir}/mstmread
|
%{_bindir}/mstmread
|
||||||
%{_bindir}/mstmtserver
|
%{_bindir}/mstmtserver
|
||||||
%{_bindir}/mstmwrite
|
%{_bindir}/mstmwrite
|
||||||
%{_bindir}/mstprivhost
|
|
||||||
%{_bindir}/mstregdump
|
%{_bindir}/mstregdump
|
||||||
%{_bindir}/mstresourcedump
|
%{_bindir}/mstresourcedump
|
||||||
%{_bindir}/mstresourceparse
|
%{_bindir}/mstresourceparse
|
||||||
|
%{_bindir}/msttokengenerator
|
||||||
%{_bindir}/mstvpd
|
%{_bindir}/mstvpd
|
||||||
%{_bindir}/mstfwtrace
|
%{_bindir}/mstfwtrace
|
||||||
%{_mandir}/man1/*.1%{ext_man}
|
%{_mandir}/man1/*.1%{ext_man}
|
||||||
|
|||||||
Reference in New Issue
Block a user