commit: 54ba2742b754e3c25add341ace31836d699d2ae1 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Mon Dec 9 08:33:29 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Mon Dec 9 08:33:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54ba2742
sci-libs/pytorch: fix functorch install, copying from caffe2 Closes: https://bugs.gentoo.org/943531 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-libs/pytorch/{pytorch-2.5.1.ebuild => pytorch-2.5.1-r1.ebuild} | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sci-libs/pytorch/pytorch-2.5.1.ebuild b/sci-libs/pytorch/pytorch-2.5.1-r1.ebuild similarity index 91% rename from sci-libs/pytorch/pytorch-2.5.1.ebuild rename to sci-libs/pytorch/pytorch-2.5.1-r1.ebuild index 1a5e4c9a039f..e90ea383aecb 100644 --- a/sci-libs/pytorch/pytorch-2.5.1.ebuild +++ b/sci-libs/pytorch/pytorch-2.5.1-r1.ebuild @@ -23,6 +23,7 @@ REQUIRED_USE=${PYTHON_REQUIRED_USE} RDEPEND=" ${PYTHON_DEPS} ~sci-libs/caffe2-${PV}[${PYTHON_SINGLE_USEDEP}] + >=sci-libs/caffe2-2.5.1-r5 $(python_gen_cond_dep ' dev-python/typing-extensions[${PYTHON_USEDEP}] dev-python/sympy[${PYTHON_USEDEP}] @@ -46,6 +47,9 @@ src_prepare() { || die distutils-r1_src_prepare + # Get object file from caffe2 + cp /var/lib/caffe2/functorch.so functorch/functorch.so || die + hprefixify tools/setup_helpers/env.py }
