From e956ecd20369bb1bb8333e5e32160d186aefd799 Mon Sep 17 00:00:00 2001 From: shdluan Date: Wed, 4 Aug 2021 17:55:03 +0800 Subject: [PATCH] fix return local addr Signed-off-by: shdluan --- fix-return-local-addr.patch | 24 ++++++++++++++++++++++++ mstflint.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 fix-return-local-addr.patch diff --git a/fix-return-local-addr.patch b/fix-return-local-addr.patch new file mode 100644 index 0000000..f68c553 --- /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 = -W -Werror -Wno-error=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 = -W -Werror -Wno-error=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 3d23042..db8b4a3 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 +* Wed 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 -- Gitee