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

Bug 610622

Summary: Correctly use python in aufs-sources kernel ebuilds to support deblob script
Product: Gentoo Linux Reporter: Mike Pagano <mpagano>
Component: Current packagesAssignee: Justin Lecher (RETIRED) <jlec>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 610008    

Description Mike Pagano gentoo-dev 2017-02-23 00:04:33 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 Justin Lecher (RETIRED) gentoo-dev 2017-02-25 19:40:21 UTC
commit 30b4c7a527d0267dd92e862fcfc954be235476c2
Author: Justin Lecher <jlec@gentoo.org>
Date:   Sat Feb 25 19:38:30 2017 +0000

    sys-kernel/aufs-sources: Drop deblob support completely

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=610622

    Package-Manager: Portage-2.3.3, Repoman-2.3.1
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30b4c7a527d0267dd92e862fcfc954be235476c2