Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH] kernel-2.eclass: Inherit python-any-r1 only in deblob branch
Date: Tue, 13 Aug 2019 07:49:07
Message-Id: 20190813074854.85372-1-mgorny@gentoo.org
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/kernel-2.eclass | 4 +++-
4 1 file changed, 3 insertions(+), 1 deletion(-)
5
6 diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
7 index 1b2b5d3e8b60..d672b295c37c 100644
8 --- a/eclass/kernel-2.eclass
9 +++ b/eclass/kernel-2.eclass
10 @@ -193,7 +193,7 @@
11
12 PYTHON_COMPAT=( python{2_6,2_7} )
13
14 -inherit toolchain-funcs python-any-r1
15 +inherit toolchain-funcs
16 [[ ${EAPI:-0} == [012345] ]] && inherit epatch
17 [[ ${EAPI:-0} == [0123456] ]] && inherit estack eapi7-ver
18 case ${EAPI:-0} in
19 @@ -621,6 +621,8 @@ if [[ ${ETYPE} == sources ]]; then
20 kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \
21 K_DEBLOB_AVAILABLE=1
22 if [[ ${K_DEBLOB_AVAILABLE} == "1" ]] ; then
23 + inherit python-any-r1
24 +
25 IUSE="${IUSE} deblob"
26
27 # Reflect that kernels contain firmware blobs unless otherwise
28 --
29 2.23.0.rc2

Replies