public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mstflint] f45: update to 4.38.0-1
Date: Fri, 20 Nov 2026 07:01:45 GMT	[thread overview]
Message-ID: <179515810562.1.8565608939451186819.rpms-mstflint-d89712eca4ec@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mstflint
            Branch : f45
            Commit : d89712eca4ec8fcd4bdef80be972c09813a77a58
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-11-19T18:29:09+01:00
            Stats  : +621/-249 in 16 file(s)
            URL    : https://src.fedoraproject.org/rpms/mstflint/c/d89712eca4ec8fcd4bdef80be972c09813a77a58?branch=f45

            Log:
            update to 4.38.0-1

Drop upstreamed patches.
Rebase/update pending patches.
Add adjustments for jsoncpp linking.
Remove shebangs from device_properties python modules.
Use the system spdlog on Fedora.
Do not build the unused asio, crow, mini-yaml and sole ext_libs.
Fix the muparser license to BSD-2-Clause.

(cherry picked from commit 61b5a4c610c4c6a8e54761f15248f7bf63820e84)

---
diff --git a/.gitignore b/.gitignore
index 16cee53..1595c32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,3 +52,4 @@ noarch/
 /mstflint-4.36.0-1.tar.gz
 /mstflint-4.37.0-1.1.tar.gz
 /mstflint-4.37.0-1.1.free.tar.gz
+/mstflint-4.38.0-1.free.tar.gz

diff --git a/0001-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch b/0001-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch
new file mode 100644
index 0000000..5368002
--- /dev/null
+++ b/0001-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch
@@ -0,0 +1,45 @@
+From cd540bb338c1614c90f7c6f78efb9a6da18fd1b3 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Mon, 10 Aug 2026 13:50:43 +0200
+Subject: [PATCH 1/3] mlxconfig: don't include sqlite3.h via hardcoded ext_libs
+ path
+
+Use <sqlite3.h> instead of <ext_libs/sqlite/sqlite3.h>. The include
+path is already set by SQLITE_CFLAGS, whether it points to the bundled
+copy or comes from pkg-config.
+
+Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
+---
+ mlxconfig/mlxcfg_db_manager.cpp | 2 +-
+ mlxconfig/mlxcfg_db_manager.h   | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mlxconfig/mlxcfg_db_manager.cpp b/mlxconfig/mlxcfg_db_manager.cpp
+index 5d8561af2dae..2d18bcaf9c99 100644
+--- a/mlxconfig/mlxcfg_db_manager.cpp
++++ b/mlxconfig/mlxcfg_db_manager.cpp
+@@ -44,7 +44,7 @@
+ #include <assert.h>
+ #include <algorithm>
+ 
+-#include <ext_libs/sqlite/sqlite3.h>
++#include <sqlite3.h>
+ #include "mlxcfg_db_manager.h"
+ #include "mlxcfg_utils.h"
+ #include <memory>
+diff --git a/mlxconfig/mlxcfg_db_manager.h b/mlxconfig/mlxcfg_db_manager.h
+index 69eb87c8f516..051685839834 100644
+--- a/mlxconfig/mlxcfg_db_manager.h
++++ b/mlxconfig/mlxcfg_db_manager.h
+@@ -47,7 +47,7 @@
+ #include "mlxcfg_tlv.h"
+ #include "mlxcfg_param.h"
+ #include "mlxcfg_configuration.h"
+-#include <ext_libs/sqlite/sqlite3.h>
++#include <sqlite3.h>
+ 
+ enum SPLITBY
+ {
+-- 
+2.56.1
+

diff --git a/0001-mtcr-fix-segfault-in-pciconf-open-when-VSEC-is-not-f.patch b/0001-mtcr-fix-segfault-in-pciconf-open-when-VSEC-is-not-f.patch
deleted file mode 100644
index 6486f35..0000000
--- a/0001-mtcr-fix-segfault-in-pciconf-open-when-VSEC-is-not-f.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From a434999ca080d30f57a8e4d80621151e71da4fa0 Mon Sep 17 00:00:00 2001
-From: Michal Schmidt <mschmidt@redhat.com>
-Date: Thu, 30 Jul 2026 16:04:02 +0200
-Subject: [PATCH] mtcr: fix segfault in pciconf open when VSEC is not fully
- supported
-
-When a device reports FUNCTIONAL_VSC but does not pass the
-VSEC_SUPPORTED_UL() check, the ctx->mread4 and ctx->mwrite4 function
-pointers are left NULL. The fallback that assigns old-style pciconf
-read/write functions is guarded by !mf->functional_vsec_supp, which was
-already set to 1, so it is skipped. The first mread4() call then
-dereferences NULL and crashes.
-
-Fix this by clearing functional_vsec_supp back to 0 when
-VSEC_SUPPORTED_UL() is false, so the existing fallback assigns
-mtcr_pciconf_mread4_old/mtcr_pciconf_mwrite4_old.
-
-Observed on ConnectX-3 Pro (PCI device ID 0x1007).
-
-Fixes: https://github.com/Mellanox/mstflint/issues/1157
-Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
----
- mtcr_ul/mtcr_ul_com.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/mtcr_ul/mtcr_ul_com.c b/mtcr_ul/mtcr_ul_com.c
-index 6df91f510ac9..f199102bcbd6 100644
---- a/mtcr_ul/mtcr_ul_com.c
-+++ b/mtcr_ul/mtcr_ul_com.c
-@@ -2367,6 +2367,10 @@ static int mtcr_pciconf_open(mfile* mf, const char* name, u_int32_t adv_opt)
-                 ctx->mread4_block = (f_mread4_block)mread4_block_pciconf;
-                 ctx->mwrite4_block = (f_mwrite4_block)mwrite4_block_pciconf;
-             }
-+            else
-+            {
-+                mf->functional_vsec_supp = 0;
-+            }
- 
-             mf->pxir_vsec_supp = 0;
-             if ((mf->vsec_cap_mask & (1 << space_to_cap_offset(AS_PCI_CRSPACE))) && (mf->vsec_cap_mask & (1 << space_to_cap_offset(AS_PCI_ALL_ICMD))) &&
--- 
-2.55.0
-

diff --git a/0002-configure.ac-use-pkg-config-to-detect-libraries.patch b/0002-configure.ac-use-pkg-config-to-detect-libraries.patch
new file mode 100644
index 0000000..2a61fb0
--- /dev/null
+++ b/0002-configure.ac-use-pkg-config-to-detect-libraries.patch
@@ -0,0 +1,106 @@
+From b66d3f1cfa243d78b4104d8039858b3e7e3ae528 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Mon, 10 Aug 2026 10:59:58 +0200
+Subject: [PATCH 2/3] configure.ac: use pkg-config to detect libraries
+
+Switch iniparser, jsoncpp, muparser, and sqlite3 detection to
+PKG_CHECK_MODULES, falling back to the bundled copies when pkg-config
+fails.
+
+Upstream cb6c077 ("[build] Fix FreeBSD build") always links the bundled
+ext_libs/json copy, which cannot work when a distribution removes the
+bundled sources, so jsoncpp is detected through pkg-config instead.
+
+Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
+---
+ configure.ac | 63 +++++++++++++++++++++++-----------------------------
+ 1 file changed, 28 insertions(+), 35 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index c1eb5b631129..ede7cf7e1050 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -740,21 +740,13 @@ AC_SUBST(TOOLS_CRYPTO)
+ AM_CONDITIONAL(ENABLE_OPENSSL, [test "x$enable_openssl" = "xyes"])
+ AM_CONDITIONAL(ENABLE_CS, [test  "x$enable_cs" = "xyes" || test "x$enable_openssl" = "xyes"])
+ 
+-AC_CHECK_HEADERS(iniparser.h, INIPARSER_SYSTEM_AVAILABLE="yes", INIPARSER_SYSTEM_AVAILABLE="no")
+-if test "$INIPARSER_SYSTEM_AVAILABLE" = "yes"; then
+-    AC_SEARCH_LIBS([iniparser_load], [iniparser],
+-        [INIPARSER_SYSTEM_AVAILABLE="yes"],
+-        [INIPARSER_SYSTEM_AVAILABLE="no"]
+-    )
+-fi
+-
+-if test "$INIPARSER_SYSTEM_AVAILABLE" = "no"; then
+-    INIPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/iniParser'
+-    AC_SUBST(INIPARSER_CFLAGS)
+-    INIPARSER_LIBS='$(top_builddir)/ext_libs/iniParser/libiniparser.la'
+-    AC_SUBST(INIPARSER_LIBS)
+-fi
+-
++PKG_CHECK_MODULES([INIPARSER], [iniparser],
++    [INIPARSER_SYSTEM_AVAILABLE="yes"],
++    [INIPARSER_SYSTEM_AVAILABLE="no"
++     INIPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/iniParser'
++     INIPARSER_LIBS='$(top_builddir)/ext_libs/iniParser/libiniparser.la'
++     AC_SUBST(INIPARSER_CFLAGS)
++     AC_SUBST(INIPARSER_LIBS)])
+ AM_CONDITIONAL([USE_LOCAL_INIPARSER], [test "$INIPARSER_SYSTEM_AVAILABLE" = no])
+ AS_IF([test "x$INIPARSER_SYSTEM_AVAILABLE" = "xyes" ], [
+     CXXFLAGS="$CXXFLAGS -DHAVE_INI_PARSER"])
+@@ -762,30 +754,31 @@ AS_IF([test "x$INIPARSER_SYSTEM_AVAILABLE" = "xyes" ], [
+ # mtcr uses ceilf, so every program needs -lm. Without this the FreeBSD build fails.
+ AC_SEARCH_LIBS([ceilf], [m])
+ 
+-# Always use the jsoncpp copy in ext_libs/json. The tools are linked -static and
+-# no package declares a jsoncpp dependency, so linking a system libjsoncpp would
+-# leave a runtime dependency nothing installs.
+-JSON_SYSTEM_AVAILABLE="no"
+-JSON_CFLAGS='-I$(top_srcdir)/ext_libs/json'
+-AC_SUBST(JSON_CFLAGS)
+-JSON_LIBS='$(top_builddir)/ext_libs/json/libjson.la'
+-AC_SUBST(JSON_LIBS)
++PKG_CHECK_MODULES([JSON], [jsoncpp],
++    [JSON_SYSTEM_AVAILABLE="yes"],
++    [JSON_SYSTEM_AVAILABLE="no"
++     JSON_CFLAGS='-I$(top_srcdir)/ext_libs/json'
++     JSON_LIBS='$(top_builddir)/ext_libs/json/libjson.la'
++     AC_SUBST(JSON_CFLAGS)
++     AC_SUBST(JSON_LIBS)])
+ AM_CONDITIONAL([USE_LOCAL_JSON], [test "$JSON_SYSTEM_AVAILABLE" = no])
+ 
+-AC_SEARCH_LIBS([mupCreateVar], [muparser], [MUPARSER_SYSTEM_AVAILABLE="yes"],[
+-    MUPARSER_SYSTEM_AVAILABLE="no"
+-    MUPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/muparser'
+-    AC_SUBST(MUPARSER_CFLAGS)
+-    MUPARSER_LIBS='$(top_builddir)/ext_libs/muparser/libmuparser.la'
+-    AC_SUBST(MUPARSER_LIBS)])
++PKG_CHECK_MODULES([MUPARSER], [muparser],
++    [MUPARSER_SYSTEM_AVAILABLE="yes"],
++    [MUPARSER_SYSTEM_AVAILABLE="no"
++     MUPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/muparser'
++     MUPARSER_LIBS='$(top_builddir)/ext_libs/muparser/libmuparser.la'
++     AC_SUBST(MUPARSER_CFLAGS)
++     AC_SUBST(MUPARSER_LIBS)])
+ AM_CONDITIONAL([USE_LOCAL_MUPARSER], [test "$MUPARSER_SYSTEM_AVAILABLE" = no])
+ 
+-AC_SEARCH_LIBS([sqlite3_initialize], [sqlite3], [SQLITE_SYSTEM_AVAILABLE="yes"],[
+-    SQLITE_SYSTEM_AVAILABLE="no"
+-    SQLITE_CFLAGS='-I$(top_srcdir)/ext_libs/sqlite'
+-    AC_SUBST(SQLITE_CFLAGS)
+-    SQLITE_LIBS='$(top_builddir)/ext_libs/sqlite/libsqlite3.la'
+-    AC_SUBST(SQLITE_LIBS)])
++PKG_CHECK_MODULES([SQLITE], [sqlite3],
++    [SQLITE_SYSTEM_AVAILABLE="yes"],
++    [SQLITE_SYSTEM_AVAILABLE="no"
++     SQLITE_CFLAGS='-I$(top_srcdir)/ext_libs/sqlite'
++     SQLITE_LIBS='$(top_builddir)/ext_libs/sqlite/libsqlite3.la'
++     AC_SUBST(SQLITE_CFLAGS)
++     AC_SUBST(SQLITE_LIBS)])
+ AM_CONDITIONAL([USE_LOCAL_SQLITE], [test "$SQLITE_SYSTEM_AVAILABLE" = no])
+ 
+ CFLAGS="$CFLAGS -DMST_UL"
+-- 
+2.56.1
+

diff --git a/0003-build-link-jsoncpp-into-the-hand-written-.so-recipes.patch b/0003-build-link-jsoncpp-into-the-hand-written-.so-recipes.patch
new file mode 100644
index 0000000..e2d449b
--- /dev/null
+++ b/0003-build-link-jsoncpp-into-the-hand-written-.so-recipes.patch
@@ -0,0 +1,149 @@
+From 04af177c40c91d32ef2839c2206dab975a0f4840 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Thu, 19 Nov 2026 08:07:03 +0100
+Subject: [PATCH 3/3] build: link jsoncpp into the hand-written .so recipes
+
+libmtcr_ul.a carries objects that reference jsoncpp: the tools logger's
+JSON config parser and the generated device properties. Consumers that
+link libmtcr_ul.la through libtool pick jsoncpp up from dependency_libs
+in the .la, but the hand-written recipes for cmtcr.so, rreg_access.so,
+ccmdif.so, c_dev_mgt.so, rmvpd.so and libresource_dump_sdk.so link the
+raw .libs/libmtcr_ul.a path instead. With a system jsoncpp they build
+fine and then fail to dlopen at run time:
+
+    Error loading CMTCR: .../cmtcr.so: undefined symbol:
+    _ZNK4Json17ValueIteratorBase7isEqualERKS0_
+
+Add MTCR_JSON_LIBS: -ljsoncpp when pkg-config found a system jsoncpp,
+empty when the bundled copy is used (its objects are already part of
+libmtcr_ul.a). This mirrors the existing MST_REMOTE_LINK_LIBS handling
+for the libcurl/openssl references the archive carries with
+--enable-remote.
+
+Tested with both the system jsoncpp and the bundled copy; all six
+modules dlopen cleanly afterwards.
+---
+ cmdif/Makefile.am                              |  2 +-
+ configure.ac                                   | 12 ++++++++++++
+ dev_mgt/Makefile.am                            |  2 +-
+ mtcr_py/Makefile.am                            | 18 +++---------------
+ mvpd/Makefile.am                               |  2 +-
+ reg_access/Makefile.am                         |  2 +-
+ .../resourcedump_lib/src/sdk/Makefile.am       |  1 +
+ 7 files changed, 20 insertions(+), 19 deletions(-)
+
+diff --git a/cmdif/Makefile.am b/cmdif/Makefile.am
+index 0fed0bdf17de..b0f04498f949 100644
+--- a/cmdif/Makefile.am
++++ b/cmdif/Makefile.am
+@@ -55,6 +55,6 @@ cmdif_pylib_DATA = ${CCMDIF_SO} cmdif.py
+ ${CCMDIF_SO}: libcmdif.la
+ 	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} *.o -o ${CCMDIF_SO} \
+ 	$(top_builddir)/tools_layouts/.libs/libtools_layouts.a $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a \
+-	$(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = ${CCMDIF_SO}
+diff --git a/configure.ac b/configure.ac
+index ede7cf7e1050..b0569752db13 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -763,6 +763,18 @@ PKG_CHECK_MODULES([JSON], [jsoncpp],
+      AC_SUBST(JSON_LIBS)])
+ AM_CONDITIONAL([USE_LOCAL_JSON], [test "$JSON_SYSTEM_AVAILABLE" = no])
+ 
++# libmtcr_ul.a carries objects that reference jsoncpp: the tools logger's JSON
++# config parser and the generated device properties. Libtool targets inherit
++# jsoncpp from dependency_libs in libmtcr_ul.la, but the hand-written .so
++# recipes link the raw .libs/libmtcr_ul.a path and so bypass that; they have to
++# name jsoncpp themselves, or the modules fail to dlopen with "undefined
++# symbol: _ZN4Json...". With the bundled copy the objects are already part of
++# the archive, so nothing extra is needed.
++AS_IF([test "x$JSON_SYSTEM_AVAILABLE" = "xyes"],
++      [MTCR_JSON_LIBS="-ljsoncpp"],
++      [MTCR_JSON_LIBS=""])
++AC_SUBST([MTCR_JSON_LIBS])
++
+ PKG_CHECK_MODULES([MUPARSER], [muparser],
+     [MUPARSER_SYSTEM_AVAILABLE="yes"],
+     [MUPARSER_SYSTEM_AVAILABLE="no"
+diff --git a/dev_mgt/Makefile.am b/dev_mgt/Makefile.am
+index 5c57890bdd66..f0b85af431dd 100644
+--- a/dev_mgt/Makefile.am
++++ b/dev_mgt/Makefile.am
+@@ -57,6 +57,6 @@ c_dev_mgt.so: libdev_mgt.la
+ 	$(top_builddir)/reg_access/.libs/libreg_access.a \
+ 	$(top_builddir)/tools_layouts/.libs/libtools_layouts.a \
+ 	$(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a \
+-	$(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = c_dev_mgt.so
+diff --git a/mtcr_py/Makefile.am b/mtcr_py/Makefile.am
+index 0711eded9aab..7c57276dd3b6 100644
+--- a/mtcr_py/Makefile.am
++++ b/mtcr_py/Makefile.am
+@@ -35,21 +35,9 @@ mtcr_pylibdir = $(libdir)/mstflint/python_tools/
+ mtcr_pylib_DATA = cmtcr.so
+ dist_mtcr_pylib_DATA = mtcr.py
+ 
+-# With --enable-vfio, libmtcr_ul.a absorbs vfio_driver_access -> libcommon
+-# (tools_json.cpp), which references jsoncpp symbols (Json::parseFromStream,
+-# Json::Value::asString, ...). cmtcr.so must therefore also link jsoncpp,
+-# otherwise it fails to dlopen at runtime with "undefined symbol: _ZN4Json...".
+-if ENABLE_VFIO
+-if USE_LOCAL_JSON
+-CMTCR_JSON_LIBS = $(top_builddir)/ext_libs/json/.libs/libjson.a
+-else
+-CMTCR_JSON_LIBS = -ljsoncpp
+-endif
+-else
+-CMTCR_JSON_LIBS =
+-endif
+-
++# cmtcr.so links libmtcr_ul.a directly, so it has to resolve the archive's
++# jsoncpp references itself (see MTCR_JSON_LIBS in configure.ac).
+ cmtcr.so:
+-	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} -o cmtcr.so -Wl,--whole-archive $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a -Wl,--no-whole-archive $(CMTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} -o cmtcr.so -Wl,--whole-archive $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a -Wl,--no-whole-archive $(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = cmtcr.so
+diff --git a/mvpd/Makefile.am b/mvpd/Makefile.am
+index 7eaa6f6471e7..36e099ed24ce 100644
+--- a/mvpd/Makefile.am
++++ b/mvpd/Makefile.am
+@@ -47,6 +47,6 @@ noinst_HEADERS = mvpd.h
+ 
+ ${RMVPD_SO}: libmvpd.la
+ 	$(CC) -g -Wall -pthread -shared ${CFLAGS} *.o -o ${RMVPD_SO} \
+-	 $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a $(MST_REMOTE_LINK_LIBS)
++	 $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a $(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS)
+ 
+ CLEANFILES = ${RMVPD_SO}
+diff --git a/reg_access/Makefile.am b/reg_access/Makefile.am
+index d8f33767891e..9bbffc6fe625 100644
+--- a/reg_access/Makefile.am
++++ b/reg_access/Makefile.am
+@@ -65,6 +65,6 @@ ${RREG_ACCESS_SO}: libreg_access.la
+ 	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} *.o -o ${RREG_ACCESS_SO} \
+ 	$(top_builddir)/tools_layouts/.libs/libtools_layouts.a $(top_builddir)/tools_layouts/.libs/libcables_layouts.a \
+ 	$(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a \
+-	$(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = ${RREG_ACCESS_SO}
+diff --git a/resourcetools/resourcedump_lib/src/sdk/Makefile.am b/resourcetools/resourcedump_lib/src/sdk/Makefile.am
+index 8a27e8566c04..de001d2c4f6a 100644
+--- a/resourcetools/resourcedump_lib/src/sdk/Makefile.am
++++ b/resourcetools/resourcedump_lib/src/sdk/Makefile.am
+@@ -83,6 +83,7 @@ resource_dump_sdk_so_DEPS = \
+     $(top_builddir)/dev_mgt/.libs/libdev_mgt.a \
+     $(MTCR_LIB) \
+     $(OFED_LIBS) \
++    $(MTCR_JSON_LIBS) \
+     $(MST_REMOTE_LINK_LIBS) \
+     -lstdc++
+ 
+-- 
+2.56.1
+

diff --git a/0010-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch b/0010-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch
deleted file mode 100644
index 6b1fa7d..0000000
--- a/0010-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 006d2e6d6e75c6b21c26d7adfc3c3803ae7f4451 Mon Sep 17 00:00:00 2001
-From: Michal Schmidt <mschmidt@redhat.com>
-Date: Mon, 10 Aug 2026 13:50:43 +0200
-Subject: [PATCH 1/2] mlxconfig: don't include sqlite3.h via hardcoded ext_libs
- path
-
-Use <sqlite3.h> instead of <ext_libs/sqlite/sqlite3.h>. The include
-path is already set by SQLITE_CFLAGS, whether it points to the bundled
-copy or comes from pkg-config.
-
-Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
----
- mlxconfig/mlxcfg_db_manager.cpp | 2 +-
- mlxconfig/mlxcfg_db_manager.h   | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/mlxconfig/mlxcfg_db_manager.cpp b/mlxconfig/mlxcfg_db_manager.cpp
-index 5d8561af2dae..2d18bcaf9c99 100644
---- a/mlxconfig/mlxcfg_db_manager.cpp
-+++ b/mlxconfig/mlxcfg_db_manager.cpp
-@@ -44,7 +44,7 @@
- #include <assert.h>
- #include <algorithm>
- 
--#include <ext_libs/sqlite/sqlite3.h>
-+#include <sqlite3.h>
- #include "mlxcfg_db_manager.h"
- #include "mlxcfg_utils.h"
- #include <memory>
-diff --git a/mlxconfig/mlxcfg_db_manager.h b/mlxconfig/mlxcfg_db_manager.h
-index 69eb87c8f516..051685839834 100644
---- a/mlxconfig/mlxcfg_db_manager.h
-+++ b/mlxconfig/mlxcfg_db_manager.h
-@@ -47,7 +47,7 @@
- #include "mlxcfg_tlv.h"
- #include "mlxcfg_param.h"
- #include "mlxcfg_configuration.h"
--#include <ext_libs/sqlite/sqlite3.h>
-+#include <sqlite3.h>
- 
- enum SPLITBY
- {
--- 
-2.55.0
-

diff --git a/0011-configure.ac-use-pkg-config-to-detect-libraries.patch b/0011-configure.ac-use-pkg-config-to-detect-libraries.patch
deleted file mode 100644
index e751d70..0000000
--- a/0011-configure.ac-use-pkg-config-to-detect-libraries.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-From 42e131268c86a04c7ab33b88386bf21920dad038 Mon Sep 17 00:00:00 2001
-From: Michal Schmidt <mschmidt@redhat.com>
-Date: Mon, 10 Aug 2026 10:59:58 +0200
-Subject: [PATCH 2/2] configure.ac: use pkg-config to detect libraries
-
-The AC_SEARCH_LIBS check for jsoncpp searched for a nonexistent "JSON"
-symbol, so it never found the system library.
-
-Switch iniparser, jsoncpp, muparser, and sqlite3 detection to
-PKG_CHECK_MODULES, falling back to the bundled copies when pkg-config
-fails.
-
-Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
----
- configure.ac | 61 ++++++++++++++++++++++++----------------------------
- 1 file changed, 28 insertions(+), 33 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index a53a9b5e4b95..a275a9c62908 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -714,47 +714,42 @@ AC_SUBST(TOOLS_CRYPTO)
- AM_CONDITIONAL(ENABLE_OPENSSL, [test "x$enable_openssl" = "xyes"])
- AM_CONDITIONAL(ENABLE_CS, [test  "x$enable_cs" = "xyes" || test "x$enable_openssl" = "xyes"])
- 
--AC_CHECK_HEADERS(iniparser.h, INIPARSER_SYSTEM_AVAILABLE="yes", INIPARSER_SYSTEM_AVAILABLE="no")
--if test "$INIPARSER_SYSTEM_AVAILABLE" = "yes"; then
--    AC_SEARCH_LIBS([iniparser_load], [iniparser],
--        [INIPARSER_SYSTEM_AVAILABLE="yes"],
--        [INIPARSER_SYSTEM_AVAILABLE="no"]
--    )
--fi
--
--if test "$INIPARSER_SYSTEM_AVAILABLE" = "no"; then
--    INIPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/iniParser'
--    AC_SUBST(INIPARSER_CFLAGS)
--    INIPARSER_LIBS='$(top_builddir)/ext_libs/iniParser/libiniparser.la'
--    AC_SUBST(INIPARSER_LIBS)
--fi
--
-+PKG_CHECK_MODULES([INIPARSER], [iniparser],
-+    [INIPARSER_SYSTEM_AVAILABLE="yes"],
-+    [INIPARSER_SYSTEM_AVAILABLE="no"
-+     INIPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/iniParser'
-+     INIPARSER_LIBS='$(top_builddir)/ext_libs/iniParser/libiniparser.la'
-+     AC_SUBST(INIPARSER_CFLAGS)
-+     AC_SUBST(INIPARSER_LIBS)])
- AM_CONDITIONAL([USE_LOCAL_INIPARSER], [test "$INIPARSER_SYSTEM_AVAILABLE" = no])
- AS_IF([test "x$INIPARSER_SYSTEM_AVAILABLE" = "xyes" ], [
-     CXXFLAGS="$CXXFLAGS -DHAVE_INI_PARSER"])
- 
--AC_SEARCH_LIBS([JSON], [jsoncpp], [JSON_SYSTEM_AVAILABLE="yes"],[
--    JSON_SYSTEM_AVAILABLE="no"
--    JSON_CFLAGS='-I$(top_srcdir)/ext_libs/json'
--    AC_SUBST(JSON_CFLAGS)
--    JSON_LIBS='$(top_builddir)/ext_libs/json/libjson.la'
--    AC_SUBST(JSON_LIBS)])
-+PKG_CHECK_MODULES([JSON], [jsoncpp],
-+    [JSON_SYSTEM_AVAILABLE="yes"],
-+    [JSON_SYSTEM_AVAILABLE="no"
-+     JSON_CFLAGS='-I$(top_srcdir)/ext_libs/json'
-+     JSON_LIBS='$(top_builddir)/ext_libs/json/libjson.la'
-+     AC_SUBST(JSON_CFLAGS)
-+     AC_SUBST(JSON_LIBS)])
- AM_CONDITIONAL([USE_LOCAL_JSON], [test "$JSON_SYSTEM_AVAILABLE" = no])
- 
--AC_SEARCH_LIBS([mupCreateVar], [muparser], [MUPARSER_SYSTEM_AVAILABLE="yes"],[
--    MUPARSER_SYSTEM_AVAILABLE="no"
--    MUPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/muparser'
--    AC_SUBST(MUPARSER_CFLAGS)
--    MUPARSER_LIBS='$(top_builddir)/ext_libs/muparser/libmuparser.la'
--    AC_SUBST(MUPARSER_LIBS)])
-+PKG_CHECK_MODULES([MUPARSER], [muparser],
-+    [MUPARSER_SYSTEM_AVAILABLE="yes"],
-+    [MUPARSER_SYSTEM_AVAILABLE="no"
-+     MUPARSER_CFLAGS='-I$(top_srcdir)/ext_libs/muparser'
-+     MUPARSER_LIBS='$(top_builddir)/ext_libs/muparser/libmuparser.la'
-+     AC_SUBST(MUPARSER_CFLAGS)
-+     AC_SUBST(MUPARSER_LIBS)])
- AM_CONDITIONAL([USE_LOCAL_MUPARSER], [test "$MUPARSER_SYSTEM_AVAILABLE" = no])
- 
--AC_SEARCH_LIBS([sqlite3_initialize], [sqlite3], [SQLITE_SYSTEM_AVAILABLE="yes"],[
--    SQLITE_SYSTEM_AVAILABLE="no"
--    SQLITE_CFLAGS='-I$(top_srcdir)/ext_libs/sqlite'
--    AC_SUBST(SQLITE_CFLAGS)
--    SQLITE_LIBS='$(top_builddir)/ext_libs/sqlite/libsqlite3.la'
--    AC_SUBST(SQLITE_LIBS)])
-+PKG_CHECK_MODULES([SQLITE], [sqlite3],
-+    [SQLITE_SYSTEM_AVAILABLE="yes"],
-+    [SQLITE_SYSTEM_AVAILABLE="no"
-+     SQLITE_CFLAGS='-I$(top_srcdir)/ext_libs/sqlite'
-+     SQLITE_LIBS='$(top_builddir)/ext_libs/sqlite/libsqlite3.la'
-+     AC_SUBST(SQLITE_CFLAGS)
-+     AC_SUBST(SQLITE_LIBS)])
- AM_CONDITIONAL([USE_LOCAL_SQLITE], [test "$SQLITE_SYSTEM_AVAILABLE" = no])
- 
- CFLAGS="$CFLAGS -DMST_UL"
--- 
-2.55.0
-

diff --git a/0020-mlxfwupdate-use-the-system-trust-store-instead-of-a-.patch b/0020-mlxfwupdate-use-the-system-trust-store-instead-of-a-.patch
index 30da330..3d7889c 100644
--- a/0020-mlxfwupdate-use-the-system-trust-store-instead-of-a-.patch
+++ b/0020-mlxfwupdate-use-the-system-trust-store-instead-of-a-.patch
@@ -1,4 +1,4 @@
-From 36558cedb727fc89f2405696df170b727e775bcf Mon Sep 17 00:00:00 2001
+From 0a052d72b9d17d88729d9eed6fe826742f160840 Mon Sep 17 00:00:00 2001
 From: Michal Schmidt <mschmidt@redhat.com>
 Date: Mon, 2 Nov 2026 17:59:15 +0100
 Subject: [PATCH 1/2] mlxfwupdate: use the system trust store instead of a
@@ -64,7 +64,7 @@ index c64fc26287c6..b0c35de9d408 100644
  # EXAMPLES
  
 diff --git a/mlxfwupdate/Makefile.am b/mlxfwupdate/Makefile.am
-index a86a58afd1d7..43ee02e86e8e 100755
+index 2965e364a0ba..0fce94e00bea 100644
 --- a/mlxfwupdate/Makefile.am
 +++ b/mlxfwupdate/Makefile.am
 @@ -30,8 +30,11 @@
@@ -82,10 +82,10 @@ index a86a58afd1d7..43ee02e86e8e 100755
  AM_CPPFLAGS = \
      -I$(srcdir) \
 diff --git a/mlxfwupdate/cmd_line_params.cpp b/mlxfwupdate/cmd_line_params.cpp
-index d5bf37d05ade..b98a2f189ade 100644
+index 33f968f9ce99..a912af7d6ab5 100644
 --- a/mlxfwupdate/cmd_line_params.cpp
 +++ b/mlxfwupdate/cmd_line_params.cpp
-@@ -94,7 +94,10 @@ CmdLineParams::CmdLineParams()
+@@ -105,7 +105,10 @@ CmdLineParams::CmdLineParams()
  
  #else
  #ifdef MSTFLINT
@@ -98,13 +98,13 @@ index d5bf37d05ade..b98a2f189ade 100644
      certificate = (string)ROOT_PATH + "etc/mft/ca-bundle.crt";
  #endif
 diff --git a/mlxfwupdate/mlxfwmanager.cpp b/mlxfwupdate/mlxfwmanager.cpp
-index 2de01b216148..da92ad38348b 100644
+index 294ffcdce3de..6a1bdf83bdcd 100644
 --- a/mlxfwupdate/mlxfwmanager.cpp
 +++ b/mlxfwupdate/mlxfwmanager.cpp
-@@ -1371,7 +1371,10 @@ bool checkCmdParams(CmdLineParams& cmd_params, config_t& config)
-             return false;
-         }
+@@ -1722,7 +1722,10 @@ bool checkCmdParams(CmdLineParams& cmd_params, config_t& config)
+         cmd_params.cable_activation_wait = CABLE_ACTIVATION_WAIT_DEFAULT;
      }
+ 
 -    if (cmd_params.onlineQueryPsids.length() || cmd_params.download || cmd_params.update_online)
 +    // An empty certificate means libcurl's default CA bundle (the system
 +    // trust store) is used - there is nothing to validate then.
@@ -146,10 +146,10 @@ index 9ab439053894..66ca601a1418 100644
      _headers = curl_slist_append(_headers, "Accept: application/json");
      _headers = curl_slist_append(_headers, "Content-Type: application/json");
 diff --git a/mstflint.spec.in b/mstflint.spec.in
-index 7c173a07b1cc..0d290caccae0 100644
+index 398a48f519b4..12d7d675e4ab 100644
 --- a/mstflint.spec.in
 +++ b/mstflint.spec.in
-@@ -203,7 +203,6 @@ rm -rf $RPM_BUILD_ROOT
+@@ -229,7 +229,6 @@ fi
  %if %{enablefwmgr}
   %{_bindir}/mstfwmanager
   %{_bindir}/mstarchive
@@ -158,5 +158,5 @@ index 7c173a07b1cc..0d290caccae0 100644
  %if %{enabledpa}
   %{_bindir}/mstdpa
 -- 
-2.56.0
+2.56.1
 

diff --git a/0021-mlxfwupdate-rename-_ceritifcate-to-_caBundlePath.patch b/0021-mlxfwupdate-rename-_ceritifcate-to-_caBundlePath.patch
index 31af813..6010e6a 100644
--- a/0021-mlxfwupdate-rename-_ceritifcate-to-_caBundlePath.patch
+++ b/0021-mlxfwupdate-rename-_ceritifcate-to-_caBundlePath.patch
@@ -1,4 +1,4 @@
-From 928cb31a457e0d98ae544be8aac3582b806cb3b6 Mon Sep 17 00:00:00 2001
+From 2bda1aa0e7907c87579ccfcf0ffed4caecc7d248 Mon Sep 17 00:00:00 2001
 From: Michal Schmidt <mschmidt@redhat.com>
 Date: Mon, 2 Nov 2026 18:40:31 +0100
 Subject: [PATCH 2/2] mlxfwupdate: rename _ceritifcate to _caBundlePath
@@ -88,5 +88,5 @@ index 3b443e31855f..970345a70e40 100644
  #ifdef USE_CURL
      static CURL* _curl;
 -- 
-2.56.0
+2.56.1
 

diff --git a/0030-device_info-drop-the-vestigial-shebang-from-the-prop.patch b/0030-device_info-drop-the-vestigial-shebang-from-the-prop.patch
new file mode 100644
index 0000000..5dd8556
--- /dev/null
+++ b/0030-device_info-drop-the-vestigial-shebang-from-the-prop.patch
@@ -0,0 +1,57 @@
+From 68c1bc63071fab016b1c79ec5e3f67ce097635b7 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Thu, 19 Nov 2026 10:31:07 +0100
+Subject: [PATCH] device_info: drop the vestigial shebang from the properties
+ modules
+
+device_properties_api.py, device_properties_constants.py and the
+generated device_properties_data.py are import-only modules, never run
+as scripts, so their "#!/usr/bin/env python" line serves no purpose. It
+also names the unversioned "python" interpreter, which many
+distributions no longer provide. Installed with mode 644, the shebang
+makes rpmlint report non-executable-script for every installed
+architecture.
+
+Remove the shebang from the two sources and from the generator, so the
+generated module is clean as well.
+
+Assisted-by: OpenCode:enmaas/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017
+---
+ mft_core/device/device_info/device_properties_api.py       | 1 -
+ mft_core/device/device_info/device_properties_constants.py | 1 -
+ mft_core/device/device_info/generate_device_properties.cpp | 1 -
+ 3 files changed, 3 deletions(-)
+
+diff --git a/mft_core/device/device_info/device_properties_api.py b/mft_core/device/device_info/device_properties_api.py
+index 5ee7d272e1d3..7218101154e4 100644
+--- a/mft_core/device/device_info/device_properties_api.py
++++ b/mft_core/device/device_info/device_properties_api.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
+ # Copyright (c) 2013-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+diff --git a/mft_core/device/device_info/device_properties_constants.py b/mft_core/device/device_info/device_properties_constants.py
+index e73451ceb7a8..723195ef0210 100644
+--- a/mft_core/device/device_info/device_properties_constants.py
++++ b/mft_core/device/device_info/device_properties_constants.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
+ # Copyright (c) 2013-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+diff --git a/mft_core/device/device_info/generate_device_properties.cpp b/mft_core/device/device_info/generate_device_properties.cpp
+index 53a4b3f28bce..021a9350c7b6 100644
+--- a/mft_core/device/device_info/generate_device_properties.cpp
++++ b/mft_core/device/device_info/generate_device_properties.cpp
+@@ -883,7 +883,6 @@ bool generate_python_module(const std::vector<DeviceEntry>& devices,
+         return false;
+     }
+ 
+-    f << "#!/usr/bin/env python\n";
+     f << "# -*- coding: utf-8 -*-\n";
+     f << PY_LICENSE_HEADER;
+     f << "\n";
+-- 
+2.56.1
+

diff --git a/0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch b/0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch
deleted file mode 100644
index 16832a0..0000000
--- a/0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 557414fb2ec970f52ae5ed97a6a79bb5f40aaaac Mon Sep 17 00:00:00 2001
-From: Michal Schmidt <mschmidt@redhat.com>
-Date: Tue, 29 Sep 2026 14:22:40 +0200
-Subject: [PATCH] mlxreg: remove shebang from mstgenerate_pgcb_commands.py
-
-The tool is only ever invoked via the python_wrapper script, never
-executed directly. The shebang line is therefore vestigial and only
-causes packaging linters (e.g. rpmlint's non-executable-script check)
-to flag the file.
-Other tools invoked via the python_wrapper do not have the shebang line.
----
- mlxreg/scripts/mstgenerate_pgcb_commands.py | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/mlxreg/scripts/mstgenerate_pgcb_commands.py b/mlxreg/scripts/mstgenerate_pgcb_commands.py
-index 36b66b03c078..de1a72f8a223 100755
---- a/mlxreg/scripts/mstgenerate_pgcb_commands.py
-+++ b/mlxreg/scripts/mstgenerate_pgcb_commands.py
-@@ -1,5 +1,3 @@
--#!/usr/bin/env python3
--
- # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
- #
- # This software is available to you under a choice of one of two
--- 
-2.56.0
-

diff --git a/0031-build-prefer-a-system-spdlog-when-pkg-config-can-fi.patch b/0031-build-prefer-a-system-spdlog-when-pkg-config-can-fi.patch
new file mode 100644
index 0000000..ddb4f32
--- /dev/null
+++ b/0031-build-prefer-a-system-spdlog-when-pkg-config-can-fi.patch
@@ -0,0 +1,174 @@
+From 627344c4361444fe88574c6c34abbd451f1d3f36 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Thu, 19 Nov 2026 12:48:41 +0100
+Subject: [PATCH] build: prefer a system spdlog when pkg-config can find one
+
+ext_libs/spdlog is used header-only, but distributions package spdlog as
+a compiled library, possibly with fmt as a separate dependency. Detect
+the system copy with pkg-config and fall back to the bundled headers,
+so that a distribution can drop ext_libs/spdlog.
+
+NvToolsLogger.cpp is the only consumer, so the link flags are added
+where libnvtoolslogger and the archives built from it are linked. That
+includes the hand-written .so rules and mstflint, which link
+libmtcr_ul.a directly instead of going through libtool.
+
+Assisted-by: OpenCode:enmaas/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017
+Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
+---
+ cmdif/Makefile.am                                  |  2 +-
+ configure.ac                                       | 10 ++++++++++
+ dev_mgt/Makefile.am                                |  2 +-
+ flint/Makefile.am                                  |  2 +-
+ mft_core/mft_core_utils/nvtoolslogger/Makefile.am  | 11 ++++++-----
+ mtcr_py/Makefile.am                                |  2 +-
+ mvpd/Makefile.am                                   |  2 +-
+ reg_access/Makefile.am                             |  2 +-
+ resourcetools/resourcedump_lib/src/sdk/Makefile.am |  1 +
+ 9 files changed, 23 insertions(+), 11 deletions(-)
+
+diff --git a/cmdif/Makefile.am b/cmdif/Makefile.am
+index b0f04498f949..9345c305cdde 100644
+--- a/cmdif/Makefile.am
++++ b/cmdif/Makefile.am
+@@ -55,6 +55,6 @@ cmdif_pylib_DATA = ${CCMDIF_SO} cmdif.py
+ ${CCMDIF_SO}: libcmdif.la
+ 	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} *.o -o ${CCMDIF_SO} \
+ 	$(top_builddir)/tools_layouts/.libs/libtools_layouts.a $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a \
+-	$(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(MTCR_JSON_LIBS) $(SPDLOG_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = ${CCMDIF_SO}
+diff --git a/configure.ac b/configure.ac
+index 4cee63525686..8edc7164b565 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -827,6 +827,16 @@ PKG_CHECK_MODULES([SQLITE], [sqlite3],
+      AC_SUBST(SQLITE_LIBS)])
+ AM_CONDITIONAL([USE_LOCAL_SQLITE], [test "$SQLITE_SYSTEM_AVAILABLE" = no])
+ 
++# spdlog is used header-only by ext_libs/spdlog, but distributions package it as
++# a compiled library, which may also bring in fmt. Prefer the system copy when
++# pkg-config can find it and fall back to the bundled headers otherwise.
++PKG_CHECK_MODULES([SPDLOG], [spdlog >= 1.15],
++    [],
++    [SPDLOG_CFLAGS='-isystem $(top_srcdir)/ext_libs/spdlog/include'
++     SPDLOG_LIBS=
++     AC_SUBST(SPDLOG_CFLAGS)
++     AC_SUBST(SPDLOG_LIBS)])
++
+ CFLAGS="$CFLAGS -DMST_UL"
+ CXXFLAGS="$CXXFLAGS -DMST_UL"
+ 
+diff --git a/dev_mgt/Makefile.am b/dev_mgt/Makefile.am
+index f0b85af431dd..aa1fb44712bf 100644
+--- a/dev_mgt/Makefile.am
++++ b/dev_mgt/Makefile.am
+@@ -57,6 +57,6 @@ c_dev_mgt.so: libdev_mgt.la
+ 	$(top_builddir)/reg_access/.libs/libreg_access.a \
+ 	$(top_builddir)/tools_layouts/.libs/libtools_layouts.a \
+ 	$(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a \
+-	$(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(MTCR_JSON_LIBS) $(SPDLOG_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = c_dev_mgt.so
+diff --git a/flint/Makefile.am b/flint/Makefile.am
+index a0bd31322c31..791a4ca8ae90 100644
+--- a/flint/Makefile.am
++++ b/flint/Makefile.am
+@@ -81,7 +81,7 @@ mstflint_DEPENDENCIES += \
+      $(top_builddir)/reg_access/libreg_access.la \
+      $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a
+ 
+-LDADD_mstflint = ${LDL} $(JSON_LIBS)
++LDADD_mstflint = ${LDL} $(JSON_LIBS) $(SPDLOG_LIBS)
+ 
+ mstflint_LDFLAGS = -static
+ 
+diff --git a/mft_core/mft_core_utils/nvtoolslogger/Makefile.am b/mft_core/mft_core_utils/nvtoolslogger/Makefile.am
+index 9abf8bd49cc9..f2258a56949a 100644
+--- a/mft_core/mft_core_utils/nvtoolslogger/Makefile.am
++++ b/mft_core/mft_core_utils/nvtoolslogger/Makefile.am
+@@ -50,9 +50,10 @@ AM_CPPFLAGS = \
+ 
+ AM_CXXFLAGS = -Wall -W -g -MP -MD -pipe -Werror $(COMPILER_FPIC)
+ 
+-# spdlog is header-only and third party: -isystem keeps -Werror from tripping
+-# over its headers. It is only needed by NvToolsLogger.cpp.
+-SPDLOG_CXXFLAGS = -isystem $(top_srcdir)/ext_libs/spdlog/include -DSPDLOG_NO_THREAD_ID
++# spdlog is third party: -isystem keeps -Werror from tripping over its headers.
++# $(SPDLOG_CFLAGS) points at the system copy when pkg-config found one, or at
++# ext_libs/spdlog otherwise. It is only needed by NvToolsLogger.cpp.
++SPDLOG_CXXFLAGS = $(SPDLOG_CFLAGS) -DSPDLOG_NO_THREAD_ID
+ 
+ # The bundled jsoncpp is a libtool convenience library, so its objects are
+ # already folded into .libs/libnvtoolslogger.a and must not be linked twice into
+@@ -87,7 +88,7 @@ libnvtoolslogger_la_LDFLAGS = -pthread
+ # both - that is a multiple-definition link failure. Final links get lib_os_api
+ # from their own dependency on it; the .so rule below names it explicitly.
+ libnvtoolslogger_la_DEPENDENCIES = libmft_log_config.la $(OS_API_LA)
+-libnvtoolslogger_la_LIBADD = libmft_log_config.la -lstdc++
++libnvtoolslogger_la_LIBADD = libmft_log_config.la -lstdc++ $(SPDLOG_LIBS)
+ 
+ libmft_log_config_ui_la_SOURCES = \
+     log_config_ui.cpp \
+@@ -119,7 +120,7 @@ $(NVTOOLSLOGGER_SO): libnvtoolslogger.la
+ 	$(CXX) -shared -pthread $(CXXFLAGS) $(LDFLAGS) $(COMPILER_FPIC) -o $@ \
+ 	  -Wl,--whole-archive .libs/libnvtoolslogger.a \
+ 	    $(top_builddir)/mft_core/mft_core_utils/operating_system_api/.libs/lib_os_api.a \
+-	  -Wl,--no-whole-archive $(NVTOOLSLOGGER_JSON_SO_LIBS) -lstdc++
++	  -Wl,--no-whole-archive $(NVTOOLSLOGGER_JSON_SO_LIBS) $(SPDLOG_LIBS) -lstdc++
+ 
+ all-local: $(NVTOOLSLOGGER_SO)
+ 
+diff --git a/mtcr_py/Makefile.am b/mtcr_py/Makefile.am
+index 7c57276dd3b6..7d28d35e1d68 100644
+--- a/mtcr_py/Makefile.am
++++ b/mtcr_py/Makefile.am
+@@ -38,6 +38,6 @@ dist_mtcr_pylib_DATA = mtcr.py
+ # cmtcr.so links libmtcr_ul.a directly, so it has to resolve the archive's
+ # jsoncpp references itself (see MTCR_JSON_LIBS in configure.ac).
+ cmtcr.so:
+-	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} -o cmtcr.so -Wl,--whole-archive $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a -Wl,--no-whole-archive $(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} -o cmtcr.so -Wl,--whole-archive $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a -Wl,--no-whole-archive $(MTCR_JSON_LIBS) $(SPDLOG_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = cmtcr.so
+diff --git a/mvpd/Makefile.am b/mvpd/Makefile.am
+index 36e099ed24ce..b7bd5f5dd2b4 100644
+--- a/mvpd/Makefile.am
++++ b/mvpd/Makefile.am
+@@ -47,6 +47,6 @@ noinst_HEADERS = mvpd.h
+ 
+ ${RMVPD_SO}: libmvpd.la
+ 	$(CC) -g -Wall -pthread -shared ${CFLAGS} *.o -o ${RMVPD_SO} \
+-	 $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a $(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS)
++	 $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a $(MTCR_JSON_LIBS) $(SPDLOG_LIBS) $(MST_REMOTE_LINK_LIBS)
+ 
+ CLEANFILES = ${RMVPD_SO}
+diff --git a/reg_access/Makefile.am b/reg_access/Makefile.am
+index 9bbffc6fe625..7b422a50a371 100644
+--- a/reg_access/Makefile.am
++++ b/reg_access/Makefile.am
+@@ -65,6 +65,6 @@ ${RREG_ACCESS_SO}: libreg_access.la
+ 	$(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} *.o -o ${RREG_ACCESS_SO} \
+ 	$(top_builddir)/tools_layouts/.libs/libtools_layouts.a $(top_builddir)/tools_layouts/.libs/libcables_layouts.a \
+ 	$(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a \
+-	$(MTCR_JSON_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
++	$(MTCR_JSON_LIBS) $(SPDLOG_LIBS) $(MST_REMOTE_LINK_LIBS) -lstdc++
+ 
+ CLEANFILES = ${RREG_ACCESS_SO}
+diff --git a/resourcetools/resourcedump_lib/src/sdk/Makefile.am b/resourcetools/resourcedump_lib/src/sdk/Makefile.am
+index de001d2c4f6a..16a63af3dfa1 100644
+--- a/resourcetools/resourcedump_lib/src/sdk/Makefile.am
++++ b/resourcetools/resourcedump_lib/src/sdk/Makefile.am
+@@ -84,6 +84,7 @@ resource_dump_sdk_so_DEPS = \
+     $(MTCR_LIB) \
+     $(OFED_LIBS) \
+     $(MTCR_JSON_LIBS) \
++    $(SPDLOG_LIBS) \
+     $(MST_REMOTE_LINK_LIBS) \
+     -lstdc++
+ 
+-- 
+2.56.1
+

diff --git a/0032-build-only-build-the-DPA-only-ext_libs-with-enable-dpa.patch b/0032-build-only-build-the-DPA-only-ext_libs-with-enable-dpa.patch
new file mode 100644
index 0000000..d26289e
--- /dev/null
+++ b/0032-build-only-build-the-DPA-only-ext_libs-with-enable-dpa.patch
@@ -0,0 +1,37 @@
+From ab73ce4a8e583d765286b7d3271a20c37a04030d Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Thu, 19 Nov 2026 13:49:31 +0100
+Subject: [PATCH] build: only build the DPA-only ext_libs with --enable-dpa
+
+ext_libs/mini-yaml and ext_libs/sole are only linked into mlxdpa, but
+they were listed in SUBDIRS unconditionally, so every build compiled
+them as convenience libraries and then linked them into nothing. Put
+them under the ENABLE_DPA conditional, like the other optional bundled
+libraries.
+
+Assisted-by: OpenCode:enmaas/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017
+Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
+---
+ ext_libs/Makefile.am | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/ext_libs/Makefile.am b/ext_libs/Makefile.am
+index 51f629e3585f..f5bf589f7919 100644
+--- a/ext_libs/Makefile.am
++++ b/ext_libs/Makefile.am
+@@ -32,7 +32,11 @@
+ 
+ # Makefile.am -- Process this file with automake to produce Makefile.in
+ 
+-SUBDIRS = minixz mini-yaml sole
++SUBDIRS = minixz
++
++if ENABLE_DPA
++SUBDIRS += mini-yaml sole
++endif
+ 
+ if ENABLE_FWMGR
+ if USE_LOCAL_INIPARSER
+-- 
+2.56.1
+

diff --git a/mstflint.rpmlintrc b/mstflint.rpmlintrc
index ebaceb8..d44c701 100644
--- a/mstflint.rpmlintrc
+++ b/mstflint.rpmlintrc
@@ -1,8 +1,3 @@
 # Spelling-checker false positives: "Mellanox" is a vendor name and "vpd"
 # (Vital Product Data) is a standard hardware term, neither is a typo.
 addFilter(r"spelling-error .*'(Mellanox|vpd)'")
-
-# mstmtserver uses deprecated IPv4-only functions. It would be easy to make
-# the code dual-stack compatible, but the open source version of mstflint is
-# missing client-side code, so why bother. Already allowed in rpminspect.yaml.
-addFilter(r"binary-or-shlib-calls-gethostbyname /usr/bin/mstmtserver")

diff --git a/mstflint.spec b/mstflint.spec
index bcca0f2..e3d8665 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -1,7 +1,7 @@
 %global __remake_config 1
 
-%global mainver	4.37.0
-%global subver	1.1
+%global mainver	4.38.0
+%global subver	1
 
 Name:		mstflint
 Summary:	Mellanox firmware burning tool
@@ -9,9 +9,10 @@ Version:	%{mainver}_%{subver}
 Release:	%autorelease
 # COPYING says the license is your choice of OpenIB.org BSD or GPLv2.
 # kernel/Makefile has the 3-clause BSD.
-# ext_libs/{iniParser,json,muparser}/ have MIT.
+# ext_libs/{iniParser,json}/ have MIT.
+# ext_libs/muparser/ has BSD-2-Clause.
 # ext_libs/sqlite/ has the SQLite blessing.
-License:	(GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
+License:	(GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND BSD-2-Clause AND blessing
 Url:		https://github.com/Mellanox/%{name}
 # The upstream tarball at %%realSource0 ships prebuilt, non-free libdpa_elf
 # blobs (mlxdpa/dpa_elf/*/libdpa_elf). Removing them in %%prep is not enough,
@@ -22,17 +23,19 @@ Url:		https://github.com/Mellanox/%{name}
 Source0:	%{name}-%{mainver}-%{subver}.free.tar.gz
 Source1:	generate-tarball.sh
 
-# jsoncpp and muParser are not in the RHEL/ELN content set, so we must
-# bundle them there. On Fedora, use the system libraries.
+# jsoncpp, muParser and spdlog are not in the RHEL/ELN content set, so we
+# must bundle them there. On Fedora, use the system libraries.
 # iniparser-devel on RHEL <= 10 lacks a .pc file, so pkg-config detection
 # fails; bundle it there too.
 %if !0%{?rhel}
 %bcond_with bundled_iniparser
 %bcond_with bundled_jsoncpp
 %bcond_with bundled_muparser
+%bcond_with bundled_spdlog
 %else
 %bcond_without bundled_jsoncpp
 %bcond_without bundled_muparser
+%bcond_without bundled_spdlog
 %if 0%{?rhel} <= 10
 %bcond_without bundled_iniparser
 %else
@@ -61,6 +64,11 @@ BuildRequires:	muParser-devel
 %else
 Provides:	bundled(muParser)
 %endif
+%if %{without bundled_spdlog}
+BuildRequires:	spdlog-devel
+%else
+Provides:	bundled(spdlog)
+%endif
 %if %{__remake_config}
 BuildRequires:	libtool, autoconf, automake
 %endif
@@ -72,18 +80,24 @@ ExcludeArch:	s390 %{arm} %{ix86}
 Requires:	python3
 
 %patchlist
-# https://github.com/Mellanox/mstflint/pull/1831
-0001-mtcr-fix-segfault-in-pciconf-open-when-VSEC-is-not-f.patch
-# fix build with system libraries, https://github.com/Mellanox/mstflint/pull/1848
-0010-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch
-0011-configure.ac-use-pkg-config-to-detect-libraries.patch
+# fix build with system libraries
+# https://github.com/Mellanox/mstflint/pull/1848
+0001-mlxconfig-don-t-include-sqlite3.h-via-hardcoded-ext_.patch
+0002-configure.ac-use-pkg-config-to-detect-libraries.patch
+0003-build-link-jsoncpp-into-the-hand-written-.so-recipes.patch
 # use the system CA trust store instead of a private stale bundle
 # https://github.com/Mellanox/mstflint/pull/2090
 0020-mlxfwupdate-use-the-system-trust-store-instead-of-a-.patch
 0021-mlxfwupdate-rename-_ceritifcate-to-_caBundlePath.patch
-# drop the vestigial shebang that rpmlint flags as non-executable-script
-# https://github.com/Mellanox/mstflint/commit/557414fb2ec970f52ae5ed97a6a79bb5f40aaaac
-0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch
+# device_info: drop the vestigial shebang from the properties modules
+# https://github.com/Mellanox/mstflint/pull/2131
+0030-device_info-drop-the-vestigial-shebang-from-the-prop.patch
+# build: use the system spdlog when pkg-config can find one
+# https://github.com/Mellanox/mstflint/pull/2132
+0031-build-prefer-a-system-spdlog-when-pkg-config-can-fi.patch
+# build: only build the DPA-only ext_libs with --enable-dpa
+# https://github.com/Mellanox/mstflint/pull/2133
+0032-build-only-build-the-DPA-only-ext_libs-with-enable-dpa.patch
 
 %description
 This package contains firmware update tool, vpd dump and register dump tools
@@ -95,10 +109,19 @@ for network adapters based on Mellanox Technologies chips.
 # Make sure system libraries are used where possible. Delete the bundled
 # sources. Exception: Keep */Makefile.am files because Makefiles are listed
 # as AC_CONFIG_FILES in configure.ac unconditionally.
-%global _unbundle_dirs ext_libs/sqlite
+# asio/crow (mst_server) and mini-yaml/sole (mlxdpa) are only used with
+# --enable-remote / --enable-dpa, which we never enable. Remove their sources
+# too, so that turning either feature on would fail loudly instead of silently
+# bundling them.
+%global _unbundle_dirs ext_libs/sqlite ext_libs/mini-yaml ext_libs/sole
 %{!?with_bundled_iniparser:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/iniParser}
 %{!?with_bundled_jsoncpp:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/json}
 %{!?with_bundled_muparser:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/muparser}
+%{!?with_bundled_spdlog:%global _unbundle_dirs %{_unbundle_dirs} ext_libs/spdlog}
+# asio and crow have no Makefile in AC_CONFIG_FILES, but asio ships one under
+# include/ that the find below would preserve, leaving a directory it cannot
+# delete, so remove them wholesale.
+rm -rf ext_libs/asio ext_libs/crow
 find %{_unbundle_dirs} -mindepth 1 -name Makefile.am -o -print -delete
 
 find . -type f -perm /a+x \( -name '*.[ch]' -o -name '*.cpp' \) -exec chmod a-x '{}' '+'

diff --git a/sources b/sources
index 95895b6..62b14fd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mstflint-4.37.0-1.1.free.tar.gz) = 17ca55deafd107ff97e261c333c7fc05c903d9e558dc3ba0a0bd88c0e1ab9b6d8a0e559331ae389c50b54ee947ec3d227ae94b823a569785179dee09a160f7e2
+SHA512 (mstflint-4.38.0-1.free.tar.gz) = 7d8cc58a6a856bedb101ce60f4fa032ff37ccef853825018a047865dd5299e3473d36ce26d3b73c03e716fc3396c08f8b87412a01a5867f8859b21d78c52971e

                 reply	other threads:[~2026-11-20  7:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179515810562.1.8565608939451186819.rpms-mstflint-d89712eca4ec@fedoraproject.org \
    --to=mschmidt@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox