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-sports/trigger/, games-sports/trigger/files/
Date: Sun, 30 Jul 2017 09:10:13
Message-Id: 1501405722.205a71b38f3f2e18a0bc5f7dc3031b2ff8ad3156.soap@gentoo
1 commit: 205a71b38f3f2e18a0bc5f7dc3031b2ff8ad3156
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 7 07:02:29 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 09:08:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=205a71b3
7
8 games-sports/trigger: Fix building with GCC-6
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=617886
11 Package-Manager: Portage-2.3.6, Repoman-2.3.2
12 Closes: https://github.com/gentoo/gentoo/pull/5059
13
14 .../trigger/files/trigger-0.6.1-gcc6.patch | 39 ++++++++++++++++++++++
15 games-sports/trigger/trigger-0.6.1-r1.ebuild | 6 ++--
16 2 files changed, 43 insertions(+), 2 deletions(-)
17
18 diff --git a/games-sports/trigger/files/trigger-0.6.1-gcc6.patch b/games-sports/trigger/files/trigger-0.6.1-gcc6.patch
19 new file mode 100644
20 index 00000000000..38822287c61
21 --- /dev/null
22 +++ b/games-sports/trigger/files/trigger-0.6.1-gcc6.patch
23 @@ -0,0 +1,39 @@
24 +Bug: https://bugs.gentoo.org/617886
25 +
26 +--- a/src/pengine/tinyxmlparser.cpp
27 ++++ b/src/pengine/tinyxmlparser.cpp
28 +@@ -326,14 +326,14 @@
29 + if ( !p || !*p )
30 + {
31 + SetError( TIXML_ERROR_DOCUMENT_EMPTY );
32 +- return false;
33 ++ return NULL;
34 + }
35 +
36 + p = SkipWhiteSpace( p );
37 + if ( !p )
38 + {
39 + SetError( TIXML_ERROR_DOCUMENT_EMPTY );
40 +- return false;
41 ++ return NULL;
42 + }
43 +
44 + while ( p && *p )
45 +@@ -541,7 +541,7 @@
46 + if ( !p || !*p || *p != '<' )
47 + {
48 + if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT );
49 +- return false;
50 ++ return NULL;
51 + }
52 +
53 + p = SkipWhiteSpace( p+1 );
54 +@@ -551,7 +551,7 @@
55 + if ( !p || !*p )
56 + {
57 + if ( document ) document->SetError( TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME );
58 +- return false;
59 ++ return NULL;
60 + }
61 +
62 + TIXML_STRING endTag ("</");
63
64 diff --git a/games-sports/trigger/trigger-0.6.1-r1.ebuild b/games-sports/trigger/trigger-0.6.1-r1.ebuild
65 index 88ead4153a0..0b608391997 100644
66 --- a/games-sports/trigger/trigger-0.6.1-r1.ebuild
67 +++ b/games-sports/trigger/trigger-0.6.1-r1.ebuild
68 @@ -1,4 +1,4 @@
69 -# Copyright 1999-2016 Gentoo Foundation
70 +# Copyright 1999-2017 Gentoo Foundation
71 # Distributed under the terms of the GNU General Public License v2
72
73 EAPI=6
74 @@ -7,7 +7,7 @@ inherit eutils
75 MY_PN=${PN}-rally
76 MY_P=${MY_PN}-${PV}
77 DESCRIPTION="Free OpenGL rally car racing game"
78 -HOMEPAGE="http://www.positro.net/trigger/"
79 +HOMEPAGE="http://trigger-rally.sourceforge.net/"
80 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
81
82 LICENSE="GPL-2"
83 @@ -29,6 +29,8 @@ DEPEND="${RDEPEND}
84
85 S=${WORKDIR}/${MY_P}
86
87 +PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
88 +
89 pkg_setup() {
90 # Otherwise build fails with:
91 # ...skipped trigger for lack of libpengine.a...