From fea07b47a71ba248dcc6ca05edd89c07305b54d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Duarte?= Date: Fri, 15 Sep 2023 10:53:20 +0000 Subject: [PATCH] sys-firmware/lenovolegionlinux: set export for set KERNELVERSION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Duarte --- .../lenovolegionlinux/lenovolegionlinux-9999.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild index b003b160a7..95ad55aace 100644 --- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild +++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild @@ -6,11 +6,11 @@ EAPI=8 M_PN=LenovoLegionLinux DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..12} ) +PYTHON_COMPAT=(python3_{9..12}) inherit linux-mod-r1 distutils-r1 systemd -if [[ ${PV} == "9999" ]] ; then +if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="https://github.com/johnfanv2/${M_PN}.git" inherit git-r3 else @@ -49,10 +49,10 @@ src_compile() { local modlist=( legion-laptop=kernel/drivers/platform/x86:kernel_module:kernel_module:all ) - KERNELVERSION=${KV_FULL} + export KERNELVERSION=${KV_FULL} linux-mod-r1_src_compile if use legion-tools; then - if [[ ${PV} == "9999" ]] ; then + if [[ ${PV} == "9999" ]]; then #fix python package version sed -i "s/version = _VERSION/version = 9999/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg" else @@ -69,7 +69,7 @@ src_install() { linux-mod-r1_src_install #Load the module without reboot pushd python/legion_linux/ || die - make forcereloadmodule + make forcereloadmodule popd || die if use legion-tools; then #Define build dir (fix sandboxed)