commit:     9b4b07480d01c1dc4bdb51f0e583851f9902ff0a
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 26 18:38:54 2026 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 21:00:59 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b4b0748

games-strategy/freeorion: Fix build w/ boost-1.89

Closes: https://bugs.gentoo.org/969243
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/freeorion-0.5.1.1-boost-1.89.patch       | 62 ++++++++++++++++++++++
 games-strategy/freeorion/freeorion-0.5.1.1.ebuild  |  3 +-
 2 files changed, 64 insertions(+), 1 deletion(-)

diff --git a/games-strategy/freeorion/files/freeorion-0.5.1.1-boost-1.89.patch 
b/games-strategy/freeorion/files/freeorion-0.5.1.1-boost-1.89.patch
new file mode 100644
index 000000000000..8e9c794c8cd0
--- /dev/null
+++ b/games-strategy/freeorion/files/freeorion-0.5.1.1-boost-1.89.patch
@@ -0,0 +1,62 @@
+From 7aa4a9acd04ed9b876bfe2cee1045ad98d03b991 Mon Sep 17 00:00:00 2001
+From: geoffthemedio <[email protected]>
+Date: Fri, 5 Sep 2025 08:12:11 +0200
+Subject: [PATCH] remove Boost system dependency. apparently only exists for
+ backwards compatibility in recent Boost versions.
+
+---
+ CMakeLists.txt              | 1 -
+ GG/CMakeLists.txt           | 2 +-
+ GG/test/unit/CMakeLists.txt | 1 -
+ test/UI/CMakeLists.txt      | 1 -
+ 4 files changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8a43f713dfb..1c269a219ed 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -286,7 +286,6 @@ find_package(Boost ${MINIMUM_BOOST_VERSION}
+         log_setup
+         random
+         serialization
+-        system
+         thread
+     REQUIRED)
+ 
+diff --git a/GG/CMakeLists.txt b/GG/CMakeLists.txt
+index 6c3b282d595..f386f207c2f 100644
+--- a/GG/CMakeLists.txt
++++ b/GG/CMakeLists.txt
+@@ -66,7 +66,7 @@ endif()
+ 
+ set(MINIMUM_BOOST_VERSION 1.69.0)
+ 
+-find_package(Boost ${MINIMUM_BOOST_VERSION} COMPONENTS filesystem regex 
system REQUIRED)
++find_package(Boost ${MINIMUM_BOOST_VERSION} COMPONENTS filesystem regex 
REQUIRED)
+ 
+ find_package(OpenGL REQUIRED)
+ find_package(GLEW REQUIRED)
+diff --git a/GG/test/unit/CMakeLists.txt b/GG/test/unit/CMakeLists.txt
+index c7585b029c6..be0877695fd 100644
+--- a/GG/test/unit/CMakeLists.txt
++++ b/GG/test/unit/CMakeLists.txt
+@@ -16,7 +16,6 @@ add_executable(gg_unittest
+ target_link_libraries(gg_unittest
+     GiGi
+     Boost::boost
+-    Boost::system
+     Boost::unit_test_framework
+ )
+ 
+diff --git a/test/UI/CMakeLists.txt b/test/UI/CMakeLists.txt
+index 80bf78860eb..4008fd5feac 100644
+--- a/test/UI/CMakeLists.txt
++++ b/test/UI/CMakeLists.txt
+@@ -23,7 +23,6 @@ add_library(fo_acceptance_runner STATIC
+ 
+ target_link_libraries(fo_acceptance_runner
+     PUBLIC
+-        Boost::system
+         GiGi::GiGi
+         GLEW::GLEW
+         ${SDL_LIBRARIES}

diff --git a/games-strategy/freeorion/freeorion-0.5.1.1.ebuild 
b/games-strategy/freeorion/freeorion-0.5.1.1.ebuild
index ea6151c487b8..b8c95752dee7 100644
--- a/games-strategy/freeorion/freeorion-0.5.1.1.ebuild
+++ b/games-strategy/freeorion/freeorion-0.5.1.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -49,6 +49,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${P}-config.h-path.patch
+       "${FILESDIR}"/${P}-boost-1.89.patch # bug #969243, in 0.5.1.2
 )
 
 freeorion_check-reqs() {

Reply via email to