summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-09-04 06:40:36 +0200
committerAlfredo Tupone <tupone@gentoo.org>2024-09-04 06:58:52 +0200
commitc347f7335b65811fbf73dad70d68b84b6788b764 (patch)
tree8ef204b5c6b3895f90c54fd8d2766aba789798ef /sci-libs/caffe2
parentdev-util/desktop-file-utils: Stabilize 0.27-r1 arm, #939013 (diff)
downloadgentoo-c347f7335b65811fbf73dad70d68b84b6788b764.tar.gz
gentoo-c347f7335b65811fbf73dad70d68b84b6788b764.tar.bz2
gentoo-c347f7335b65811fbf73dad70d68b84b6788b764.zip
sci-libs/caffe2: req cpp-httplib
Closes: https://bugs.gentoo.org/937635 Closes: https://bugs.gentoo.org/937788 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs/caffe2')
-rw-r--r--sci-libs/caffe2/caffe2-2.4.0-r1.ebuild (renamed from sci-libs/caffe2/caffe2-2.4.0.ebuild)6
-rw-r--r--sci-libs/caffe2/files/caffe2-2.4.0-cpp-httplib.patch13
2 files changed, 18 insertions, 1 deletions
diff --git a/sci-libs/caffe2/caffe2-2.4.0.ebuild b/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)