Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libvpd2 for openSUSE:Factory checked in at 2021-06-02 22:11:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvpd2 (Old) and /work/SRC/openSUSE:Factory/.libvpd2.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvpd2" Wed Jun 2 22:11:30 2021 rev:34 rq:896643 version:2.2.8 Changes: -------- --- /work/SRC/openSUSE:Factory/libvpd2/libvpd2.changes 2020-11-24 22:10:29.619385127 +0100 +++ /work/SRC/openSUSE:Factory/.libvpd2.new.1898/libvpd2.changes 2021-06-02 22:11:55.384155924 +0200 @@ -1,0 +2,6 @@ +Tue Jun 1 08:43:00 UTC 2021 - Christophe Giboudeaux <[email protected]> + +- Add GCC 11 compatibility fix: + * 0001-Remove-dynamic-exception-specification.patch + +------------------------------------------------------------------- New: ---- 0001-Remove-dynamic-exception-specification.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvpd2.spec ++++++ --- /var/tmp/diff_new_pack.waQT63/_old 2021-06-02 22:11:55.880156740 +0200 +++ /var/tmp/diff_new_pack.waQT63/_new 2021-06-02 22:11:55.880156740 +0200 @@ -25,6 +25,8 @@ URL: https://github.com/power-ras/libvpd Source: https://github.com/power-ras/libvpd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: baselibs.conf +# PATCH-FIX-UPSTREAM +Patch0: 0001-Remove-dynamic-exception-specification.patch Patch1: libvpd2.makefile.patch BuildRequires: autoconf BuildRequires: automake @@ -51,8 +53,7 @@ the lsvpd package. %prep -%setup -q -n libvpd-%{version} -%autopatch -p1 +%autosetup -p1 -n libvpd-%{version} %build autoreconf -fiv ++++++ 0001-Remove-dynamic-exception-specification.patch ++++++ >From 89d851806393d049e074ab9c02401c0344d64e41 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal <[email protected]> Date: Wed, 7 Apr 2021 14:11:41 +0530 Subject: [PATCH] Remove dynamic exception specification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tomasz K??oczko reported that the build fails, while compiling with GCC 11: In file included from src/vpdretriever.cpp:25: ./src/libvpd-2/vpdretriever.hpp:62:33: error: ISO C++17 does not allow dynamic exception specifications 62 | throw( VpdException& ); | ^~~~~ ./src/libvpd-2/vpdretriever.hpp:74:33: error: ISO C++17 does not allow dynamic exception specifications 74 | throw( VpdException& ); | ^~~~~ src/vpdretriever.cpp:50:37: error: ISO C++17 does not allow dynamic exception specifications 50 | string dbFileName ) throw( VpdException& ) | ^~~~~ src/vpdretriever.cpp:62:39: error: ISO C++17 does not allow dynamic exception specifications 62 | VpdRetriever::VpdRetriever( ) throw( VpdException& ) | ^~~~~ make: *** [Makefile:660: src/vpdretriever.lo] Error 1 As part of http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0003r5.html, the dynamic exception specification have been removed. Remove the throw specifier, to specify that the function might throw an exception. Signed-off-by: Kamalesh Babulal <[email protected]> Signed-off-by: Vasant Hegde <[email protected]> --- src/libvpd-2/vpdretriever.hpp | 6 ++---- src/vpdretriever.cpp | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/libvpd-2/vpdretriever.hpp b/src/libvpd-2/vpdretriever.hpp index 0d91ac4..1be2664 100644 --- a/src/libvpd-2/vpdretriever.hpp +++ b/src/libvpd-2/vpdretriever.hpp @@ -58,8 +58,7 @@ namespace lsvpd * @param dbFileName * The file name for the VPD database. */ - VpdRetriever( string envDir, string dbFileName ) - throw( VpdException& ); + VpdRetriever( string envDir, string dbFileName ); /** * Builds A VpdRetriever object that can be used for reading the @@ -70,8 +69,7 @@ namespace lsvpd * this constructor, there were serious underlying issues that * are not recoverable. Uses the default dir and filename */ - VpdRetriever( ) - throw( VpdException& ); + VpdRetriever( ); ~VpdRetriever( ); /** diff --git a/src/vpdretriever.cpp b/src/vpdretriever.cpp index 9f7e7a0..470047e 100644 --- a/src/vpdretriever.cpp +++ b/src/vpdretriever.cpp @@ -47,7 +47,7 @@ namespace lsvpd const string VpdRetriever::UDEV_NOTIFY_FILE ( "/run/run.vpdupdate" ); VpdRetriever::VpdRetriever( string envDir, - string dbFileName ) throw( VpdException& ) + string dbFileName ) { try { db = new VpdDbEnv( envDir, dbFileName, true ); @@ -59,7 +59,7 @@ namespace lsvpd } } - VpdRetriever::VpdRetriever( ) throw( VpdException& ) + VpdRetriever::VpdRetriever( ) { struct stat vpd_stat,udev_stat; const string vpddb = VpdRetriever::DEFAULT_DIR + VpdRetriever::DEFAULT_FILE; -- 2.31.1
