1 |
commit: ef1a25ce2dff306620f671e330b7bccc50e7f7da |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jul 20 06:53:08 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 30 09:08:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef1a25ce |
7 |
|
8 |
media-gfx/opentoonz: Fix building with GCC-6 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=612938 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/5145 |
13 |
|
14 |
...ntoonz-1.1.2-gcc6-no-throw-in-destructors.patch | 38 ++++++++++++++++++++++ |
15 |
media-gfx/opentoonz/opentoonz-1.1.2.ebuild | 2 ++ |
16 |
2 files changed, 40 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch b/media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..ad0e5a2758e |
21 |
--- /dev/null |
22 |
+++ b/media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch |
23 |
@@ -0,0 +1,38 @@ |
24 |
+Bug: https://bugs.gentoo.org/show_bug.cgi?id=612938 |
25 |
+ |
26 |
+From ae91dbad8c33b35ea564d235c8eba63adfcc0fef Mon Sep 17 00:00:00 2001 |
27 |
+From: Peter-Levine <plevine457@×××××.com> |
28 |
+Date: Wed, 31 May 2017 04:49:36 -0400 |
29 |
+Subject: [PATCH] Don't allow throw() in destructors (#1182) |
30 |
+ |
31 |
+--- |
32 |
+ toonz/sources/image/3gp/tiio_3gp_proxy.cpp | 2 -- |
33 |
+ toonz/sources/image/mov/tiio_mov_proxy.cpp | 2 -- |
34 |
+ 2 files changed, 4 deletions(-) |
35 |
+ |
36 |
+diff --git a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp b/toonz/sources/image/3gp/tiio_3gp_proxy.cpp |
37 |
+index d1bd79717..03140f695 100644 |
38 |
+--- a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp |
39 |
++++ b/toonz/sources/image/3gp/tiio_3gp_proxy.cpp |
40 |
+@@ -138,8 +138,6 @@ TLevelWriter3gp::~TLevelWriter3gp() { |
41 |
+ QString res; |
42 |
+ |
43 |
+ stream << (msg << QString("$closeLW3gp") << m_id); |
44 |
+- if (tipc::readMessage(stream, msg) != "ok") |
45 |
+- throw TException("Unable to write file"); |
46 |
+ } |
47 |
+ |
48 |
+ //------------------------------------------------------------------ |
49 |
+diff --git a/toonz/sources/image/mov/tiio_mov_proxy.cpp b/toonz/sources/image/mov/tiio_mov_proxy.cpp |
50 |
+index 260bbb196..6be067c01 100644 |
51 |
+--- a/toonz/sources/image/mov/tiio_mov_proxy.cpp |
52 |
++++ b/toonz/sources/image/mov/tiio_mov_proxy.cpp |
53 |
+@@ -206,8 +206,6 @@ TLevelWriterMov::~TLevelWriterMov() { |
54 |
+ QString res; |
55 |
+ |
56 |
+ stream << (msg << QString("$closeLWMov") << m_id); |
57 |
+- if (tipc::readMessage(stream, msg) != "ok") |
58 |
+- throw TException("Unable to write file"); |
59 |
+ } |
60 |
+ |
61 |
+ //------------------------------------------------------------------ |
62 |
|
63 |
diff --git a/media-gfx/opentoonz/opentoonz-1.1.2.ebuild b/media-gfx/opentoonz/opentoonz-1.1.2.ebuild |
64 |
index ed1e797dbbd..ed5cd3d6884 100644 |
65 |
--- a/media-gfx/opentoonz/opentoonz-1.1.2.ebuild |
66 |
+++ b/media-gfx/opentoonz/opentoonz-1.1.2.ebuild |
67 |
@@ -48,6 +48,8 @@ DEPEND=" |
68 |
|
69 |
CMAKE_USE_DIR="${S}"/toonz/sources |
70 |
|
71 |
+PATCHES=( "${FILESDIR}"/${P}-gcc6-no-throw-in-destructors.patch ) |
72 |
+ |
73 |
src_configure() |
74 |
{ |
75 |
local mycmakeargs=( |