commit bc05916ab1ceda34cb138b76de381b061942196f
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sun Feb 28 04:20:40 2021 +0000
Add upstream patch for GCC 11
...-7997ad11eefe241bb85a27c50d009c99851d7b0b.patch | 23 ++++++++++++++++++++++
bino.spec | 2 ++
2 files changed, 25 insertions(+)
---
diff --git a/bino.git-7997ad11eefe241bb85a27c50d009c99851d7b0b.patch
b/bino.git-7997ad11eefe241bb85a27c50d009c99851d7b0b.patch
new file mode 100644
index 0000000..823934a
--- /dev/null
+++ b/bino.git-7997ad11eefe241bb85a27c50d009c99851d7b0b.patch
@@ -0,0 +1,23 @@
+From: Martin Lambers <marlam(a)marlam.de>
+Date: Sat, 27 Feb 2021 20:28:50 +0000 (+0100)
+Subject: fix compilation with C++ 17 compilers such as gcc 11
+X-Git-Url:
https://git.marlam.de/gitweb/?p=bino.git;a=commitdiff_plain;h=7997ad11eef...
+
+fix compilation with C++ 17 compilers such as gcc 11
+---
+
+diff --git a/src/base/dbg.cpp b/src/base/dbg.cpp
+index 6c6234f..044be67 100644
+--- a/src/base/dbg.cpp
++++ b/src/base/dbg.cpp
+@@ -74,8 +74,10 @@ namespace dbg
+ (void)sigaction(SIGFPE, &signal_handler, NULL);
+ (void)sigaction(SIGSEGV, &signal_handler, NULL);
+ #endif
++#if __cplusplus < 201700
+ std::set_unexpected(exception_crash);
+ std::set_terminate(exception_crash);
++#endif
+ std::set_new_handler(oom_abort);
+ }
+
diff --git a/bino.spec b/bino.spec
index b8f7978..71caef1 100644
--- a/bino.spec
+++ b/bino.spec
@@ -6,6 +6,7 @@ Group: System Environment/Base
License: GPLv3+
URL:
https://bino3d.org
Source0: %url/releases/%{name}-%{version}.tar.xz
+Patch1: bino.git-7997ad11eefe241bb85a27c50d009c99851d7b0b.patch
# No libquadmath-devel on any other arch apart from x86
ExclusiveArch: i686 x86_64
@@ -76,6 +77,7 @@ fi
%changelog
* Wed Feb 03 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.6.7-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+- Add upstream patch for GCC 11
* Thu Dec 31 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.6.7-7
- Rebuilt for new ffmpeg snapshot