diff --git a/fix-return-local-addr.patch b/fix-return-local-addr.patch new file mode 100644 index 0000000000000000000000000000000000000000..2fe549003572eb162fe288e32843d8ae2166fd73 --- /dev/null +++ b/fix-return-local-addr.patch @@ -0,0 +1,24 @@ +diff -urN a/ext_libs/sqlite/Makefile.am b/ext_libs/sqlite/Makefile.am +--- a/ext_libs/sqlite/Makefile.am 2021-08-04 17:25:32.540217181 +0800 ++++ b/ext_libs/sqlite/Makefile.am 2021-08-04 17:27:00.588983377 +0800 +@@ -31,7 +31,7 @@ + #-- + # Makefile.am -- Process this file with automake to produce Makefile.in + +-AM_CFLAGS = -W -Werror -g -MP -MD -DSQLITE_THREADSAFE=0 ${COMPILER_FPIC} ++AM_CFLAGS = -fno-strict-aliasing -Wno-return-local-addr -g -MP -MD -DSQLITE_THREADSAFE=0 ${COMPILER_FPIC} + + noinst_LIBRARIES = libsqlite3.a + noinst_HEADERS = sqlite3.h +diff -urN a/ext_libs/sqlite/Makefile.in b/ext_libs/sqlite/Makefile.in +--- a/ext_libs/sqlite/Makefile.in 2021-08-04 17:25:32.540217181 +0800 ++++ b/ext_libs/sqlite/Makefile.in 2021-08-04 17:27:23.725184708 +0800 +@@ -335,7 +335,7 @@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-AM_CFLAGS = -W -Werror -g -MP -MD -DSQLITE_THREADSAFE=0 ${COMPILER_FPIC} ++AM_CFLAGS = -fno-strict-aliasing -Wno-return-local-addr -g -MP -MD -DSQLITE_THREADSAFE=0 ${COMPILER_FPIC} + noinst_LIBRARIES = libsqlite3.a + noinst_HEADERS = sqlite3.h + libsqlite3_a_SOURCES = \ diff --git a/mstflint.spec b/mstflint.spec index 3d230421eef14d518cbabe07a112036f1f8aec3c..70186088afe8d3bdd5de2ced3ac159d7248433b9 100644 --- a/mstflint.spec +++ b/mstflint.spec @@ -1,11 +1,12 @@ Name: mstflint Summary: Firmware Burning and Diagnostics Tools Version: 4.10.0 -Release: 6 +Release: 7 License: GPLv2+ or BSD Url: https://github.com/Mellanox/mstflint Source: https://github.com/Mellanox/%{name}/releases/download/v4.10.0-2/%{name}-%{version}.tar.gz Patch0000: 0001-Fix-compile-errors.patch +Patch0001: fix-return-local-addr.patch BuildRequires: libstdc++-devel zlib-devel rdma-core-devel gcc-c++ gcc BuildRequires: libcurl-devel boost-devel libxml2-devel openssl-devel @@ -43,6 +44,9 @@ export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %{_mandir}/man1/* %changelog +* Tue Aug 4 2021 shdluan@163.com - 4.10.0-7 +- fix return local addr + * Tue Jul 28 2020 lingsheng - 4.10.0-6 - change the libibmad-devel to rdma-core-devel