Bug 120 - Handle unbuildable targets better
Summary: Handle unbuildable targets better
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Low normal
Target Milestone: 1.0 M1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-07-16 05:03 UTC by Joshua Lock - Disabled
Modified: 2011-03-03 17:33 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.