diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2021-07-22 23:57:32 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2021-08-23 18:54:49 +0900 |
commit | 7a99ab2b1d96d3f10258eb896ce61b7e7fc6160f (patch) | |
tree | 2b63d149b01629a6630f247573f33309901b1efc | |
parent | dev-util/nvidia-cuda-toolkit: support GCC 11 (diff) | |
download | gentoo-7a99ab2b1d96d3f10258eb896ce61b7e7fc6160f.tar.gz gentoo-7a99ab2b1d96d3f10258eb896ce61b7e7fc6160f.tar.bz2 gentoo-7a99ab2b1d96d3f10258eb896ce61b7e7fc6160f.zip |
kernel-2.eclass: Add deblob support only for python3
Closes: https://bugs.gentoo.org/744808
Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
-rw-r--r-- | eclass/kernel-2.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index f94dd9c43982..e3d556f2bec0 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -604,8 +604,12 @@ if [[ ${ETYPE} == sources ]]; then [[ -z ${K_DEBLOB_AVAILABLE} ]] && \ kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \ K_DEBLOB_AVAILABLE=1 + # 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=( python2_7 ) + PYTHON_COMPAT=( python3_{7..10} ) inherit python-any-r1 |