commit: 3c4ac3c3accc78d1b85b785b32c7adbcdf0aa9c0 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Mon Dec 9 08:22:33 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Mon Dec 9 08:25:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c4ac3c3
sci-libs/caffe2: save functorch.so for pytorch ebuild Bug: https://bugs.gentoo.org/943531 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-libs/caffe2/{caffe2-2.5.1-r4.ebuild => caffe2-2.5.1-r5.ebuild} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sci-libs/caffe2/caffe2-2.5.1-r4.ebuild b/sci-libs/caffe2/caffe2-2.5.1-r5.ebuild similarity index 97% rename from sci-libs/caffe2/caffe2-2.5.1-r4.ebuild rename to sci-libs/caffe2/caffe2-2.5.1-r5.ebuild index c7ce5a4971d9..a6ed84f182da 100644 --- a/sci-libs/caffe2/caffe2-2.5.1-r4.ebuild +++ b/sci-libs/caffe2/caffe2-2.5.1-r5.ebuild @@ -115,7 +115,6 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${P}-unbundle_fmt.patch "${FILESDIR}"/${P}-unbundle_kineto.patch - "${FILESDIR}"/${P}-fix-functorch-install.patch "${FILESDIR}"/${P}-cudnn_include_fix.patch "${FILESDIR}"/${P}-gentoo.patch "${FILESDIR}"/${PN}-2.4.0-cpp-httplib.patch @@ -293,8 +292,13 @@ src_compile() { src_install() { cmake_src_install + # Used by pytorch ebuild insinto "/var/lib/${PN}" doins "${BUILD_DIR}"/CMakeCache.txt + mv "${D}${S}"/functorch/functorch.so \ + "${D}"/var/lib/${PN}/functorch.so || die + rm -r "${D}"/var/tmp || die + dostrip -x /var/lib/${PN}/functorch.so rm -rf python mkdir -p python/torch || die
