Bug 1446

Summary: wrong version of libclutter-glx-1.0-0 picked up for core-sato-sdk image after world build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jiajun Xu <jiajun.xu>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: High CC: andreea.b.proca, dongxiao.xu, jessica.zhang, ke.yu, mark.hatle, meta.mr.watcher, meta.watcher, richard.purdie, 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 Jiajun Xu 2011-09-02 00:51:29 UTC
Tree/Branch: Poky/Master
Commit: f8cddd74574756174a82c856cecdeb6f83b9dea5

If I build a world first and then build a core-image-sato-sdk image, build will fail with error when do_rootfs for core-image-sato-sdk.

The root-cause is that when we build world, there are 2 recipes built for clutter - clutter_git.bb and clutter-1.6_1.6.14.bb. Then there will be 2 libclutter-glx-1.0 built out - libclutter-glx-1.0-0-1.0.0+git1+xxxxxxx and libclutter-glx-1.0-0-1.6.14xxxxxx.
Then when we build core-image-sato-sdk in the same folder, ideally libclutter-glx-1.0-0-1.6.14xxxxxx should be used but rpm command use libclutter-glx-1.0-0-1.0.0+git1+xxxxxxx.

Error message as below:
########
| update-alternatives: Linking /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/rootfs//usr/bin/renice to renice.util-linux
| update-alternatives: Linking /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/rootfs//usr/bin/wall to wall.sysvinit
| update-alternatives: Linking /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/rootfs//sbin/hwclock to ../bin/busybox
| update-alternatives: Linking /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/rootfs//sbin/shutdown to shutdown.sysvinit
| update-alternatives: Linking /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/rootfs//sbin/reboot to reboot.sysvinit
| update-alternatives: Linking /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/rootfs//sbin/halt to halt.sysvinit
| log_check: Using /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.27920 as logfile
| log_check: There were error messages in the logfile
| log_check: Matched keyword: [Fail]
|
| Processing task-base-dev...
| Processing task-core-x11-sato-dev...
| Processing task-core-qt-dev...
| Note: Unable to find package task-core-qt-dev (task-core-qt-dev) -- PACKAGE_INSTALL_ATTEMPTONLY
| Processing task-core-tools-testapps-dev...
| error: Failed dependencies:
|       libclutter-glx-1.0-0 = 1.0.0+git1+e957e277b8a4893ce8c99e94402036d42a8b3748-r9 is needed by libclutter-glx-1.0-dev-1.0.0+git1+e957e277b8a4893ce8c99e94402036d42a8b3748-r9.armv5te
| Processing task-core-boot-dev...
| error: Install/Erase problems:
|       package task-core-boot-dev-1.0-r8.qemuarm is already installed
| Processing zypper-dev...
|
| ERROR: Function 'do_rootfs' failed (see /home/jxu49/osel/poky-hob/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.27920 for further information)
NOTE: package core-image-sato-sdk-1.0-r0: task do_rootfs: Failed
ERROR: Task 8 (/home/jxu49/osel/poky-hob/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rootfs) failed with exit code '1'
ERROR: '/home/jxu49/osel/poky-hob/meta/recipes-sato/images/core-image-sato-sdk.bb' failed
########
Comment 1 Mark Hatle 2011-09-02 08:36:03 UTC
The check in rpm_packages.bbclass for package resolution may need to be expanding to be more precise in what it's looking for.
Comment 2 Mark Hatle 2012-05-08 15:29:33 UTC
Estimate is unknown...  Setting ridiculously high value...
Comment 3 Richard Purdie 2012-08-17 13:07:23 UTC
This was acutally fixed by http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=fef7a66d9b0a45971be157b1bcea821c5b307a69 which ensures we only have one provider of the specific library.
Comment 4 Andreea Brandusa Proca 2012-09-28 14:49:05 UTC
Verified in commit: 718eb85806e080d0b165344b272e531ef19421eb.