commit: f39688b685db9bff2eb391c9bcaa9f964cf6c022
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 14 21:47:05 2024 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 21:53:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f39688b6
sci-libs/caffe2: fix installed cmake files
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
.../caffe2/{caffe2-2.5.1-r6.ebuild => caffe2-2.5.1-r7.ebuild} | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/sci-libs/caffe2/caffe2-2.5.1-r6.ebuild
b/sci-libs/caffe2/caffe2-2.5.1-r7.ebuild
similarity index 98%
rename from sci-libs/caffe2/caffe2-2.5.1-r6.ebuild
rename to sci-libs/caffe2/caffe2-2.5.1-r7.ebuild
index 42f843a02f98..8cb8a0b152fa 100644
--- a/sci-libs/caffe2/caffe2-2.5.1-r6.ebuild
+++ b/sci-libs/caffe2/caffe2-2.5.1-r7.ebuild
@@ -141,6 +141,12 @@ src_prepare() {
cmake/ProtoBuf.cmake \
aten/src/ATen/CMakeLists.txt \
|| die
+ # Change libc10* path
+ sed -i \
+ -e "/EXPORT/s|DESTINATION lib)|DESTINATION $(get_libdir))|" \
+ c10/cuda/CMakeLists.txt \
+ c10/CMakeLists.txt \
+ || die
cmake_src_prepare
pushd torch/csrc/jit/serialization || die
@@ -315,7 +321,4 @@ src_install() {
mv "${D}"/usr/$(get_libdir)/libtorch_global_deps.so \
"${D}"/$(python_get_sitedir)/torch/lib/ || die
-
- mv "${D}"/usr/lib/libc10*.so \
- "${D}"/usr/$(get_libdir)/ || die
}