Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libpt2 for openSUSE:Factory checked in at 2021-06-14 23:11:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpt2 (Old) and /work/SRC/openSUSE:Factory/.libpt2.new.32437 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpt2" Mon Jun 14 23:11:08 2021 rev:44 rq:899889 version:2.10.11 Changes: -------- --- /work/SRC/openSUSE:Factory/libpt2/libpt2.changes 2021-01-21 21:54:53.953782593 +0100 +++ /work/SRC/openSUSE:Factory/.libpt2.new.32437/libpt2.changes 2021-06-14 23:11:36.760807616 +0200 @@ -1,0 +2,7 @@ +Fri Jun 4 12:38:44 UTC 2021 - Frederic Crozat <fcro...@suse.com> + +- Add libpt2-avoid-C-11-deprecation-warning-when-using-g-7.patch: + fix build with old gcc. +- Add libpt2-c11-fixes.patch: fix C++11 warnings. + +------------------------------------------------------------------- New: ---- libpt2-avoid-C-11-deprecation-warning-when-using-g-7.patch libpt2-c11-fixes.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpt2.spec ++++++ --- /var/tmp/diff_new_pack.rHqUHR/_old 2021-06-14 23:11:37.236808476 +0200 +++ /var/tmp/diff_new_pack.rHqUHR/_new 2021-06-14 23:11:37.240808483 +0200 @@ -52,6 +52,10 @@ Patch10: libpt2-gnu-make-4.3.patch # PATCH-FIX-UPSTREAM ptlib-2.10.11-signed_int_overflow.patch rh#1696458 fcro...@suse.com -- fix overflow Patch11: ptlib-2.10.11-signed_int_overflow.patch +# PATCH-FIX-UPSTREAM libpt2-c11-fixes.patch fcro...@suse.com -- Fix warning in C++11 +Patch12: libpt2-c11-fixes.patch +# PATCH-FIX-UPSTREAM libpt2-avoid-C-11-deprecation-warning-when-using-g-7.patch fcro...@suse.com -- Fix build with old gcc +Patch13: libpt2-avoid-C-11-deprecation-warning-when-using-g-7.patch BuildRequires: SDL-devel BuildRequires: alsa-devel BuildRequires: bison @@ -194,6 +198,8 @@ %patch10 -p1 %endif %patch11 -p1 +%patch12 -p1 +%patch13 -p1 %build export CXXFLAGS="%optflags -fvisibility-inlines-hidden" ++++++ libpt2-avoid-C-11-deprecation-warning-when-using-g-7.patch ++++++ >From 21656e41b77295a662db3ca5b88cba16666a1c6c Mon Sep 17 00:00:00 2001 From: Gavin Llewellyn <gavin.llewel...@blackboard.com> Date: Thu, 25 Oct 2018 15:03:07 +0100 Subject: [PATCH] Avoid C++11 deprecation warning when using g++7 --- src/ptlib/common/object.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) Index: ptlib-2.10.11/src/ptlib/common/object.cxx =================================================================== --- ptlib-2.10.11.orig/src/ptlib/common/object.cxx 2013-08-15 01:20:26.000000000 +0200 +++ ptlib-2.10.11/src/ptlib/common/object.cxx 2021-06-04 15:07:14.134480238 +0200 @@ -255,7 +255,9 @@ #undef realloc #undef free -#if (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X +#if (__cplusplus >= 201103L) +void * operator new(size_t nSize) +#elif (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X void * operator new(size_t nSize) throw (std::bad_alloc) #else void * operator new(size_t nSize) @@ -265,7 +267,9 @@ } -#if (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X +#if (__cplusplus >= 201103L) +void * operator new[](size_t nSize) +#elif (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X void * operator new[](size_t nSize) throw (std::bad_alloc) #else void * operator new[](size_t nSize) @@ -275,7 +279,9 @@ } -#if (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X +#if (__cplusplus >= 201103L) +void operator delete(void * ptr) noexcept +#elif (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X void operator delete(void * ptr) throw() #else void operator delete(void * ptr) @@ -285,7 +291,9 @@ } -#if (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X +#if (__cplusplus >= 201103L) +void operator delete[](void * ptr) noexcept +#elif (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X void operator delete[](void * ptr) throw() #else void operator delete[](void * ptr) @@ -945,30 +953,6 @@ } -#else // defined(_MSC_VER) && defined(_DEBUG) - -#if !defined(P_VXWORKS) && !defined(_WIN32_WCE) - -#if (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X -void * operator new[](size_t nSize) throw (std::bad_alloc) -#else -void * operator new[](size_t nSize) -#endif -{ - return malloc(nSize); -} - -#if (__GNUC__ >= 3) || ((__GNUC__ == 2)&&(__GNUC_MINOR__ >= 95)) //2.95.X & 3.X -void operator delete[](void * ptr) throw () -#else -void operator delete[](void * ptr) -#endif -{ - free(ptr); -} - -#endif // !P_VXWORKS - #endif // defined(_MSC_VER) && defined(_DEBUG) #endif // PMEMORY_CHECK ++++++ libpt2-c11-fixes.patch ++++++ >From 0981bb16d5bb7d1c73a59b006c25fba7c3bc82cb Mon Sep 17 00:00:00 2001 From: Robert Jongbloed <robe...@voxlucida.com.au> Date: Fri, 26 Jun 2015 09:15:49 +0000 Subject: [PATCH] Some more C++11 changes --- make/post.mak | 4 ++-- samples/lua/lua_test.cxx | 10 +++++----- src/ptclib/random.cxx | 2 +- src/ptlib/common/contain.cxx | 8 ++++---- src/ptlib/common/osutils.cxx | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) Index: ptlib-2.10.11/src/ptclib/random.cxx =================================================================== --- ptlib-2.10.11.orig/src/ptclib/random.cxx 2021-06-04 14:51:07.270206457 +0200 +++ ptlib-2.10.11/src/ptclib/random.cxx 2021-06-04 14:52:13.493551821 +0200 @@ -138,7 +138,7 @@ unsigned PRandom::Generate() { if (randcnt-- == 0) { - register DWORD a,b,x,y,*m,*mm,*m2,*r,*mend; + DWORD a,b,x,y,*m,*mm,*m2,*r,*mend; mm=randmem; r=randrsl; a = randa; b = randb + (++randc); for (m = mm, mend = m2 = m+(RandSize/2); m<mend; ) Index: ptlib-2.10.11/src/ptlib/common/contain.cxx =================================================================== --- ptlib-2.10.11.orig/src/ptlib/common/contain.cxx 2021-06-04 14:51:07.258206578 +0200 +++ ptlib-2.10.11/src/ptlib/common/contain.cxx 2021-06-04 14:51:07.274206416 +0200 @@ -1161,7 +1161,7 @@ MakeUnique(); - register PINDEX slen = GetLength(); + PINDEX slen = GetLength(); if (start > slen) return; @@ -1178,7 +1178,7 @@ if (end < 0 || start < 0 || end < start) return Empty(); - register PINDEX len = GetLength(); + PINDEX len = GetLength(); if (start > len) return Empty(); @@ -1314,7 +1314,7 @@ if (offset < 0) return P_MAX_INDEX; - register PINDEX len = GetLength(); + PINDEX len = GetLength(); while (offset < len) { if (InternalCompare(offset, ch) == EqualTo) return offset; @@ -1530,7 +1530,7 @@ if (len < 0 || pos < 0) return; - register PINDEX slen = GetLength(); + PINDEX slen = GetLength(); if (pos >= slen) operator+=(cstr); else {