Bug 7139 - Unexpected paths being searched for classes
Summary: Unexpected paths being searched for classes
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.8
Hardware: All Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-01-14 12:08 UTC by Ross Burton
Modified: 2015-01-21 14:08 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2015-01-14 12:08:02 UTC
With the new pynotify code breaking on old kernels, we see that bitbake is searching for classes in very unusual places:

/home/ross/Yocto/poky/meta/recipes-kernel/sysprof/classes/pkgconfig.bbclass
/home/ross/Yocto/poky/build/classes/kernel-arch.bbclass
/home/ross/Yocto/poky/meta/classes/classes/siteconfig.bbclass
Comment 1 Richard Purdie 2015-01-15 14:55:29 UTC
It turns out there is a reason for this. If for example A.bbclass (in meta/clases) does "inherit B", the system will look for B in "." and "./classes" where "." is the directory containing A.bbclass so you can end up with some bizzare looking path constructs. I'm not sure we can actually do much about this.
Comment 2 Richard Purdie 2015-01-21 14:08:13 UTC
As previously described, whilst it looks odd, there is a good reason for this.