[packages/libcutl] - added patch to remove throw() specifiers

qboosh qboosh at pld-linux.org
Sun Feb 11 21:34:29 CET 2024


commit 2879b909ff1343cf7d2f0573ebc018c8509fa763
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 11 21:25:07 2024 +0100

    - added patch to remove throw() specifiers

 libcutl-throw.patch | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 libcutl.spec        |  6 ++--
 2 files changed, 98 insertions(+), 2 deletions(-)
---
diff --git a/libcutl.spec b/libcutl.spec
index dd7e117..685b9f2 100644
--- a/libcutl.spec
+++ b/libcutl.spec
@@ -12,12 +12,13 @@ Group:		Libraries
 Source0:	https://www.codesynthesis.com/download/libcutl/1.10/%{name}-%{version}.tar.bz2
 # Source0-md5:	462930494a5e7094ea14b00f3767f6af
 Patch0:		%{name}-boost.patch
+Patch1:		%{name}-throw.patch
 URL:		https://www.codesynthesis.com/projects/libcutl/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
 BuildRequires:	boost-devel >= 1.54.0
 BuildRequires:	expat-devel >= 1.95
-BuildRequires:	libstdc++-devel
+BuildRequires:	libstdc++-devel >= 6:4.7
 BuildRequires:	libtool >= 2:2
 BuildRequires:	pkgconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,7 +37,7 @@ Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki cutl
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	boost-devel >= 1.54.0
-Requires:	libstdc++-devel
+Requires:	libstdc++-devel >= 6:4.7
 
 %description devel
 Header files for cutl library.
@@ -59,6 +60,7 @@ Statyczna biblioteka cutl.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # boost (as of 1.82) includes C++ <version> header; take out version file from include path
 %{__mv} version version.txt
diff --git a/libcutl-throw.patch b/libcutl-throw.patch
new file mode 100644
index 0000000..05c2654
--- /dev/null
+++ b/libcutl-throw.patch
@@ -0,0 +1,94 @@
+--- libcutl-1.10.0/cutl/shared-ptr/base.hxx.orig	2013-02-09 09:10:00.000000000 +0100
++++ libcutl-1.10.0/cutl/shared-ptr/base.hxx	2024-02-11 21:10:58.474566198 +0100
+@@ -31,17 +31,17 @@ extern LIBCUTL_EXPORT cutl::share shared
+ extern LIBCUTL_EXPORT cutl::share exclusive;
+ 
+ LIBCUTL_EXPORT void*
+-operator new (std::size_t, cutl::share) throw (std::bad_alloc);
++operator new (std::size_t, cutl::share);
+ 
+ LIBCUTL_EXPORT void
+-operator delete (void*, cutl::share) throw ();
++operator delete (void*, cutl::share) noexcept;
+ 
+ namespace cutl
+ {
+   struct LIBCUTL_EXPORT not_shared: exception
+   {
+     virtual char const*
+-    what () const throw ();
++    what () const noexcept;
+   };
+ 
+   struct LIBCUTL_EXPORT shared_base
+@@ -61,13 +61,13 @@ namespace cutl
+     _ref_count () const;
+ 
+     void*
+-    operator new (std::size_t, share) throw (std::bad_alloc);
++    operator new (std::size_t, share);
+ 
+     void
+-    operator delete (void*, share) throw ();
++    operator delete (void*, share) noexcept;
+ 
+     void
+-    operator delete (void*) throw ();
++    operator delete (void*) noexcept;
+ 
+   protected:
+     std::size_t counter_;
+--- libcutl-1.10.0/cutl/shared-ptr/base.cxx.orig	2013-02-09 09:10:00.000000000 +0100
++++ libcutl-1.10.0/cutl/shared-ptr/base.cxx	2024-02-11 21:11:23.077766244 +0100
+@@ -16,7 +16,7 @@ cutl::share exclusive = cutl::share (2);
+ namespace cutl
+ {
+   char const* not_shared::
+-  what () const throw ()
++  what () const noexcept
+   {
+     return "object is not shared";
+   }
+@@ -25,7 +25,7 @@ namespace cutl
+ //
+ //
+ void*
+-operator new (size_t n, cutl::share s) throw (std::bad_alloc)
++operator new (size_t n, cutl::share s)
+ {
+   if (s == shared)
+   {
+@@ -45,7 +45,7 @@ operator new (size_t n, cutl::share s) t
+ }
+ 
+ void
+-operator delete (void* p, cutl::share s) throw ()
++operator delete (void* p, cutl::share s) noexcept
+ {
+   // This version of operator delete is only called when the c-tor
+   // fails. In this case there is no object and we can just free the
+--- libcutl-1.10.0/cutl/shared-ptr/base.ixx.orig	2013-02-09 09:10:00.000000000 +0100
++++ libcutl-1.10.0/cutl/shared-ptr/base.ixx	2024-02-11 21:16:46.332681688 +0100
+@@ -59,19 +59,19 @@ namespace cutl
+   }
+ 
+   inline void* shared_base::
+-  operator new (std::size_t n, share) throw (std::bad_alloc)
++  operator new (std::size_t n, share)
+   {
+     return ::operator new (n);
+   }
+ 
+   inline void shared_base::
+-  operator delete (void* p, share) throw ()
++  operator delete (void* p, share) noexcept
+   {
+     ::operator delete (p);
+   }
+ 
+   inline void shared_base::
+-  operator delete (void* p) throw ()
++  operator delete (void* p) noexcept
+   {
+     ::operator delete (p);
+   }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcutl.git/commitdiff/2879b909ff1343cf7d2f0573ebc018c8509fa763



More information about the pld-cvs-commit mailing list