Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382787 - linux-info.eclass : force linux_config_src_exists to return false if KV_OUT_DIR is undefined
Summary: linux-info.eclass : force linux_config_src_exists to return false if KV_OUT_D...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
: 423587 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-13 08:09 UTC by bay
Modified: 2013-02-10 06:09 UTC (History)
2 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 bay 2011-09-13 08:09:01 UTC
Hi!

Here is a function linux_config_src_exists from linux-info.eclass:
linux_config_src_exists() {
 export _LINUX_CONFIG_EXISTS_DONE=1
 [ -s "${KV_OUT_DIR}/.config" ]
}

When KV_OUT_DIR var is undefined, existence of /.config is checked. 
I think it is wrong behavior. Some programs wrongly create .config folder in / instead of user's home directory. For example, I have Trolltech.conf inside it.

I propose to make small change: if KV_OUT_DIR is undefined return false. I think it is the right behavior because when KV_OUT_DIR is undefined then directory with kernel sources wasn't founded.

Best,
Alexander Bersenev
Comment 1 SpanKY gentoo-dev 2013-02-10 02:22:08 UTC
should be fixed by:
http://sources.gentoo.org/eclass/linux-info.eclass?r1=1.96&r2=1.97
Comment 2 SpanKY gentoo-dev 2013-02-10 06:09:57 UTC
*** Bug 423587 has been marked as a duplicate of this bug. ***