Bug 120

Summary: Handle unbuildable targets better
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Joshua Lock - Disabled <josh>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Low CC: jessica.zhang, poky.bs.watcher, poky.watcher, sgw
Version: 0.9   
Target Milestone: 1.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Joshua Lock - Disabled 2010-07-16 05:03:59 UTC
Inserting an unresolvable dependency (e.g. kexec-tools on ppc) and using bitbake -k can result in a total failure but exit status of 0 (success)
Comment 1 Richard Purdie 2011-02-24 05:50:22 UTC
I think this is fixed now. If something is unbuildable an error messages is printed and the presence of any error messages will cause the exit code to be non-zero.


$ MACHINE=qemuppc bitbake task-poky-tools -k
Loading cache: 100% |#######################################################################################################################| ETA:  00:00:00
Loaded 943 entries from dependency cache.
Parsing recipes: 100% |#####################################################################################################################| Time: 00:00:00
Parsing of 773 .bb files complete (736 cached, 37 parsed). 980 targets, 37 skipped, 0 masked, 0 errors.

OE Build Configuration:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "master"
METADATA_REVISION = "982955ec922a0ecc649f7cbfb1e79fc95d0bd833"
TARGET_ARCH       = "powerpc"
TARGET_OS         = "linux"
MACHINE           = "qemuppc"
DISTRO            = "poky"
DISTRO_VERSION    = "0.9+snapshot-20110224"
TARGET_FPU        = ""

NOTE: Resolving any missing task queue dependencies
NOTE: Runtime target 'kexec-tools' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kexec-tools']
ERROR: Nothing RPROVIDES 'kexec-tools' (but /rphome/poky/meta/recipes-core/tasks/task-poky-tools.bb RDEPENDS on or otherwise requires it)
NOTE: Preparing runqueue
ERROR: All buildable tasks have been run but the build is incomplete (--continue mode). Errors for the tasks that failed will have been printed above.
$ echo $?
1
Comment 2 Joshua Lock - Disabled 2011-02-25 02:12:23 UTC
Verify fixed, thanks.