Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/dangerdeep/files/, games-simulation/dangerdeep/
Date: Sun, 30 Jul 2017 09:10:18
Message-Id: 1501405778.b0d6d93eedcd429a3676066499c77d6c561501ea.soap@gentoo
1 commit: b0d6d93eedcd429a3676066499c77d6c561501ea
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Sun Jul 23 03:32:52 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 09:09:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0d6d93e
7
8 games-simulation/dangerdeep: Fix building with -Werror=terminate
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=610654
11 Package-Manager: Portage-2.3.6, Repoman-2.3.2
12 Closes: https://github.com/gentoo/gentoo/pull/5181
13
14 .../dangerdeep/dangerdeep-0.3.0.ebuild | 5 +--
15 .../dangerdeep/files/dangerdeep-0.3.0-gcc6.patch | 38 ++++++++++++++++++++++
16 2 files changed, 41 insertions(+), 2 deletions(-)
17
18 diff --git a/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild b/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild
19 index d6b4d755ed9..8534a693071 100644
20 --- a/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild
21 +++ b/games-simulation/dangerdeep/dangerdeep-0.3.0.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2015 Gentoo Foundation
24 +# Copyright 1999-2017 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=5
28 @@ -29,7 +29,8 @@ src_prepare() {
29 "${FILESDIR}"/${P}-build.patch \
30 "${FILESDIR}"/${P}-gcc43.patch \
31 "${FILESDIR}"/${P}-gcc47.patch \
32 - "${FILESDIR}"/${P}-gcc44.patch
33 + "${FILESDIR}"/${P}-gcc44.patch \
34 + "${FILESDIR}"/${P}-gcc6.patch
35 sed -i -e "/console_log.txt/ s:fopen.*:stderr;:" src/system.cpp || die
36 }
37
38
39 diff --git a/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc6.patch b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc6.patch
40 new file mode 100644
41 index 00000000000..1634aa763e4
42 --- /dev/null
43 +++ b/games-simulation/dangerdeep/files/dangerdeep-0.3.0-gcc6.patch
44 @@ -0,0 +1,38 @@
45 +Bug: https://bugs.gentoo.org/show_bug.cgi?id=610654
46 +Upstream Ticket: https://sourceforge.net/p/dangerdeep/patches/26/
47 +
48 +--- a/src/system.cpp
49 ++++ b/src/system.cpp
50 +@@ -178,7 +178,7 @@
51 + instance = this;
52 + }
53 +
54 +-system::~system()
55 ++system::~system() DTOR_NOEXCEPT
56 + {
57 + if (!instance) {
58 + SDL_Quit();
59 +--- a/src/system.h
60 ++++ b/src/system.h
61 +@@ -52,6 +52,12 @@
62 + #define ASSERT(a,...)
63 + #endif
64 +
65 ++#if __cplusplus >= 201103L
66 ++#define DTOR_NOEXCEPT noexcept(false)
67 ++#else
68 ++#define DTOR_NOEXCEPT
69 ++#endif
70 ++
71 + class font;
72 + class texture;
73 +
74 +@@ -61,7 +67,7 @@
75 + public:
76 + enum button_type { left_button=0x1, right_button=0x2, middle_button=0x4, wheel_up=0x8, wheel_down=0x10 };
77 + system(double nearz_, double farz_, unsigned res_x=1024, unsigned res_y=768, bool fullscreen=true);
78 +- ~system();
79 ++ ~system() DTOR_NOEXCEPT;
80 + void set_video_mode(unsigned res_x_, unsigned res_y_, bool fullscreen);
81 + void swap_buffers();
82 +