commit: b23212ec1c0278f1870456d8ab9f535cf427537f Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Mon Jun 16 18:25:35 2025 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Mon Jun 16 18:46:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b23212ec
net-p2p/transmission: backport fix for cmake-4 Closes: https://bugs.gentoo.org/955890 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> .../files/transmission-4.0.6-dht-cmake-4.patch | 26 ++++++++++++++++++++++ net-p2p/transmission/transmission-4.0.6-r5.ebuild | 7 ++++++ 2 files changed, 33 insertions(+) diff --git a/net-p2p/transmission/files/transmission-4.0.6-dht-cmake-4.patch b/net-p2p/transmission/files/transmission-4.0.6-dht-cmake-4.patch new file mode 100644 index 000000000000..5e5ba7fc00ce --- /dev/null +++ b/net-p2p/transmission/files/transmission-4.0.6-dht-cmake-4.patch @@ -0,0 +1,26 @@ +https://github.com/transmission/dht/pull/4 +https://bugs.gentoo.org/955890 + +From e0334724c38eebea377bf61fef6fcf2ca68eba74 Mon Sep 17 00:00:00 2001 +From: Yat Ho <[email protected]> +Date: Wed, 2 Apr 2025 09:59:53 +0800 +Subject: [PATCH] build: bump CMake version to 3.10 + +CMake < 3.5 compatibility has been removed from CMake 4.0 and CMake < 3.10 compatibility has been deprecated in CMake 3.31. + +https://cmake.org/cmake/help/latest/release/4.0.html +https://cmake.org/cmake/help/latest/release/3.31.html +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6d4aa99..596dbfb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.10) + project(dht C) + + add_library(${PROJECT_NAME} STATIC diff --git a/net-p2p/transmission/transmission-4.0.6-r5.ebuild b/net-p2p/transmission/transmission-4.0.6-r5.ebuild index de0acce8d2bb..e4ffd09b8df1 100644 --- a/net-p2p/transmission/transmission-4.0.6-r5.ebuild +++ b/net-p2p/transmission/transmission-4.0.6-r5.ebuild @@ -72,6 +72,13 @@ PATCHES=( "${FILESDIR}/transmission-4.0.6-miniupnpc-2.2.8.patch" ) +src_prepare() { + cd third-party/dht || die + eapply "${FILESDIR}"/transmission-4.0.6-dht-cmake-4.patch + cd "${S}" || die + cmake_src_prepare +} + src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
