Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754342 - sci-libs/pytorch-1.6.0 ebuild patch
Summary: sci-libs/pytorch-1.6.0 ebuild patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-11-14 09:20 UTC by Hendrik Klug
Modified: 2020-12-20 13:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log of emerge pytorch (build.log.zip,330.57 KB, application/zip)
2020-11-14 12:34 UTC, Hendrik Klug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Klug 2020-11-14 09:20:20 UTC
Hi, I propose the following patch to fix some issues with the pytorch ebuild:

```
--- /var/db/repos/science/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild      2020-11-08 16:28:36.786393476 +0100
+++ /var/db/repos/hendrik_localrepo/sci-libs/pytorch/pytorch-1.6.0-r2.ebuild    2020-11-13 08:37:52.569834458 +0100
@@ -5,7 +5,7 @@
 
 PYTHON_COMPAT=( python3_{6,7,8} )
 
-inherit distutils-r1 cmake cuda
+inherit distutils-r1 cmake cuda cmake-utils
 
 MPV=${PV/_p/a}
 
@@ -160,6 +160,7 @@
 
        cd ../tensorpipe || die
        eapply "${FILESDIR}"/${PN}-1.6.0-tensorpipe-unbundle-libuv.patch
+       eapply_user
 }
 
 src_configure() {
```

After applying these changes to the ebuild, emerging pytorch with cuda USE flag still fails, I added the log as an attachment.
Comment 1 Hendrik Klug 2020-11-14 12:34:29 UTC
Created attachment 671377 [details]
build.log of emerge pytorch
Comment 2 Larry the Git Cow gentoo-dev 2020-12-20 13:02:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/sci.git/commit/?id=f66ac0c6904b9f69ec44eb9b368c9e754b1b26e1

commit f66ac0c6904b9f69ec44eb9b368c9e754b1b26e1
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2020-12-20 13:01:27 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-12-20 13:01:35 +0000

    sci-libs/pytorch: migrate from cmake-utils to cmake.
    
    Suggested-by: kenshin33, Hendrik Klug <hendrik.klug@gmail.com>
    
    Closes: https://github.com/gentoo/sci/issues/992
    Closes: https://bugs.gentoo.org/755101
    Closes: https://bugs.gentoo.org/754342
    Package-Manager: Portage-3.0.12, Repoman-3.0.1
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 sci-libs/pytorch/pytorch-1.6.0-r1.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)