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

Bug 851570

Summary: sci-libs/keras: fix distutils-r1 usage
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 803152    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 16:02:57 UTC
https://github.com/gentoo/gentoo/pull/25822 has some background, but the gist is, instead of doing:
e.g. python_foreach_impl run_in_build_dir do_compile

Instead, we should do:
e.g.
src_compile() {
    [...]
    distutils-r1_src_compile
}

python_compile() {
    # copy in the do_compile logic here
}

It's simpler but it also means the PEP517 bits in future will be easier to handle. Thanks!
Comment 1 Larry the Git Cow gentoo-dev 2022-06-26 02:45:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f272af550415b741b93760849b847dc59c6be6e

commit 9f272af550415b741b93760849b847dc59c6be6e
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2022-06-25 16:39:38 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2022-06-26 02:37:33 +0000

    sci-libs/keras: add 2.9.0
    
    Closes: https://bugs.gentoo.org/851570
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>

 sci-libs/keras/Manifest                            |   1 +
 ...eras-2.9.0-0001-bazel-Use-system-protobuf.patch | 331 +++++++++++++++++++++
 sci-libs/keras/keras-2.9.0.ebuild                  |  85 ++++++
 3 files changed, 417 insertions(+)