From b9c42614a4140680c04f04eb8b281e75954b80a1 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 28 Oct 2020 11:12:18 -0600 Subject: [PATCH] - Disable fatal diagnostics from gcc-11 for fipvlan --- fcoe-utils-gcc11.patch | 15 +++++++++++++++ fcoe-utils.spec | 6 +++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 fcoe-utils-gcc11.patch diff --git a/fcoe-utils-gcc11.patch b/fcoe-utils-gcc11.patch new file mode 100644 index 0000000..e9b29fe --- /dev/null +++ b/fcoe-utils-gcc11.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile.am b/Makefile.am +index 2f323e4..d6bc3c3 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -25,6 +25,10 @@ fcping_CFLAGS = $(AM_CFLAGS) + ## rules for building fipvlan + fipvlan_SOURCES = fipvlan.c + fipvlan_LDADD = lib/libutil.a ++# These look like valid warnings, but the code may be fine in practice. Someone ++# with a deeper understanding of the source needs to chime in ++fipvlan_CFLAGS = $(AM_CFLAGS) -Wno-error=array-bounds -Wno-error=stringop-overread ++ + + AUTOMAKE_OPTIONS=subdir-objects + noinst_LIBRARIES = lib/libutil.a libopenfcoe.a diff --git a/fcoe-utils.spec b/fcoe-utils.spec index 4809eac..2f06862 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -7,7 +7,7 @@ Name: fcoe-utils Version: 1.0.33 -Release: 0.git%{shortcommit0}%{?dist} +Release: 1.git%{shortcommit0}%{?dist} Summary: Fibre Channel over Ethernet utilities License: GPLv2 URL: http://www.open-fcoe.org @@ -18,6 +18,7 @@ Source3: fcoe.config ExcludeArch: ppc s390 Patch1: 0001-21-string-op-truncation-format-truncation-and-format.patch Patch2: 0002-use-of-uninitialized-values-detected-during-LTO.patch +Patch3: %{name}-gcc11.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libpciaccess-devel @@ -83,6 +84,9 @@ rm -f %{buildroot}/%{_sysconfdir}/fcoe/config %{_libexecdir}/fcoe/ %changelog +* Wed Oct 28 2020 Jeff Law - 1.0.33-1.gitfe376de +- Disable fatal diagnostics from gcc-11 for fipvlan + * Mon Sep 21 2020 Chris Leech - 1.0.33-0.gitfe376de - FTBFS: fix gcc 10.2 truncation and overflow errors - rebase to 1.0.33+ from new upstream location