Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 738592

Summary: sci-libs/pytorch-1.6.0::science: error when emerging pytorch with cuda USE flag
Product: Gentoo Linux Reporter: Hendrik Klug <hendrik.klug>
Component: OverlaysAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: 4ernov, heroxbd, jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log of emerge pytorch
patch fixing patch name

Description Hendrik Klug 2020-08-22 14:21:46 UTC
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.
Comment 1 Horea Christian 2020-08-23 08:20:05 UTC
Created attachment 656322 [details]
patch fixing patch name
Comment 2 Horea Christian 2020-08-23 08:21:11 UTC
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 ^
Comment 3 Larry the Git Cow gentoo-dev 2020-09-14 09:12:00 UTC
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(-)