Bug 1428

Summary: initramfs-live-install_1.0.bb not buildable with grub skipped for qemux86-64
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jiajun Xu <jiajun.xu>
Component: coreAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, ke.yu, meta.mr.watcher, meta.watcher, sgw, shane.wang, tom.zanussi, wenhuax.fan
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: meta-intel patchset sent out for review & merge
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2011-08-29 23:39:59 UTC
Tree/Branch: Poky/Master
Commit: c7850ddfebc6ae44a65cee212e6648033ae38b72

When I test world build with qemux86-64, I find that grub will be skipped, which cause initramfs-live-install_1.0.bb not buildable.

Error message as below:
#########
Parsing of 788 .bb files complete (0 cached, 788 parsed). 1028 targets, 20 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'grub' (but /home/jxu49/osel/poky-hob/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb RDEPENDS on or otherwise requires it)
ERROR: grub was skipped: incompatible with host x86_64-poky-linux
NOTE: Runtime target 'grub' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['grub']
ERROR: Nothing RPROVIDES 'initramfs-live-install-dev' (but /home/jxu49/osel/poky-hob/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb RDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'initramfs-live-install-dev'
NOTE: Runtime target 'initramfs-live-install-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['initramfs-live-install-dev']
ERROR: Nothing RPROVIDES 'initramfs-live-install' (but /home/jxu49/osel/poky-hob/meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb RDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'initramfs-live-install'
NOTE: Runtime target 'initramfs-live-install' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['initramfs-live-install']
NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/libx11 (/home/jxu49/osel/poky-hob/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb /home/jxu49/osel/poky-hob/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb).
#########
Comment 1 Darren Hart 2011-09-01 14:34:30 UTC
We didn't used to have live images for qemu at all. Is this now a concern?
Comment 2 Darren Hart 2011-09-01 14:35:29 UTC
Or is this possibly an artifact of eliminating the live image type?
Comment 3 Lianhao Lu 2011-09-04 22:27:40 UTC
It is because the grub 0.97 in oe-core doesn't support x86-64 target. Maybe for x86_64 taret, the initramfs-live-install should grub2 which is not in the oe-core yet.
Comment 4 Darren Hart 2011-09-06 09:20:55 UTC
We've discussed moving the grub 2 recipe from meta-intel to oe-core. I have no objection.
Comment 5 Lianhao Lu 2011-09-06 22:52:00 UTC
Before we move the grub2 from meta-intel to meta, please use the following patch to keep initramfs-live-install consistent with grub1.

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=llu/bug1428&id=12e84165018fd375acaea2942a85966a9b216b53
Comment 6 Lianhao Lu 2011-09-07 20:24:23 UTC
Fixed in http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=dc3a8274c7e935fa564eea142d2535c9bcf2b272.

Removed the x86_64 from COMPATIBLE_LIST for initramfs-live-install to be consistent with grub 0.97.

Darren proposed a plan to move grub2 and corresponding initramfs-live-install which support x86-64 target from meta-intel to oecore.
Comment 7 Tom Zanussi 2011-09-08 15:43:46 UTC
oe-core commit dc3a8274c7e935fa564eea142d2535c9bcf2b272 for YOCTO #1428
broke meta-intel x86_64 builds:

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'initramfs-live-install' (but /usr/local/src/yocto/sugarbay/meta/recipes-core/images/core-image-minimal-initramfs.bb RDEPENDS on or otherwise requires it)
ERROR: initramfs-live-install was skipped: incompatible with host x86_64-poky-linux

A patchset to restore the build has been sent out for review.

Build and install-tested on sugarbay and crownbay.
Comment 8 Tom Zanussi 2011-09-15 06:57:41 UTC
Fixed by moving grub2 and initramfs-live-install from meta-intel to oe-core:

poky/master:

7b6b3b86551fe2f6073b72b0a03d08192ca33e1d
bcd1bca88052bfab4aaca74608134f4c8ff797de

meta-intel/master:

3c335937950c28950409e8bc1b3087c53b5b7561
072b217edf7ebea81a3503915223eccdf26af23d
49277afd9e5e510f7b1f82fd8cd10732e3bf2633