Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851570 - sci-libs/keras: fix distutils-r1 usage
Summary: sci-libs/keras: fix distutils-r1 usage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 803152
  Show dependency tree
 
Reported: 2022-06-12 16:02 UTC by Sam James
Modified: 2022-06-26 02:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)