Bug 1715

Summary: [NAS] poky needs user-friendly error messages
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Shane Wang <shane.wang>
Component: meta-yoctoAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: bluelightning, corneliux.stoicescu, jessica.zhang, poky.bs.watcher, poky.watcher, sgw, song.liu
Version: unspecified   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Shane Wang 2011-11-02 20:24:03 UTC
Currently the error message is not helpful. E.g. the error "no provider" stands for "commercial license" issue when building media tomb. It is hard for users to understand and figure out where is the root cause. Nice to define meaningful and user-friendly error messages.
Comment 1 Paul Eggleton 2011-11-03 09:54:57 UTC
We already mention COMMERCIAL_LICENSE in the NoProvider error message. Is that not sufficient? (We also output a backtrace which is not useful, but that's another issue that I hope Scott will be able to fix for 1.2.)
Comment 2 Shane Wang 2011-11-03 15:58:58 UTC
Probably it is a duplicated bug, I agree, but we met in NAS development. I think this is under the umbrella of error handling enhancement in v1.2.
Comment 3 Scott Garman 2012-03-29 18:06:25 UTC
Shane, I have the feeling this bug has been fixed already. Can you confirm this, or give me steps to reproduce the issue?
Comment 4 Paul Eggleton 2012-08-13 16:07:57 UTC
We're now using LICENSE_FLAGS rather than COMMERCIAL_LICENSE for this; however the error message has been improved:

$ bitbake mpeg2dec
...
...
ERROR: Nothing PROVIDES 'mpeg2dec'
ERROR: mpeg2dec was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST


Thus I'm marking this as resolved.
Comment 5 Stoicescu Cornel 2012-09-28 15:19:08 UTC
     The error messages are more user-friendly and intuitive.

     Marking this as verified. Feel free to reopen if you would like to improve the error messages.