diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-16 20:00:04 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-17 12:59:51 +0700 |
commit | 9cad56da4826010dd90503214e01c1cba7e726d9 (patch) | |
tree | 2e6f9402a621ec0da674632771e5af644b24c17f /development | |
parent | a4aa26e892ef060fb7c3a3aba93a16e2f2cb0c1b (diff) |
development/libcutl: Patch for gcc >= 11.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/libcutl/gcc11.patch | 50 | ||||
-rw-r--r-- | development/libcutl/libcutl.SlackBuild | 3 |
2 files changed, 53 insertions, 0 deletions
diff --git a/development/libcutl/gcc11.patch b/development/libcutl/gcc11.patch new file mode 100644 index 000000000000..5de8c81b2d13 --- /dev/null +++ b/development/libcutl/gcc11.patch @@ -0,0 +1,50 @@ +Description: don't use dynamic exceptions + Just remove those. +Author: Laszlo Boszormenyi (GCS) <gcs@debian.org> +Bug-Debian: https://bugs.debian.org/984098 +Last-Update: 2021-10-12 + +--- + +--- a/cutl/shared-ptr/base.cxx ++++ b/cutl/shared-ptr/base.cxx +@@ -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) + { +--- a/cutl/shared-ptr/base.hxx ++++ b/cutl/shared-ptr/base.hxx +@@ -31,7 +31,7 @@ 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 (); +@@ -61,7 +61,7 @@ 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 (); +--- a/cutl/shared-ptr/base.ixx ++++ b/cutl/shared-ptr/base.ixx +@@ -59,7 +59,7 @@ 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); + } diff --git a/development/libcutl/libcutl.SlackBuild b/development/libcutl/libcutl.SlackBuild index b12db11f301b..9d2c30116e96 100644 --- a/development/libcutl/libcutl.SlackBuild +++ b/development/libcutl/libcutl.SlackBuild @@ -79,6 +79,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# thanks, debian! +patch -p1 < $CWD/gcc11.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |