commit: fea07b47a71ba248dcc6ca05edd89c07305b54d9
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Sep 15 10:53:20 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Sep 15 10:54:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fea07b47
sys-firmware/lenovolegionlinux: set export for set KERNELVERSION
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/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)