Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ucommon for openSUSE:Factory checked in at 2021-06-04 22:43:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ucommon (Old) and /work/SRC/openSUSE:Factory/.ucommon.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ucommon" Fri Jun 4 22:43:32 2021 rev:25 rq:897364 version:7.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ucommon/ucommon.changes 2020-09-17 14:47:15.931705688 +0200 +++ /work/SRC/openSUSE:Factory/.ucommon.new.1898/ucommon.changes 2021-06-04 22:43:49.819146954 +0200 @@ -1,0 +2,5 @@ +Thu Jun 3 23:12:47 UTC 2021 - Jan Engelhardt <jeng...@inai.de> + +- Add gcc11.patch + +------------------------------------------------------------------- New: ---- gcc11.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ucommon.spec ++++++ --- /var/tmp/diff_new_pack.jwTlO1/_old 2021-06-04 22:43:50.563147776 +0200 +++ /var/tmp/diff_new_pack.jwTlO1/_new 2021-06-04 22:43:50.567147780 +0200 @@ -1,7 +1,7 @@ # # spec file for package ucommon # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2008, 2009 David Sugar, Tycho Softworks. # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without @@ -33,6 +33,7 @@ Source: http://ftp.gnu.org/gnu/commoncpp/%name-%version.tar.gz Source2: http://ftp.gnu.org/gnu/commoncpp/%name-%version.tar.gz.sig Source3: %name.keyring +Patch1: gcc11.patch BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: graphviz-gd ++++++ gcc11.patch ++++++ From: Jan Engelhardt <jeng...@inai.de> Date: 2021-06-04 01:12:20.771644867 +0200 [ 123s] ../inc/ucommon/temporary.h:58:21: error: ISO C++17 does not allow dynamic exception specifications [ 123s] 58 | #define THROWS(x) throw(x) --- commoncpp/persist.cpp | 20 +++---- inc/commoncpp/persist.h | 122 ++++++++++++++++++++++++------------------------ inc/ucommon/generics.h | 4 - inc/ucommon/temporary.h | 4 - 4 files changed, 75 insertions(+), 75 deletions(-) Index: ucommon-7.0.0/commoncpp/persist.cpp =================================================================== --- ucommon-7.0.0.orig/commoncpp/persist.cpp +++ ucommon-7.0.0/commoncpp/persist.cpp @@ -114,7 +114,7 @@ TypeManager::registration::~registration TypeManager::remove(myName.c_str()); } -PersistEngine::PersistEngine(std::iostream& stream, EngineMode mode) throw(PersistException) : +PersistEngine::PersistEngine(std::iostream& stream, EngineMode mode) : myUnderlyingStream(stream), myOperationalMode(mode) { } @@ -125,7 +125,7 @@ PersistEngine::~PersistEngine() myUnderlyingStream.sync(); } -void PersistEngine::writeBinary(const uint8_t* data, const uint32_t size) throw(PersistException) +void PersistEngine::writeBinary(const uint8_t* data, const uint32_t size) { if(myOperationalMode != modeWrite) throw("Cannot write to an input Engine"); @@ -133,14 +133,14 @@ void PersistEngine::writeBinary(const ui } -void PersistEngine::readBinary(uint8_t* data, uint32_t size) throw(PersistException) +void PersistEngine::readBinary(uint8_t* data, uint32_t size) { if(myOperationalMode != modeRead) throw("Cannot read from an output Engine"); myUnderlyingStream.read((char *)data,size); } -void PersistEngine::write(const PersistObject *object) throw(PersistException) +void PersistEngine::write(const PersistObject *object) { // Pre-step, if object is NULL, then don't serialize it - serialize a // marker to say that it is null. @@ -181,7 +181,7 @@ void PersistEngine::write(const PersistO } } -void PersistEngine::read(PersistObject &object) throw(PersistException) +void PersistEngine::read(PersistObject &object) { uint32_t id = 0; read(id); @@ -202,7 +202,7 @@ void PersistEngine::read(PersistObject & readObject(&object); } -void PersistEngine::read(PersistObject *&object) throw(PersistException) +void PersistEngine::read(PersistObject *&object) { uint32_t id = 0; read(id); @@ -237,7 +237,7 @@ void PersistEngine::read(PersistObject * throw(PersistException(std::string("Unable to instantiate object of class ")+className)); } -void PersistEngine::readObject(PersistObject* object) throw(PersistException) +void PersistEngine::readObject(PersistObject* object) { // Okay then - we can make this object myArchiveVector.push_back(object); @@ -251,7 +251,7 @@ void PersistEngine::readObject(PersistOb throw( PersistException("Missing End-of-Object marker")); } -const std::string PersistEngine::readClass() throw(PersistException) +const std::string PersistEngine::readClass() { // Okay - read the identifier for the class in... uint32_t classId = 0; @@ -269,14 +269,14 @@ const std::string PersistEngine::readCla return className; } -void PersistEngine::write(const std::string& str) throw(PersistException) +void PersistEngine::write(const std::string& str) { uint32_t len = (uint32_t)str.length(); write(len); writeBinary((uint8_t*)str.c_str(),len); } -void PersistEngine::read(std::string& str) throw(PersistException) +void PersistEngine::read(std::string& str) { uint32_t len = 0; read(len); Index: ucommon-7.0.0/inc/commoncpp/persist.h =================================================================== --- ucommon-7.0.0.orig/inc/commoncpp/persist.h +++ ucommon-7.0.0/inc/commoncpp/persist.h @@ -210,7 +210,7 @@ public: * the given mode. The stream must be initialized properly prior * to this call or problems will ensue. */ - PersistEngine(std::iostream& stream, EngineMode mode) throw(PersistException); + PersistEngine(std::iostream& stream, EngineMode mode); virtual ~PersistEngine(); @@ -219,75 +219,75 @@ public: /** * writes a PersistObject from a reference. */ - inline void write(const PersistObject &object) throw(PersistException) + inline void write(const PersistObject &object) {write(&object);} /** * writes a PersistObject from a pointer. */ - void write(const PersistObject *object) throw(PersistException); + void write(const PersistObject *object); // writes supported primitive types // shortcut, to make the following more readable #define CCXX_ENGINEWRITE_REF(valref) writeBinary((const uint8_t*)&valref,sizeof(valref)) - inline void write(int8_t i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(uint8_t i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(int16_t i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(uint16_t i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(int32_t i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(uint32_t i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(float i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(double i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } - inline void write(bool i) throw(PersistException) { CCXX_ENGINEWRITE_REF(i); } + inline void write(int8_t i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(uint8_t i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(int16_t i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(uint16_t i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(int32_t i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(uint32_t i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(float i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(double i) { CCXX_ENGINEWRITE_REF(i); } + inline void write(bool i) { CCXX_ENGINEWRITE_REF(i); } #undef CCXX_ENGINEWRITE_REF - void write(const std::string& str) throw(PersistException); + void write(const std::string& str); // Every write operation boils down to one or more of these - void writeBinary(const uint8_t* data, const uint32_t size) throw(PersistException); + void writeBinary(const uint8_t* data, const uint32_t size); // Read Operations /** * reads a PersistObject into a reference overwriting the object. */ - void read(PersistObject &object) throw(PersistException); + void read(PersistObject &object); /** * reads a PersistObject into a pointer allocating memory for the object if necessary. */ - void read(PersistObject *&object) throw(PersistException); + void read(PersistObject *&object); // reads supported primitive types // shortcut, to make the following more readable #define CCXX_ENGINEREAD_REF(valref) readBinary((uint8_t*)&valref,sizeof(valref)) - inline void read(int8_t& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(uint8_t& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(int16_t& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(uint16_t& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(int32_t& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(uint32_t& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(float& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(double& i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } - inline void read(bool &i) throw(PersistException) { CCXX_ENGINEREAD_REF(i); } + inline void read(int8_t& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(uint8_t& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(int16_t& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(uint16_t& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(int32_t& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(uint32_t& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(float& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(double& i) { CCXX_ENGINEREAD_REF(i); } + inline void read(bool &i) { CCXX_ENGINEREAD_REF(i); } #undef CCXX_ENGINEREAD_REF - void read(std::string& str) throw(PersistException); + void read(std::string& str); // Every read operation boiled down to one or more of these - void readBinary(uint8_t* data, uint32_t size) throw(PersistException); + void readBinary(uint8_t* data, uint32_t size); private: /** * reads the actual object data into a pre-instantiated object pointer * by calling the read function of the derived class. */ - void readObject(PersistObject* object) throw(PersistException); + void readObject(PersistObject* object); /** * reads in a class name, and caches it into the ClassMap. */ - const std::string readClass() throw(PersistException); + const std::string readClass(); /** @@ -319,63 +319,63 @@ private: // Standard >> and << stream operators for PersistObject /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, PersistObject &ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, PersistObject &ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, PersistObject *&ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, PersistObject *&ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, PersistObject const &ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, PersistObject const &ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, PersistObject const *ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, PersistObject const *ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, int8_t& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, int8_t& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, int8_t ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, int8_t ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, uint8_t& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, uint8_t& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, uint8_t ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, uint8_t ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, int16_t& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, int16_t& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, int16_t ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, int16_t ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, uint16_t& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, uint16_t& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, uint16_t ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, uint16_t ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, int32_t& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, int32_t& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, int32_t ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, int32_t ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, uint32_t& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, uint32_t& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, uint32_t ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, uint32_t ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, float& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, float& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, float ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, float ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, double& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, double& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, double ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, double ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, std::string& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, std::string& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, std::string ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, std::string ob) {CCXX_WE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator >>( PersistEngine& ar, bool& ob) throw(PersistException) {CCXX_RE(ar,ob);} +inline PersistEngine& operator >>( PersistEngine& ar, bool& ob) {CCXX_RE(ar,ob);} /** @relates PersistEngine */ -inline PersistEngine& operator <<( PersistEngine& ar, bool ob) throw(PersistException) {CCXX_WE(ar,ob);} +inline PersistEngine& operator <<( PersistEngine& ar, bool ob) {CCXX_WE(ar,ob);} #undef CCXX_RE #undef CCXX_WE @@ -390,7 +390,7 @@ inline PersistEngine& operator <<( Persi * the engine */ template<class T> -PersistEngine& operator <<( PersistEngine& ar, typename std::vector<T> const& ob) throw(PersistException) +PersistEngine& operator <<( PersistEngine& ar, typename std::vector<T> const& ob) { ar << (uint32_t)ob.size(); for(unsigned int i=0; i < ob.size(); ++i) @@ -404,7 +404,7 @@ PersistEngine& operator <<( PersistEngin * an engine. */ template<class T> -PersistEngine& operator >>( PersistEngine& ar, typename std::vector<T>& ob) throw(PersistException) +PersistEngine& operator >>( PersistEngine& ar, typename std::vector<T>& ob) { ob.clear(); uint32_t siz; @@ -421,7 +421,7 @@ PersistEngine& operator >>( PersistEngin * the engine */ template<class T> -PersistEngine& operator <<( PersistEngine& ar, typename std::deque<T> const& ob) throw(PersistException) +PersistEngine& operator <<( PersistEngine& ar, typename std::deque<T> const& ob) { ar << (uint32_t)ob.size(); for(typename std::deque<T>::const_iterator it=ob.begin(); it != ob.end(); ++it) @@ -435,7 +435,7 @@ PersistEngine& operator <<( PersistEngin * an engine. */ template<class T> -PersistEngine& operator >>( PersistEngine& ar, typename std::deque<T>& ob) throw(PersistException) +PersistEngine& operator >>( PersistEngine& ar, typename std::deque<T>& ob) { ob.clear(); uint32_t siz; @@ -456,7 +456,7 @@ PersistEngine& operator >>( PersistEngin * to an engine. */ template<class Key, class Value> -PersistEngine& operator <<( PersistEngine& ar, typename std::map<Key,Value> const & ob) throw(PersistException) +PersistEngine& operator <<( PersistEngine& ar, typename std::map<Key,Value> const & ob) { ar << (uint32_t)ob.size(); for(typename std::map<Key,Value>::const_iterator it = ob.begin();it != ob.end();++it) @@ -470,7 +470,7 @@ PersistEngine& operator <<( PersistEngin * from an engine. */ template<class Key, class Value> -PersistEngine& operator >>( PersistEngine& ar, typename std::map<Key,Value>& ob) throw(PersistException) +PersistEngine& operator >>( PersistEngine& ar, typename std::map<Key,Value>& ob) { ob.clear(); uint32_t siz; @@ -488,7 +488,7 @@ PersistEngine& operator >>( PersistEngin * serialize a pair of some serializable content to the engine. */ template<class x, class y> -PersistEngine& operator <<( PersistEngine& ar, std::pair<x,y> &ob) throw(PersistException) +PersistEngine& operator <<( PersistEngine& ar, std::pair<x,y> &ob) { ar << ob.first << ob.second; return ar; @@ -499,7 +499,7 @@ PersistEngine& operator <<( PersistEngin * deserialize a pair of some serializable content to the engine. */ template<class x, class y> -PersistEngine& operator >>(PersistEngine& ar, std::pair<x, y> &ob) throw(PersistException) +PersistEngine& operator >>(PersistEngine& ar, std::pair<x, y> &ob) { ar >> ob.first >> ob.second; return ar; Index: ucommon-7.0.0/inc/ucommon/generics.h =================================================================== --- ucommon-7.0.0.orig/inc/ucommon/generics.h +++ ucommon-7.0.0/inc/ucommon/generics.h @@ -35,8 +35,8 @@ #ifndef UCOMMON_SYSRUNTIME #define THROW(x) throw x -#define THROWS(x) throw(x) -#define THROWS_ANY throw() +#define THROWS(x) +#define THROWS_ANY #else #define THROW(x) ::abort() #define THROWS(x) Index: ucommon-7.0.0/inc/ucommon/temporary.h =================================================================== --- ucommon-7.0.0.orig/inc/ucommon/temporary.h +++ ucommon-7.0.0/inc/ucommon/temporary.h @@ -55,8 +55,8 @@ #ifndef UCOMMON_SYSRUNTIME #define THROW(x) throw x -#define THROWS(x) throw(x) -#define THROWS_ANY throw() +#define THROWS(x) +#define THROWS_ANY #else #define THROW(x) ::abort() #define THROWS(x)