• [gentoo-dev] [PATCH] kernel-2.eclass: Force deblob-check to use awk

    From Alice Ferrazzi@21:1/5 to All on Wed Jul 27 12:10:01 2022
    This patch remove python from the kernel-2.eclass
    by forcing the deblob-check script to use awk instead
    of python.

    Closes: https://bugs.gentoo.org/610008

    Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
    ---
    eclass/kernel-2.eclass | 14 +++-----------
    1 file changed, 3 insertions(+), 11 deletions(-)

    diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
    index b3fb5cef76c..50464470a9b 100644
    --- a/eclass/kernel-2.eclass
    +++ b/eclass/kernel-2.eclass
    @@ -675,15 +675,7 @@ if [[ ${ETYPE} == sources ]]; then

    # Bug #266157, deblob for libre support
    if [[ -z ${K_PREDEBLOBBED} ]]; then
    - # deblob less than 5.10 require python 2.7
    - if kernel_is lt 5 10; then
    - K_DEBLOB_AVAILABLE=0
    - fi
    if [[ ${K_DEBLOB_AVAILABLE} == 1 ]]; then
    - PYTHON_COMPAT=( python3_{8..10} )
    -
    - inherit python-any-r1
    -
    IUSE="${IUSE} deblob"

    # Reflect that kernels contain firmware blobs unless otherwise
    @@ -691,8 +683,6 @@ if [[ ${ETYPE} == sources ]]; then
    # tree has been dropped from the kernel.
    kernel_is lt 4 14 && LICENSE+=" !deblob? ( linux-firmware )"

    - BDEPEND+=" deblob? ( ${PYTHON_DEPS} )"
    -
    if [[ -n KV_MINOR ]]; then
    DEBLOB_PV="${KV_MAJOR}.${KV_MINOR}.${KV