summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2022-07-27 18:16:31 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2022-08-07 18:56:29 +0900
commit20028157ec958fae597441a534b3f045fe2606f3 (patch)
tree53a106f39014fdee489354855e6165a0d049562f /eclass/kernel-2.eclass
parentgames-util/lutris: update 9999 (diff)
downloadgentoo-20028157ec958fae597441a534b3f045fe2606f3.tar.gz
gentoo-20028157ec958fae597441a534b3f045fe2606f3.tar.bz2
gentoo-20028157ec958fae597441a534b3f045fe2606f3.zip
kernel-2.eclass: Force deblob-check to use awk
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>
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass14
1 files changed, 3 insertions, 11 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index b3fb5cef76c3..50464470a9bb 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_PATCH}"
else
@@ -1470,8 +1460,10 @@ kernel-2_src_compile() {
cd "${S}" || die
if [[ ${K_DEBLOB_AVAILABLE} == 1 ]] && use deblob; then
+ einfo ">>> Patching deblob script for forcing awk ..."
+ sed -i '/check="\/bin\/sh $check"/a \ check="$check --use-awk"' \
+ "${T}/${DEBLOB_A}" || die "Failed to patch ${DEBLOB_A}"
einfo ">>> Running deblob script ..."
- python_setup
sh "${T}/${DEBLOB_A}" --force || die "Deblob script failed to run!!!"
fi
}