commit:     1155091de323b8ccb618a774460e529688b7f748
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  1 07:26:16 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Aug  1 07:30:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1155091d

sci-libs/caffe2: prefixify (by ZongyuZ)

Bug: https://bugs.gentoo.org/911421
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../{caffe2-2.0.1-r2.ebuild => caffe2-2.0.1-r3.ebuild}   | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/sci-libs/caffe2/caffe2-2.0.1-r2.ebuild 
b/sci-libs/caffe2/caffe2-2.0.1-r3.ebuild
similarity index 90%
rename from sci-libs/caffe2/caffe2-2.0.1-r2.ebuild
rename to sci-libs/caffe2/caffe2-2.0.1-r3.ebuild
index b8f88ae63e41..29087a44643f 100644
--- a/sci-libs/caffe2/caffe2-2.0.1-r2.ebuild
+++ b/sci-libs/caffe2/caffe2-2.0.1-r3.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{9..11} )
-inherit python-single-r1 cmake cuda flag-o-matic
+inherit python-single-r1 cmake cuda flag-o-matic prefix
 
 MYPN=pytorch
 MYP=${MYPN}-${PV}
@@ -97,6 +97,20 @@ src_prepare() {
        pushd torch/csrc/jit/serialization || die
        flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die
        popd
+       # prefixify the hardcoded paths, after all patches are applied
+       hprefixify \
+               aten/CMakeLists.txt \
+               caffe2/CMakeLists.txt \
+               cmake/Metal.cmake \
+               cmake/Modules/*.cmake \
+               cmake/Modules_CUDA_fix/FindCUDNN.cmake \
+               cmake/Modules_CUDA_fix/upstream/FindCUDA/make2cmake.cmake \
+               
cmake/Modules_CUDA_fix/upstream/FindPackageHandleStandardArgs.cmake \
+               cmake/public/LoadHIP.cmake \
+               cmake/public/cuda.cmake \
+               cmake/Dependencies.cmake \
+               torch/CMakeLists.txt \
+               CMakeLists.txt
 }
 
 src_configure() {

Reply via email to