Bug 4239

Summary: pulseaudio changes directory in do_compile
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: 1.4   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Ross Burton 2013-04-10 13:33:28 UTC
When S!=B is enabled, base_do_compile does a simple existence check for Makefile and determines that the file doesn't exist.  It appears to be doing this test in $S and failing when B!=S, so the do_install task is when the compilation actually happens.
Comment 1 Richard Purdie 2013-04-11 10:45:05 UTC
base_do_compile runs in ${B} by default so I think its correct. pulseaudio does a "cd ${S}" in its do_compile_prepend which breaks it specifically. Is this being seen in any other recipe than pulseaudio?
Comment 2 Ross Burton 2013-04-11 10:49:09 UTC
Okay, idiot Ross looked in the .inc and wasn't expecting there to be logic in the .bb.

As far as I'm aware this isn't seen in other recipes, I was clearly being over-eager.