Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761370 - sys-power/bbswitch needs to use KV_OUT_DIR for out-of-source-built kernels
Summary: sys-power/bbswitch needs to use KV_OUT_DIR for out-of-source-built kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-12-23 13:19 UTC by Johannes Lode
Modified: 2021-07-08 13:01 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Lode 2020-12-23 13:19:07 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2021-07-08 13:01:53 UTC
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(+)