Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610624 - Correctly use python in hardened-sources kernel ebuilds to support deblob script
Summary: Correctly use python in hardened-sources kernel ebuilds to support deblob script
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 610008
  Show dependency tree
 
Reported: 2017-02-23 00:09 UTC by Mike Pagano
Modified: 2018-02-17 23:02 UTC (History)
1 user (show)

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 Mike Pagano gentoo-dev 2017-02-23 00:09:12 UTC
As per bug #610008 , the kernel-2 eclass incorrectly uses python-any-r1.
Before I fix that, I need the ebuilds who support the deblob script to make some changes.

For reference: https://wiki.gentoo.org/wiki/Project:Python/python-any-r1

Add PYTHON_COMPAT=( pythonX_X pythonX_Y ) for the particular python versions supported

e.g. 

PYTHON_COMPAT=( python3_5 )

Add python-any-r1 to lists of inherited ebuilds.
e.g.

inherit kernel-2 python-any-r1

Add PYTHON_DEPS to the DEPEND variable

e.g.

DEPEND+=" deblob? ( ${PYTHON_DEPS} )"

Call python-any-r1_pkg_setup in pkg_setup

e.g.

pkg_setup() { 
    use deblob && python-any-r1_pkg_setup
}
Comment 1 Mike Pagano gentoo-dev 2018-02-17 23:02:49 UTC
Invalid as hardened-sources is masked for removal.