Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197585

Summary: sys-apps/rlocate-0.5.6 doesn't compile, when KBUILD_OUTPUT is used
Product: Gentoo Linux Reporter: Sven <sven.koehler>
Component: New packagesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build fails

Description Sven 2007-10-31 02:03:01 UTC
On my system, there are there two options in make.conf:
KERNEL_DIR=/usr/src/linux
KBUILD_OUTPUT=${KERNEL_DIR}/_dom0

That means, that the sources are in /usr/src/linux while the binaries (and other stuff like include/version.h) is stored in /usr/src/linux/_dom0
(I build my kernel with "make O=_dom0 menuconfig all install modules_install")


So rlocate's configure complained about missing files.
But it was easy to fix the ebuild:

--- /usr/portage/sys-apps/rlocate/rlocate-0.5.6.ebuild  2007-10-06 15:37:56.000000000 +0200
+++ rlocate-0.5.6.ebuild        2007-10-30 22:56:06.000000000 +0100
@@ -33,7 +33,7 @@
 
 src_compile() {
        econf \
-               --with-kernel=${KV_DIR} \
+               --with-kernel=${KV_OUT_DIR} \
                --with-rlocate-group=locate \
                || die
        emake || die


Simply use KV_OUT_DIR instead of KV_DIR.

Reproducible: Always

Steps to Reproduce:
Comment 1 Sonia Hamilton 2007-11-29 00:46:32 UTC
Created attachment 137286 [details]
build fails