1 |
commit: fdb3061a9f6f618246ec3d1efd392026bf75f6a5 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 11 08:50:09 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 11 08:56:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdb3061a |
7 |
|
8 |
games-puzzle/brainparty: tweak for gcc-11 |
9 |
|
10 |
Reported-by: Kobboi |
11 |
Closes: https://bugs.gentoo.org/768204 |
12 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
games-puzzle/brainparty/brainparty-0.61-r1.ebuild | 1 + |
16 |
games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch | 14 ++++++++++++++ |
17 |
2 files changed, 15 insertions(+) |
18 |
|
19 |
diff --git a/games-puzzle/brainparty/brainparty-0.61-r1.ebuild b/games-puzzle/brainparty/brainparty-0.61-r1.ebuild |
20 |
index fc43bec69a8..2400e1405d1 100644 |
21 |
--- a/games-puzzle/brainparty/brainparty-0.61-r1.ebuild |
22 |
+++ b/games-puzzle/brainparty/brainparty-0.61-r1.ebuild |
23 |
@@ -28,6 +28,7 @@ PATCHES=( |
24 |
"${FILESDIR}"/${P}-savegame.patch |
25 |
"${FILESDIR}"/${P}-gcc49.patch |
26 |
"${FILESDIR}"/${P}-gnu_cxx-hash.patch |
27 |
+ "${FILESDIR}"/${P}-gcc-11.patch |
28 |
) |
29 |
|
30 |
src_prepare() { |
31 |
|
32 |
diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch b/games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..695fc0b674c |
35 |
--- /dev/null |
36 |
+++ b/games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch |
37 |
@@ -0,0 +1,14 @@ |
38 |
+gcc-11 needs const operator() |
39 |
+ |
40 |
+https://bugs.gentoo.org/768204 |
41 |
+--- a/BPGame.h |
42 |
++++ b/BPGame.h |
43 |
+@@ -53,7 +53,7 @@ class BPMiniGame; |
44 |
+ class SpriteFont; |
45 |
+ |
46 |
+ struct cmp_str { |
47 |
+- bool operator()(char const *a, char const *b) { |
48 |
++ bool operator()(char const *a, char const *b) const { |
49 |
+ return std::strcmp(a, b) < 0; |
50 |
+ } |
51 |
+ }; |