Created attachment 656178 [details] build.log of emerge pytorch I am trying to emerge pytorch with cuda enabled, but I get an error with the global-dlopen.patch (see attachment for full log): ``` * ERROR: sci-libs/pytorch-1.6.0::science failed (prepare phase): * patch -p1 failed with /var/tmp/portage/sci-libs/pytorch-1.6.0/files/pytorch-pytorch-1.6.0-global-dlopen.patch ``` Am I doing something wrong? The patch was working fine without cuda enabled.
Created attachment 656322 [details] patch fixing patch name
Ok so the issue was that while the patch file is named correctly, it is listed with twice the package name in the PATCHES list, please see my fix attached ^
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/sci.git/commit/?id=0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc commit 0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2020-09-14 09:11:41 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2020-09-14 09:11:55 +0000 sci-libs/pytorch: Fix patch filename. Add a necessary build dependency. Reported-By: Hendrik Klug Suggested-By: Horea Christian Closes: https://bugs.gentoo.org/738592 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Benda Xu <heroxbd@gentoo.org> sci-libs/pytorch/pytorch-1.6.0.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)