Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libvma for openSUSE:Factory checked 
in at 2022-06-13 13:02:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libvma (Old)
 and      /work/SRC/openSUSE:Factory/.libvma.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libvma"

Mon Jun 13 13:02:57 2022 rev:13 rq:982358 version:9.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libvma/libvma.changes    2021-11-17 
01:14:35.954179874 +0100
+++ /work/SRC/openSUSE:Factory/.libvma.new.1548/libvma.changes  2022-06-13 
13:03:25.549191860 +0200
@@ -1,0 +2,6 @@
+Mon Jun 13 06:47:26 UTC 2022 - Nicolas Morey-Chaisemartin 
<[email protected]>
+
+- Add issue-2945718-Fix-gcc12-compilation-issue.patch to fix
+  compilation issues with GCC12
+
+-------------------------------------------------------------------

New:
----
  issue-2945718-Fix-gcc12-compilation-issue.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libvma.spec ++++++
--- /var/tmp/diff_new_pack.MTCNp1/_old  2022-06-13 13:03:25.941192362 +0200
+++ /var/tmp/diff_new_pack.MTCNp1/_new  2022-06-13 13:03:25.945192367 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libvma
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,7 +29,8 @@
 Source0:        %{name}-%{version}%{git_ver}.tar.gz
 Source1:        vma.service
 Patch1:         issue-2485156-Fix-fc35-issues.patch
-Patch2:        harden_vma.service.patch
+Patch2:         issue-2945718-Fix-gcc12-compilation-issue.patch
+Patch3:         harden_vma.service.patch
 URL:            https://github.com/Mellanox/libvma
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -73,7 +74,8 @@
 %prep
 %setup -q -n  %{name}-%{version}%{git_ver}
 %patch1
-%patch2 -p1
+%patch2
+%patch3 -p1
 
 %build
 ./autogen.sh

++++++ issue-2945718-Fix-gcc12-compilation-issue.patch ++++++
commit 865def12ac0e46a80c2ace2e7ed39258b3de30ed
Author: Igor Ivanov <[email protected]>
Date:   Mon Jan 31 20:01:33 2022 +0200

    issue: 2945718 Fix gcc12 compilation issue
    
    C++17 has deprecated a few components that had been in C++ since its 
beginning,
    and std::iterator is one of them.
    
    In addition fixed configure warning:
    checking mellanox/dpcp.h presence... no
    configure: WARNING: mellanox/dpcp.h: accepted by the compiler, rejected by 
the preprocessor!
    configure: WARNING: mellanox/dpcp.h: proceeding with the compiler's result
    The reason: preprocessor does not see -std=c++11
    
    Signed-off-by: Igor Ivanov <[email protected]>

diff --git config/m4/dpcp.m4 config/m4/dpcp.m4
index 3d3a7593190e..31b40ce6ef78 100644
--- config/m4/dpcp.m4
+++ config/m4/dpcp.m4
@@ -43,7 +43,7 @@ AS_IF([test "x$with_dpcp" == xno],
         vma_cv_dpcp_LDFLAGS="-L$with_dpcp/lib64 -Wl,--rpath,$with_dpcp/lib64"
     fi
 
-    CPPFLAGS="$vma_cv_dpcp_CPPFLAGS $CPPFLAGS"
+    CPPFLAGS="-std=c++11 $vma_cv_dpcp_CPPFLAGS $CPPFLAGS"
     CXXFLAGS="-std=c++11 $CXXFLAGS"
     LDFLAGS="$vma_cv_dpcp_LDFLAGS $LDFLAGS"
     LIBS="$vma_cv_dpcp_LIBS $LIBS"
diff --git src/vma/util/vma_list.h src/vma/util/vma_list.h
index ae57fba43676..9c9b6b38b1d5 100644
--- src/vma/util/vma_list.h
+++ src/vma/util/vma_list.h
@@ -88,9 +88,14 @@ public :
 
 template<typename T, size_t offset(void)>
 /* coverity[missing_move_assignment] */
-class list_iterator_t : public std::iterator<std::random_access_iterator_tag, 
T, std::ptrdiff_t, T*, T&>
+class list_iterator_t
 {
 public:
+       using iterator_category = std::random_access_iterator_tag;
+       using value_type = T;
+       using difference_type = std::ptrdiff_t;
+       using pointer = T*;
+       using reference = T&;
 
        list_iterator_t(T* ptr = NULL) : m_ptr(ptr) {}
 

Reply via email to