On Fri, 2021-07-23 at 00:00 +0900, Alice wrote: > Signed-off-by: Alice Ferrazzi <ali...@gentoo.org> > --- > eclass/kernel-2.eclass | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass > index f94dd9c..05f8161 100644 > --- a/eclass/kernel-2.eclass > +++ b/eclass/kernel-2.eclass > @@ -605,7 +605,7 @@ if [[ ${ETYPE} == sources ]]; then > kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \ > K_DEBLOB_AVAILABLE=1 > if [[ ${K_DEBLOB_AVAILABLE} == 1 ]]; then > - PYTHON_COMPAT=( python2_7 ) > + PYTHON_COMPAT=( python3_{7..10} ) > > inherit python-any-r1 > > @@ -1489,9 +1489,14 @@ kernel-2_src_compile() { > [[ ${ETYPE} == headers ]] && compile_headers > > if [[ ${K_DEBLOB_AVAILABLE} == 1 ]] && use deblob; then > - einfo ">>> Running deblob script ..." > - python_setup > - sh "${T}/${DEBLOB_A}" --force || die "Deblob script > failed to run!!!" > + # deblob less than 5.10 require python 2.7 > + if kernel_is lt 5 10; then > + ewarn "we don't support deblob for kernel less > then 5.10"
Why are you adding the USE flag for these kernels then? It's misleading at best. > + else > + einfo ">>> Running deblob script ..." > + python_setup > + sh "${T}/${DEBLOB_A}" --force || die "Deblob > script failed to run!!!" > + fi > fi > } > -- Best regards, Michał Górny