Bug 7139

Summary: Unexpected paths being searched for classes
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher
Version: 1.8   
Target Milestone: ---   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.