Bug 1133

Summary: No provider for core-image-minimal/basic for non-GPLv3 build
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ke.yu, poky.bs.watcher, poky.watcher, sgw, wenhuax.fan
Version: unspecified   
Target Milestone: 1.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2011-06-01 06:20:27 UTC
Tree/Branch: Poky/1.1_M1
Poky Commit: 4ff7af11ef69849ef9c16f585eae58ac920b222b
Meta Branch: 1.1_M1
Meta Commit: fc719f0cd6530ce15148b4aa274f1644b461b298

With Yocto 1.1 M1 RC2 commit, non-GPLv3 build fails with no provider for core-image-minimal/basic.

Error log as below:
########
NOTE: Resolving any missing task queue dependencies
NOTE: Runtime target 'oprofileui-server' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['oprofileui-server', 'libglade', 'gnome-common']
NOTE: Runtime target 'qemu-config' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qemu-config', 'oprofileui-server', 'libglade', 'gnome-common']
NOTE: Runtime target 'task-core-boot' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['task-core-boot', 'qemu-config', 'oprofileui-server', 'libglade', 'gnome-common']
ERROR: Required build target 'core-image-basic' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-basic', 'task-core-boot', 'qemu-config', 'oprofileui-server', 'libglade', 'gnome-common']
ERROR: Nothing PROVIDES 'gnome-common'
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/command.py", line 200, in buildTargets
    command.cooker.buildTargets(pkgs_to_build, task)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/cooker.py", line 833, in buildTargets
    taskdata.add_unresolved(localdata, self.status)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 534, in add_unresolved
    self.remove_buildtarget(targetid)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 491, in remove_buildtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 471, in fail_fnid
    self.remove_buildtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 491, in remove_buildtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 471, in fail_fnid
    self.remove_buildtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 501, in remove_buildtarget
    raise bb.providers.NoProvider(target)
NoProvider: core-image-basic
########
Comment 1 Saul Wold 2011-06-01 07:25:53 UTC
This is a known issue, that has been discussed in the email lists.  This issue is that qemu-config is bringing in a set of dependencies, some of which are GPLv3, since the qemu-config itself is not GPLv3 there is no direct way to disable it.

A patch is currently pending in the 6/1 Consolidated pull.
Comment 2 Jiajun Xu 2011-06-01 18:18:17 UTC
Minimal image build also fails for non-GPLv3 build, error log as below:

NOTE: Resolving any missing task queue dependencies
NOTE: Runtime target 'oprofileui-server' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['oprofileui-server', 'libglade', 'gnome-common']
NOTE: Runtime target 'qemu-config' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qemu-config', 'oprofileui-server', 'libglade', 'gnome-common']
NOTE: Runtime target 'task-core-boot' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['task-core-boot', 'qemu-config', 'oprofileui-server', 'libglade', 'gnome-common']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'task-core-boot', 'qemu-config', 'oprofileui-server', 'libglade', 'gnome-common']
ERROR: Nothing PROVIDES 'gnome-common'
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/command.py", line 200, in buildTargets
    command.cooker.buildTargets(pkgs_to_build, task)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/cooker.py", line 833, in buildTargets
    taskdata.add_unresolved(localdata, self.status)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 534, in add_unresolved
    self.remove_buildtarget(targetid)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 491, in remove_buildtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 471, in fail_fnid
    self.remove_buildtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 491, in remove_buildtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 471, in fail_fnid
    self.remove_buildtarget(target, missing_list)
  File "/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py", line 501, in remove_buildtarget
    raise bb.providers.NoProvider(target)
NoProvider: core-image-minimal
Comment 3 Jiajun Xu 2011-06-02 01:12:40 UTC
I tried poky/master, which has the qemu-config fixing patch. The issue does not happen for both minimal/basic for non-GPLv3 build with this branch. So if we want 1.1 M1 has such fixing, we may need to backport the patch.
Comment 5 Saul Wold 2011-06-03 14:58:40 UTC
This will not be pulled into M1, but it is available in master
Comment 6 Jiajun Xu 2011-07-25 19:07:48 UTC
Verify with Yocto 1.1 M2 RC3 build, the bug is fixed.