2
0
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:
Michał Górny
2024-06-07 20:23:14 +02:00
parent a027a727af
commit db53498a2c
2 changed files with 19 additions and 1 deletions

View File

@@ -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

View 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)
{