mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-19 00:09:37 +03:00
games-strategy/colobot: Fix building with gcc-14
Closes: https://bugs.gentoo.org/922895 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -50,6 +50,12 @@ DEPEND+="
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# fixed upstream as part of:
|
||||
# https://github.com/colobot/colobot/commit/1b69589302c2ac92c6befd2880a03b4b07c7f820
|
||||
"${FILESDIR}/${P}-gcc14.patch"
|
||||
)
|
||||
|
||||
cmake_src_prepare
|
||||
|
||||
# we need to call it explicitly to help Ninja figure out the deps
|
||||
|
||||
12
games-strategy/colobot/files/colobot-0.2.1_alpha-gcc14.patch
Normal file
12
games-strategy/colobot/files/colobot-0.2.1_alpha-gcc14.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/src/level/scoreboard.cpp b/src/level/scoreboard.cpp
|
||||
index 87c4451..abc44fe 100644
|
||||
--- a/src/level/scoreboard.cpp
|
||||
+++ b/src/level/scoreboard.cpp
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "ui/displaytext.h"
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
+#include <algorithm>
|
||||
|
||||
void CScoreboard::CScoreboardRule::Read(CLevelParserLine* line)
|
||||
{
|
||||
Reference in New Issue
Block a user