summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-02-11 08:50:09 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2021-02-11 08:56:32 +0000
commitfdb3061a9f6f618246ec3d1efd392026bf75f6a5 (patch)
treee22fab407570ddb5bb1905557dbe6ecb4cebca5f /games-puzzle
parentnet-misc/apt-cacher-ng: remove old openrc files (diff)
downloadgentoo-fdb3061a9f6f618246ec3d1efd392026bf75f6a5.tar.gz
gentoo-fdb3061a9f6f618246ec3d1efd392026bf75f6a5.tar.bz2
gentoo-fdb3061a9f6f618246ec3d1efd392026bf75f6a5.zip
games-puzzle/brainparty: tweak for gcc-11
Reported-by: Kobboi Closes: https://bugs.gentoo.org/768204 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/brainparty/brainparty-0.61-r1.ebuild1
-rw-r--r--games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch14
2 files changed, 15 insertions, 0 deletions
diff --git a/games-puzzle/brainparty/brainparty-0.61-r1.ebuild b/games-puzzle/brainparty/brainparty-0.61-r1.ebuild
index fc43bec69a80..2400e1405d14 100644
--- a/games-puzzle/brainparty/brainparty-0.61-r1.ebuild
+++ b/games-puzzle/brainparty/brainparty-0.61-r1.ebuild
@@ -28,6 +28,7 @@ PATCHES=(
"${FILESDIR}"/${P}-savegame.patch
"${FILESDIR}"/${P}-gcc49.patch
"${FILESDIR}"/${P}-gnu_cxx-hash.patch
+ "${FILESDIR}"/${P}-gcc-11.patch
)
src_prepare() {
diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch b/games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch
new file mode 100644
index 000000000000..695fc0b674c3
--- /dev/null
+++ b/games-puzzle/brainparty/files/brainparty-0.61-gcc-11.patch
@@ -0,0 +1,14 @@
+gcc-11 needs const operator()
+
+https://bugs.gentoo.org/768204
+--- a/BPGame.h
++++ b/BPGame.h
+@@ -53,7 +53,7 @@ class BPMiniGame;
+ class SpriteFont;
+
+ struct cmp_str {
+- bool operator()(char const *a, char const *b) {
++ bool operator()(char const *a, char const *b) const {
+ return std::strcmp(a, b) < 0;
+ }
+ };