Bug 3951

Summary: perf doesn't build with core-image-minimal
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Tom Zanussi <tom.zanussi>
Component: kernelAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, richard.purdie, tom.zanussi
Version: 1.4   
Target Milestone: 1.4 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Tom Zanussi 2013-02-27 22:17:28 UTC
Building perf with a minimal image by adding the below to local.conf fails with a missing dependency on 'bash':

  Can't install perf-3.4-r8@qemux86: no package provides /bin/bash

Added to local.conf:

 IMAGE_INSTALL_append = " perf"

Perf should be usable with a minimal image either the dependency should be dragged in or the reason for it eliminated.

-----

[trz@empanada build]$ bitbake core-image-minimal

Pseudo is not present but is required, building this first before the main build
Parsing recipes: 100% |############################################################| Time: 00:01:09
Parsing of 812 .bb files complete (0 cached, 812 parsed). 1121 targets, 26 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Unknown"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130227"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master0:d7b248e715d99766bf8602ff9f038f8b0afa5e78"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 63 tasks of which 0 didn't need to be rerun and all succeeded.
Loading cache: 100% |##############################################################| ETA:  00:00:00
Loaded 1122 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Unknown"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130227"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master0:d7b248e715d99766bf8602ff9f038f8b0afa5e78"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: /home/trz/yocto/bashmin-test/build/tmp/sysroots/qemux86/usr/src/kernel/COPYING could not be copied for some reason. It may not exist. WARN for now.
NOTE: validating kernel config, see log.do_kernel_configcheck for details
ERROR: Function failed: do_rootfs (see /home/trz/yocto/bashmin-test/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.27667 for further information)
ERROR: Logfile of failure stored in: /home/trz/yocto/bashmin-test/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.27667
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Previous repo file missing: /home/trz/yocto/bashmin-test/build/tmp/deploy/rpm/all/repodata/primary.xml.gz
| Previous repo file missing: /home/trz/yocto/bashmin-test/build/tmp/deploy/rpm/i586/repodata/primary.xml.gz
| Previous repo file missing: /home/trz/yocto/bashmin-test/build/tmp/deploy/rpm/qemux86/repodata/primary.xml.gz
| Note: configuring RPM platform settings
| Note: configuring RPM system provides
| Note: configuring RPM DB settings
| Note: configuring Smart settings
| 
| 
| 
| 
| 
| 
| Note: adding Smart channel qemux86 (45)
| 
| 
| Note: adding Smart channel i586 (40)
| 
| 
| Note: adding Smart channel all (10)
| 
| 
| Note: configuring RPM cross-install scriptlet_wrapper
| 
| Updating cache...               ######################################## [100%]
| 
| Saving cache...
| 
| Note: adding Smart RPM DB channel
| 
| Note: to be installed:  perf@qemux86 packagegroup-core-boot@qemux86
| Loading cache...
| Updating cache...               ######################################## [100%]
| 
| Computing transaction...error: Can't install perf-3.4-r8@qemux86: no package provides /bin/bash
| 
| Saving cache...
| 
| ERROR: Function failed: do_rootfs (see /home/trz/yocto/bashmin-test/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.27667 for further information)
ERROR: Task 7 (/home/trz/yocto/bashmin-test/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1875 tasks of which 329 didn't need to be rerun and 1 failed.
No currently running tasks (1875 of 1876)

Summary: 1 task failed:
  /home/trz/yocto/bashmin-test/meta/recipes-core/images/core-image-minimal.bb, do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Comment 1 Tom Zanussi 2013-02-27 22:21:03 UTC
forgot to add that this was user-reported:

http://lists.linuxtogo.org/pipermail/openembedded-core/2013-February/036430.html
Comment 2 Tom Zanussi 2013-03-01 17:37:31 UTC
I also found a similar problem for systemtap.  Both patches submitted to oe-core.