1 |
commit: 7a99ab2b1d96d3f10258eb896ce61b7e7fc6160f |
2 |
Author: Alice Ferrazzi <alicef <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 22 14:57:32 2021 +0000 |
4 |
Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 23 09:54:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a99ab2b |
7 |
|
8 |
kernel-2.eclass: Add deblob support only for python3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/744808 |
11 |
|
12 |
Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org> |
13 |
|
14 |
eclass/kernel-2.eclass | 6 +++++- |
15 |
1 file changed, 5 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
18 |
index f94dd9c4398..e3d556f2bec 100644 |
19 |
--- a/eclass/kernel-2.eclass |
20 |
+++ b/eclass/kernel-2.eclass |
21 |
@@ -604,8 +604,12 @@ if [[ ${ETYPE} == sources ]]; then |
22 |
[[ -z ${K_DEBLOB_AVAILABLE} ]] && \ |
23 |
kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \ |
24 |
K_DEBLOB_AVAILABLE=1 |
25 |
+ # deblob less than 5.10 require python 2.7 |
26 |
+ if kernel_is lt 5 10; then |
27 |
+ K_DEBLOB_AVAILABLE=0 |
28 |
+ fi |
29 |
if [[ ${K_DEBLOB_AVAILABLE} == 1 ]]; then |
30 |
- PYTHON_COMPAT=( python2_7 ) |
31 |
+ PYTHON_COMPAT=( python3_{7..10} ) |
32 |
|
33 |
inherit python-any-r1 |