commit: 3c5933a2de5d088149214c5fae7e4d0a25391d34 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Tue Jan 20 20:46:24 2026 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue Jan 20 20:46:58 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c5933a2
sci-ml/caffe2: fix unresolved symbols in libtorch_cpu.so Closes: https://bugs.gentoo.org/968839 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> .../{caffe2-2.9.1-r2.ebuild => caffe2-2.9.1-r3.ebuild} | 3 ++- sci-ml/caffe2/files/caffe2-2.9.1-torch_cpu.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/sci-ml/caffe2/caffe2-2.9.1-r2.ebuild b/sci-ml/caffe2/caffe2-2.9.1-r3.ebuild similarity index 99% rename from sci-ml/caffe2/caffe2-2.9.1-r2.ebuild rename to sci-ml/caffe2/caffe2-2.9.1-r3.ebuild index 7bca767d9949..00dd1979e173 100644 --- a/sci-ml/caffe2/caffe2-2.9.1-r2.ebuild +++ b/sci-ml/caffe2/caffe2-2.9.1-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2025 Gentoo Authors +# Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -164,6 +164,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.9.0-cmake.patch "${FILESDIR}"/${PN}-2.9.0-rocm-distributed-link.patch "${FILESDIR}"/${P}-CCCL31.patch + "${FILESDIR}"/${P}-torch_cpu.patch ) src_prepare() { diff --git a/sci-ml/caffe2/files/caffe2-2.9.1-torch_cpu.patch b/sci-ml/caffe2/files/caffe2-2.9.1-torch_cpu.patch new file mode 100644 index 000000000000..7c5d91b26ebe --- /dev/null +++ b/sci-ml/caffe2/files/caffe2-2.9.1-torch_cpu.patch @@ -0,0 +1,15 @@ +--- a/caffe2/CMakeLists.txt 2026-01-19 20:28:45.127614622 +0100 ++++ b/caffe2/CMakeLists.txt 2026-01-19 20:32:04.509213652 +0100 +@@ -1495,6 +1495,12 @@ + endif() + endif() + ++if(USE_DISTRIBUTED) ++ if(USE_MPI) ++ find_package(httplib REQUIRED) ++ target_link_libraries(torch_cpu PRIVATE httplib::httplib) ++ endif() ++endif() + if(NOT INTERN_BUILD_MOBILE) + if(${CAFFE2_LINK_LOCAL_PROTOBUF}) + target_link_libraries(torch_cpu INTERFACE protobuf::libprotobuf)
