commit:     54fa93aa08397882d1f9873c1682bf9a80f031d5
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Mon Jan 19 15:07:29 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 20 04:55:00 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54fa93aa

net-vpn/i2pd: really fix building 2.58.0 with >=boost-1.89

Closes: https://bugs.gentoo.org/969018
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/45443
Closes: https://github.com/gentoo/gentoo/pull/45443
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-vpn/i2pd/files/i2pd-2.58.0-boost-1.89.patch | 32 +++++++++++++++++++++++++
 net-vpn/i2pd/i2pd-2.58.0.ebuild                 |  2 ++
 2 files changed, 34 insertions(+)

diff --git a/net-vpn/i2pd/files/i2pd-2.58.0-boost-1.89.patch 
b/net-vpn/i2pd/files/i2pd-2.58.0-boost-1.89.patch
new file mode 100644
index 000000000000..eb666952a2ab
--- /dev/null
+++ b/net-vpn/i2pd/files/i2pd-2.58.0-boost-1.89.patch
@@ -0,0 +1,32 @@
+From: 
https://github.com/PurpleI2P/i2pd/commit/06a86f31a12815fbd16615cc9fa17199bac1ac17
+Bug: https://bugs.gentoo.org/969018
+
+From: orignal <[email protected]>
+Date: Tue, 28 Oct 2025 17:24:48 -0400
+Subject: [PATCH] exclude boost_system
+
+---
+ build/CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt
+index bc936e18846..c7389d467b3 100644
+--- a/build/CMakeLists.txt
++++ b/build/CMakeLists.txt
+@@ -256,14 +256,14 @@ else()
+   if(NOT MSVC)
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+   endif()
+-  add_definitions(-DBOOST_ATOMIC_DYN_LINK -DBOOST_SYSTEM_DYN_LINK 
-DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK)
++  add_definitions(-DBOOST_ATOMIC_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK 
-DBOOST_PROGRAM_OPTIONS_DYN_LINK)
+   if(WIN32)
+     set(Boost_USE_STATIC_LIBS OFF)
+     set(Boost_USE_STATIC_RUNTIME OFF)
+   endif()
+ endif()
+ 
+-find_package(Boost REQUIRED COMPONENTS system filesystem program_options)
++find_package(Boost REQUIRED COMPONENTS filesystem program_options)
+ if(NOT DEFINED Boost_FOUND)
+   message(SEND_ERROR "Boost is not found, or your boost version was below 
1.46. Please download Boost!")
+ endif()

diff --git a/net-vpn/i2pd/i2pd-2.58.0.ebuild b/net-vpn/i2pd/i2pd-2.58.0.ebuild
index 33db2005a86f..ccd8c4ff4c00 100644
--- a/net-vpn/i2pd/i2pd-2.58.0.ebuild
+++ b/net-vpn/i2pd/i2pd-2.58.0.ebuild
@@ -35,6 +35,8 @@ CMAKE_USE_DIR="${WORKDIR}/${P}/build"
 
 DOCS=( ../README.md ../contrib/i2pd.conf ../contrib/tunnels.conf )
 
+PATCHES=( "${FILESDIR}"/i2pd-2.58.0-boost-1.89.patch )
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_TESTING=$(usex test ON OFF)

Reply via email to