Bug 8199

Summary: Bitbake does not give incompatible license error on provided package
Product: [Build System, Metadata & Runtime] BitBake Reporter: Alan Olsen <alanx.olsen>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher, ross.burton
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alan Olsen 2015-08-21 22:20:44 UTC
We have the following set in localconf:

INCOMPATIBLE_LICENSE = "LGPLv3 GPLv3"

We have a build that contains a package that is provided by a meta yocto recipe that is not the main package. The build fails (as it should) but does not provide the error message giving the correct reason why it fails.

Reproducible test case:

If you build "bitbake gdb" with the above set, it will fail with the incompatible license violation.

If you build "bitbake gdbserver" it will claim it cannot find the package. gdbserver is provided by gdb.

If the gdbserver requirement is the first package seen with the license issue, it fails, but gives the wrong error.
Comment 1 Ross Burton 2015-08-24 10:31:37 UTC
bitbake takes recipe names not package names, so "bitbake gdb" is the correct invocation and "bitbake gdbserver" is expected to fail.