Fixed by changing caffe2-1.13.1-r4.ebuild:181: rm -r "${ED}"/var/tmp || die to caffe2-1.13.1-r4.ebuild:181: rm -rf "${ED}"/var/tmp || die and rebuilding the manifest.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5569e6c21c3020ed6c15c175063ec5633564b53f commit 5569e6c21c3020ed6c15c175063ec5633564b53f Author: Larry D. Pyeatt <larry.pyeatt@sdsmt.edu> AuthorDate: 2023-03-17 17:47:50 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2023-03-17 18:46:38 +0000 sci-libs/caffe2: sci-libs/caffe2-1.13.1-r4 fails during install - rm: cannot remove '/dev/shm/portage/sci-libs/caffe2-1.13.1-r4/image/var/tmp': No such file or directory Closes: https://bugs.gentoo.org/901967 Signed-off-by: Larry D. Pyeatt <larry.pyeatt@sdsmt.edu> Closes: https://github.com/gentoo/gentoo/pull/30187 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/caffe2/caffe2-1.13.1-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
When $PORTAGE_TMPDIR is modified in make.conf, the package still installs stuff into a temporary directory... --- /tmp/ --- /tmp/portage/ --- /tmp/portage/sci-libs/ --- /tmp/portage/sci-libs/caffe2-2.0.1-r4/ --- /tmp/portage/sci-libs/caffe2-2.0.1-r4/work/ --- /tmp/portage/sci-libs/caffe2-2.0.1-r4/work/pytorch-2.0.1/ --- /tmp/portage/sci-libs/caffe2-2.0.1-r4/work/pytorch-2.0.1/functorch/ >>> /tmp/portage/sci-libs/caffe2-2.0.1-r4/work/pytorch-2.0.1/functorch/functorch.so