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-puzzle/cuyo/, games-puzzle/cuyo/files/
Date: Sun, 16 Apr 2017 18:58:09
Message-Id: 1492369064.3e10135aa9dcc539f7b7bae6b0bbddb0cd34c1b9.soap@gentoo
1 commit: 3e10135aa9dcc539f7b7bae6b0bbddb0cd34c1b9
2 Author: Peter-Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 7 22:13:13 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 16 18:57:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e10135a
7
8 games-puzzle/cuyo: Fix building with GCC-6 (bug #614366)
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/4385
12
13 games-puzzle/cuyo/cuyo-2.1.1.ebuild | 5 +--
14 games-puzzle/cuyo/files/cuyo-2.1.1-gcc6.patch | 45 +++++++++++++++++++++++++++
15 2 files changed, 48 insertions(+), 2 deletions(-)
16
17 diff --git a/games-puzzle/cuyo/cuyo-2.1.1.ebuild b/games-puzzle/cuyo/cuyo-2.1.1.ebuild
18 index c4fa72e8962..76714e98faa 100644
19 --- a/games-puzzle/cuyo/cuyo-2.1.1.ebuild
20 +++ b/games-puzzle/cuyo/cuyo-2.1.1.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 +# Copyright 1999-2017 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=5
27 @@ -26,7 +26,8 @@ S=${WORKDIR}/${MY_P}
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${P}-gcc44.patch \
31 - "${FILESDIR}"/${P}-gentoo.patch
32 + "${FILESDIR}"/${P}-gentoo.patch \
33 + "${FILESDIR}"/${P}-gcc6.patch
34 eautoreconf
35 }
36
37
38 diff --git a/games-puzzle/cuyo/files/cuyo-2.1.1-gcc6.patch b/games-puzzle/cuyo/files/cuyo-2.1.1-gcc6.patch
39 new file mode 100644
40 index 00000000000..b1ba5b535de
41 --- /dev/null
42 +++ b/games-puzzle/cuyo/files/cuyo-2.1.1-gcc6.patch
43 @@ -0,0 +1,45 @@
44 +--- a/src/pfaditerator.h
45 ++++ b/src/pfaditerator.h
46 +@@ -21,6 +21,11 @@
47 + #include "stringzeug.h"
48 +
49 +
50 ++#if __cplusplus >= 201103L
51 ++#define NOEXCEPT noexcept(false)
52 ++#else
53 ++#define NOEXCEPT
54 ++#endif
55 +
56 +
57 + /** Iteriert durch alle Pfade, an denen sich eine
58 +@@ -43,7 +48,7 @@
59 + class PfadIterator {
60 + public:
61 + PfadIterator(Str dat, bool auch_gz = false, bool setzDefault = false);
62 +- ~PfadIterator();
63 ++ ~PfadIterator() NOEXCEPT;
64 +
65 + /** N�chster Pfad */
66 + PfadIterator & operator++();
67 +--- a/src/pfaditerator.cpp
68 ++++ b/src/pfaditerator.cpp
69 +@@ -48,7 +48,7 @@
70 + -1 und f�hren dann gleich ein ++ aus. */
71 + ++(*this);
72 + }
73 +-PfadIterator::~PfadIterator() {
74 ++PfadIterator::~PfadIterator() NOEXCEPT {
75 + /** Soll der default-Pfad gesetzt werden? */
76 + if (mSetzDefault) {
77 +
78 +--- a/src/xpmladen.cpp
79 ++++ b/src/xpmladen.cpp
80 +@@ -314,7 +314,7 @@
81 + try {
82 +
83 + /* Datei laden. Dabei werden gDatAnfang und gDatEnde gesetzt. */
84 +- if (!ladeDatei(na)) return false;
85 ++ if (!ladeDatei(na)) return NULL;
86 +
87 +
88 + gDatBei = gDatAnfang;