From 32f6ec258a43df22a1ce3bbe3860923ba04cfe14 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 11 Apr 2025 17:19:17 -0400 Subject: [PATCH] sys-kernel/linux-firmware: stub-out check_whence.py This avoids a dependency on python and fixes the live ebuild. Signed-off-by: Mike Gilbert --- .../linux-firmware/linux-firmware-20250410.ebuild | 10 +++++++--- .../linux-firmware/linux-firmware-99999999.ebuild | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/sys-kernel/linux-firmware/linux-firmware-20250410.ebuild b/sys-kernel/linux-firmware/linux-firmware-20250410.ebuild index 77c6662719b07..2202b123f02c5 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20250410.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20250410.ebuild @@ -2,8 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) -inherit dist-kernel-utils eapi9-ver linux-info mount-boot python-any-r1 savedconfig +inherit dist-kernel-utils eapi9-ver linux-info mount-boot savedconfig # In case this is a real snapshot, fill in commit below. # For normal, tagged releases, leave blank @@ -104,7 +103,6 @@ pkg_setup() { fi fi linux-info_pkg_setup - python_setup } src_unpack() { @@ -122,6 +120,12 @@ src_unpack() { src_prepare() { default + # Stub out this script to avoid errors in the live ebuild + cat >check_whence.py<<-EOF + #!/bin/sh + exit 0 + EOF + cp "${FILESDIR}/${PN}-make-amd-ucode-img.bash" "${T}/make-amd-ucode-img" || die chmod +x "${T}/make-amd-ucode-img" || die diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index 77c6662719b07..2202b123f02c5 100644 --- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild @@ -2,8 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) -inherit dist-kernel-utils eapi9-ver linux-info mount-boot python-any-r1 savedconfig +inherit dist-kernel-utils eapi9-ver linux-info mount-boot savedconfig # In case this is a real snapshot, fill in commit below. # For normal, tagged releases, leave blank @@ -104,7 +103,6 @@ pkg_setup() { fi fi linux-info_pkg_setup - python_setup } src_unpack() { @@ -122,6 +120,12 @@ src_unpack() { src_prepare() { default + # Stub out this script to avoid errors in the live ebuild + cat >check_whence.py<<-EOF + #!/bin/sh + exit 0 + EOF + cp "${FILESDIR}/${PN}-make-amd-ucode-img.bash" "${T}/make-amd-ucode-img" || die chmod +x "${T}/make-amd-ucode-img" || die