commit:     c347f7335b65811fbf73dad70d68b84b6788b764
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  4 04:40:36 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Sep  4 04:58:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c347f733

sci-libs/caffe2: req cpp-httplib

Closes: https://bugs.gentoo.org/937635
Closes: https://bugs.gentoo.org/937788
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../caffe2/{caffe2-2.4.0.ebuild => caffe2-2.4.0-r1.ebuild}  |  6 +++++-
 sci-libs/caffe2/files/caffe2-2.4.0-cpp-httplib.patch        | 13 +++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/sci-libs/caffe2/caffe2-2.4.0.ebuild 
b/sci-libs/caffe2/caffe2-2.4.0-r1.ebuild
similarity index 98%
rename from sci-libs/caffe2/caffe2-2.4.0.ebuild
rename to sci-libs/caffe2/caffe2-2.4.0-r1.ebuild
index 81a8906ea669..d8e42de52185 100644
--- a/sci-libs/caffe2/caffe2-2.4.0.ebuild
+++ b/sci-libs/caffe2/caffe2-2.4.0-r1.ebuild
@@ -86,7 +86,10 @@ RDEPEND="
                amdgpu_targets_gfx941? ( 
=sci-libs/hipBLASLt-6.1*[amdgpu_targets_gfx941] )
                amdgpu_targets_gfx942? ( 
=sci-libs/hipBLASLt-6.1*[amdgpu_targets_gfx942] )
        )
-       distributed? ( sci-libs/tensorpipe[cuda?] )
+       distributed? (
+               sci-libs/tensorpipe[cuda?]
+               dev-cpp/cpp-httplib
+       )
        xnnpack? ( >=sci-libs/XNNPACK-2024.02.29 )
        mkl? ( sci-libs/mkl )
        openblas? ( sci-libs/openblas )
@@ -122,6 +125,7 @@ PATCHES=(
        ../patches/${PN}-2.3.0-fix-rocm-gcc14-clamp.patch
        ../patches/${PN}-2.3.0-fix-libcpp.patch
        "${FILESDIR}"/${PN}-2.4.0-libfmt-11.patch
+       "${FILESDIR}"/${P}-cpp-httplib.patch
 )
 
 src_prepare() {

diff --git a/sci-libs/caffe2/files/caffe2-2.4.0-cpp-httplib.patch 
b/sci-libs/caffe2/files/caffe2-2.4.0-cpp-httplib.patch
new file mode 100644
index 000000000000..5d684a4a4738
--- /dev/null
+++ b/sci-libs/caffe2/files/caffe2-2.4.0-cpp-httplib.patch
@@ -0,0 +1,13 @@
+--- a/torch/lib/libshm/CMakeLists.txt  2024-09-04 06:09:51.943752841 +0200
++++ b/torch/lib/libshm/CMakeLists.txt  2024-09-04 06:10:52.243821438 +0200
+@@ -24,6 +24,10 @@
+   CXX_STANDARD 17)
+ target_link_libraries(shm PRIVATE ${TORCH_CPU_LIB})
+ 
++if (USE_DISTRIBUTED)
++  target_link_libraries(shm PRIVATE cpp-httplib)
++endif()
++
+ if(UNIX AND NOT APPLE)
+   include(CheckLibraryExists)
+   find_package(Threads REQUIRED)

Reply via email to