Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88088 - busybox uses KBUILD_OUTPUT in an incorrect way
Summary: busybox uses KBUILD_OUTPUT in an incorrect way
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 96238 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-05 14:44 UTC by Richard Westwell
Modified: 2024-05-25 21:09 UTC (History)
1 user (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 Richard Westwell 2005-04-05 14:44:34 UTC
if KBUILD_OUTPUT has been set prior to emerging busybox
e.g. if your trying to relocate the kernel build directory to within /var/tmp/kernel-output via config-kernel

busybox will output it's .config file to the directory specified by KBUILD_OUTPUT instead of the temporary build directory ${S}
this happens during "make allyesconfig > /dev/null"
this overwrites the kernel .config file already present and causes the build to not generate /bin/busybox during the install phase

the way around it is just to put
unset KBUILD_OUTPUT
in src_unpack at the beginning


Reproducible: Always
Steps to Reproduce:
1. set KBUILD_OUTPUT
e.g. KBUILD_OUTPUT="/var/tmp/kernel-output/2.6.11-mygen-r2/"
in /etc/env.d/05kernel

2. env-update to set the variable
3. emerge busybox


Actual Results:  
/var/tmp/kernel-output/<kern version>/.config overwritten
lack of /bin/busybox in the installation
Comment 1 SpanKY gentoo-dev 2005-04-05 17:23:37 UTC
the ebuild now unsets the variable, thanks
Comment 2 Max Loparyev 2005-06-08 04:10:59 UTC
but src_compile() needs to unset KBUILD_OUTPUT too. if not it is trying to brake
sandbox with open_wr ${KBUILD_OUTPUT}/Rules.mak

busybox-1.00-r4
Comment 3 Myk Taylor 2005-07-10 23:34:17 UTC
It seems busybox_set_env should be called in src_unpack as well.  Otherwise
busybox attempts to create Rules.mak in the wrong directory when KBUILD_OUTPUT
is set
Comment 4 SpanKY gentoo-dev 2005-07-12 05:47:24 UTC
*** Bug 96238 has been marked as a duplicate of this bug. ***