When building bbswitch on a system, where the kernel is built out of source, designated in make.conf with KV_OUT_DIR pointing to the built kernel objects directory, the bbswitch package fails to build. Suggested solution: change the use of KERNEL_DIR variable to KV_OUT_DIR with fallback to KERNEL_DIR. See follwing patch: --- bbswitch-9999.ebuild 2020-04-06 21:09:39.000000000 +0200 +++ bbswitch-9999-fix.ebuild 2020-12-23 13:36:38.567465965 +0100 @@ -42,7 +42,7 @@ src_prepare() { # Fix build failure, bug #513542 - sed "s%^KDIR :=.*%KDIR := ${KERNEL_DIR}%g" -i Makefile || die + sed "s%^KDIR :=.*%KDIR := ${KV_OUT_DIR:-$KERNEL_DIR}%g" -i Makefile || die default } Best regards, JoLuxer
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aef36ee9a0057913f133c2279e9db59798922cf commit 4aef36ee9a0057913f133c2279e9db59798922cf Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2021-07-08 12:58:14 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2021-07-08 12:58:14 +0000 sys-power/bbswitch: Bump to latest snapshot Also fix building Closes: https://bugs.gentoo.org/761370 Thanks-to: Johannes Lode Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Pacho Ramos <pacho@gentoo.org> sys-power/bbswitch/Manifest | 1 + sys-power/bbswitch/bbswitch-0.8_p20200526.ebuild | 55 ++++++++++++++++++++++++ 2 files changed, 56 insertions(+)