diff --git a/Fix-compilation-with-GCC-14.patch b/Fix-compilation-with-GCC-14.patch new file mode 100644 index 0000000..e6374b0 --- /dev/null +++ b/Fix-compilation-with-GCC-14.patch @@ -0,0 +1,33 @@ +commit 09834d6cfa193439f6b35364b4f1c6134643198a +Author: Yaakov Selkowitz +Date: Sun Jun 23 12:09:14 2024 -0400 + + Fix compilation with GCC 14 + + C++20 has changed the syntax for nested template constructors: + + ``` + In file included from ../../src/vma/proto/mem_buf_desc.h:39, + from ../../src/vma/util/utils.h:47, + from vlogger.cpp:46: + ../../src/vma/util/vma_list.h:210:31: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] + 210 | vma_list_t (const vma_list_t& other) { + | ^ + ../../src/vma/util/vma_list.h:210:31: note: remove the '< >' + ``` + + Signed-off-by: Yaakov Selkowitz + +diff --git src/vma/util/vma_list.h src/vma/util/vma_list.h +index cd3e5f9eef38..550fe709ea05 100644 +--- src/vma/util/vma_list.h ++++ src/vma/util/vma_list.h +@@ -207,7 +207,7 @@ public: + } + } + +- vma_list_t (const vma_list_t& other) { ++ vma_list_t(const vma_list_t& other) { + if (!other.empty()) + vlist_logwarn("Copy constructor is not supported for non-empty list! other.size=%zu", other.m_size); + init_list(); diff --git a/harden_vma.service.patch b/harden_vma.service.patch index 8ce7889..20fb92f 100644 --- a/harden_vma.service.patch +++ b/harden_vma.service.patch @@ -1,7 +1,13 @@ -Index: libvma-9.3.1.0.47396f1a5eaa/contrib/scripts/vma.service.in -=================================================================== ---- libvma-9.3.1.0.47396f1a5eaa.orig/contrib/scripts/vma.service.in -+++ libvma-9.3.1.0.47396f1a5eaa/contrib/scripts/vma.service.in +commit efdb35ba76077c15054efa3c170c13ce303f284d +Author: Nicolas Morey +Date: Thu Sep 5 14:40:33 2024 +0200 + + harden vma.service + +diff --git contrib/scripts/vma.service.in contrib/scripts/vma.service.in +index e6f5a25b7e00..86d40487ab24 100644 +--- contrib/scripts/vma.service.in ++++ contrib/scripts/vma.service.in @@ -3,6 +3,19 @@ Description=VMA Daemon After=network.target diff --git a/libvma.changes b/libvma.changes index d8e0058..538dbf7 100644 --- a/libvma.changes +++ b/libvma.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Sep 5 12:43:04 UTC 2024 - Nicolas Morey + +- Backport upstream patch to fix compilation GCC >= 14 + - Fix-compilation-with-GCC-14.patch +- Refresh harden_vma.service.patch to use patch -p0 format + +------------------------------------------------------------------- +Fri Mar 1 10:22:45 UTC 2024 - pgajdos@suse.com + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN + ------------------------------------------------------------------- Mon Oct 2 08:10:03 UTC 2023 - Nicolas Morey diff --git a/libvma.spec b/libvma.spec index 15d9375..036fa91 100644 --- a/libvma.spec +++ b/libvma.spec @@ -1,7 +1,7 @@ # # spec file for package libvma # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,7 +28,8 @@ Version: 9.8.40 Release: 0 Source0: %{name}-%{version}%{git_ver}.tar.gz Source1: vma.service -Patch3: harden_vma.service.patch +Patch1: harden_vma.service.patch +Patch2: Fix-compilation-with-GCC-14.patch URL: https://github.com/Mellanox/libvma BuildRequires: autoconf BuildRequires: automake @@ -70,8 +71,7 @@ Requires: libvma%{lib_major} = %{version} Headers and symbolink link required to compile and link with the Libvma library. %prep -%setup -q -n %{name}-%{version}%{git_ver} -%patch3 -p1 +%autosetup -p0 -n %{name}-%{version}%{git_ver} %build ./autogen.sh