commit: 0e0c68d4f02819eaf869827dd432ca906529030a Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Mon Mar 17 20:56:06 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Mon Mar 17 20:56:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e0c68d4
sci-ml/pytorch: fix build on prefix Bug: https://bugs.gentoo.org/948897 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-ml/pytorch/pytorch-2.5.1-r1.ebuild | 2 +- sci-ml/pytorch/pytorch-2.6.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-ml/pytorch/pytorch-2.5.1-r1.ebuild b/sci-ml/pytorch/pytorch-2.5.1-r1.ebuild index 9a08af21caeb..cceaa7c62da4 100644 --- a/sci-ml/pytorch/pytorch-2.5.1-r1.ebuild +++ b/sci-ml/pytorch/pytorch-2.5.1-r1.ebuild @@ -48,7 +48,7 @@ src_prepare() { distutils-r1_src_prepare # Get object file from caffe2 - cp /var/lib/caffe2/functorch.so functorch/functorch.so || die + cp "${EPREFIX}"/var/lib/caffe2/functorch.so functorch/functorch.so || die hprefixify tools/setup_helpers/env.py } diff --git a/sci-ml/pytorch/pytorch-2.6.0.ebuild b/sci-ml/pytorch/pytorch-2.6.0.ebuild index 32f7131e5bdb..3b908c242f24 100644 --- a/sci-ml/pytorch/pytorch-2.6.0.ebuild +++ b/sci-ml/pytorch/pytorch-2.6.0.ebuild @@ -45,7 +45,7 @@ src_prepare() { distutils-r1_src_prepare # Get object file from caffe2 - cp /var/lib/caffe2/functorch.so functorch/functorch.so || die + cp "${EPREFIX}"/var/lib/caffe2/functorch.so functorch/functorch.so || die hprefixify tools/setup_helpers/env.py }
