diff --git a/issue-3373882-Fix-compilation-issue-for-gcc-13.0.1.patch b/issue-3373882-Fix-compilation-issue-for-gcc-13.0.1.patch new file mode 100644 index 0000000..e2bf3bf --- /dev/null +++ b/issue-3373882-Fix-compilation-issue-for-gcc-13.0.1.patch @@ -0,0 +1,21 @@ +commit 24524730a0344c7de1bba2ba9a2bf637bb32153f +Author: Igor Ivanov +Date: Mon Feb 20 18:05:47 2023 +0200 + + issue: 3373882 Fix compilation issue for gcc 13.0.1 + + Signed-off-by: Igor Ivanov + +diff --git config/m4/compiler.m4 config/m4/compiler.m4 +index 014a01f1ed51..3c93276f7b7c 100644 +--- config/m4/compiler.m4 ++++ config/m4/compiler.m4 +@@ -143,7 +143,7 @@ case $CC in + -Wno-free-nonheap-object " + CXXFLAGS="$CXXFLAGS -Wshadow -Wall -Wextra -Werror -Wundef \ + -ffunction-sections -fdata-sections -Wsequence-point -pipe -Winit-self -Wmissing-include-dirs \ +- -Wno-free-nonheap-object " ++ -Wno-free-nonheap-object -Wno-overloaded-virtual " + ;; + icc*|icpc*) + AC_MSG_RESULT([icc]) diff --git a/libvma.changes b/libvma.changes index 7879f42..836234f 100644 --- a/libvma.changes +++ b/libvma.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 29 08:41:11 UTC 2023 - Nicolas Morey + +- Add issue-3373882-Fix-compilation-issue-for-gcc-13.0.1.patch for GCC13 support + ------------------------------------------------------------------- Fri Sep 30 13:13:43 UTC 2022 - Nicolas Morey-Chaisemartin diff --git a/libvma.spec b/libvma.spec index 223b250..48e19a5 100644 --- a/libvma.spec +++ b/libvma.spec @@ -1,7 +1,7 @@ # # spec file for package libvma # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ Version: 9.7.0 Release: 0 Source0: %{name}-%{version}%{git_ver}.tar.gz Source1: vma.service +Patch1: issue-3373882-Fix-compilation-issue-for-gcc-13.0.1.patch Patch3: harden_vma.service.patch URL: https://github.com/Mellanox/libvma BuildRequires: autoconf @@ -71,6 +72,7 @@ Headers and symbolink link required to compile and link with the Libvma library. %prep %setup -q -n %{name}-%{version}%{git_ver} +%patch1 %patch3 -p1 %build