<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3503</bug_id>
          
          <creation_ts>2012-11-28 04:46:32 +0000</creation_ts>
          <short_desc>additions to IMAGE_INSTALL_append go unnoticed</short_desc>
          <delta_ts>2012-12-05 14:38:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trevor Woerner">twoerner</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>eren</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27759</commentid>
    <comment_count>0</comment_count>
    <who name="Trevor Woerner">twoerner</who>
    <bug_when>2012-11-28 04:46:32 +0000</bug_when>
    <thetext>I&apos;m working off the latest git HEAD, which currently is:
master:eeaad6f50c731fa871cd2f3ae676acbe7b0d638e

For additional information, please see the email thread starting at:
https://lists.yoctoproject.org/pipermail/yocto/2012-November/012901.html

Steps to reproduce are as follows:

- run &quot;source poky/oe-init-build-env qemux86&quot;
- make no modifications to conf/bblayers.conf
- make no changes to conf/local.conf
- run &quot;bitbake core-image-minimal&quot;

After that completes successfully add a package to your image. Which package
you choose is irrelevant. For example, add the following line to your
conf/local.conf:

IMAGE_INSTALL_append = &quot; trace-cmd&quot;

- re-run the build &quot;bitbake core-image-minimal&quot;

This should complete successfully. When it does, modify the last line
of conf/local.conf to add a second package. Again, which package you
add is irrelevant. For example:

IMAGE_INSTALL_append = &quot; trace-cmd bash&quot;

- try re-running the build now: &quot;bitbake core-image-minimal&quot;

This time the build will fail. do_rootfs will fail with:

    Unable to resolve package bash

If you watch the second build carefully you&apos;ll see bitbake isn&apos;t even trying
to build bash. Robert P. J. Day, for example, noticed bitbake won&apos;t even try
to fetch anything (if fetching were required).

The full error follows:

Build Configuration:
BB_VERSION        = &quot;1.16.0&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20121126&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:c206007235df3e00c21a1cbf30e8a1bccc07a9e5&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_rootfs (see
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.19668
for further information)
ERROR: Logfile of failure stored in:
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.19668
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Generating solve db for
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/deploy/rpm/qemux86...
| Generating solve db for
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/deploy/rpm/i586...
| Generating solve db for
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/deploy/rpm/all...
|    total:               1      0.000000 MB      2.930406 secs
|    fingerprint:      1104      0.032554 MB      0.063469 secs
|    install:           368      0.000000 MB      0.878790 secs
|    digest:            736      5.357010 MB      0.027508 secs
|    signature:         736      0.000000 MB      1.443277 secs
|    dbadd:             368      0.000000 MB      0.866237 secs
|    dbget:           12620      0.000000 MB      0.018020 secs
|    dbput:             368      3.063072 MB      0.541058 secs
|    readhdr:          3681      6.087218 MB      0.010347 secs
|    hdrload:          1929     10.076294 MB      0.012106 secs
|    hdrget:          70812      0.000000 MB      0.081749 secs
| Generating solve db for
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/deploy/rpm/all...
| Processing packagegroup-core-boot...
| Processing trace-cmd...
| Processing bash...
| Unable to resolve package bash
| ERROR: some packages were missing
| ERROR: Function failed: do_rootfs (see
/home/trevor/devel/yocto/gitrepo-method/qemux86/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.19668
for further information)
ERROR: Task 7
(/home/trevor/devel/yocto/gitrepo-method/poky/meta/recipes-core/images/
core-image-minimal.bb, do_rootfs) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1443 tasks of which 1442 didn&apos;t need to be
rerun and 1 failed.
No currently running tasks (1442 of 1444)

Summary: 1 task failed:
  /home/trevor/devel/yocto/gitrepo-method/poky/meta/recipes-core/images/
core-image-minimal.bb, do_rootfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27771</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-11-28 10:06:52 +0000</bug_when>
    <thetext>This is an interesting issue. I was able to &quot;reproduce&quot; this a lot quicker with the sequence:

bitbake core-image-minimal -g
cat task-depends.dot | sort &gt; task-depends.dotA
&lt;Add IMAGE_INSTALL_append = &quot; trace-cmd&quot; &gt; local.conf&gt;
bitbake core-image-minimal -g
cat task-depends.dot | sort &gt; task-depends.dotB
&lt;Change to IMAGE_INSTALL_append = &quot; trace-cmd bash&quot; &gt; local.conf&gt;
bitbake core-image-minimal -g
cat task-depends.dot | sort &gt; task-depends.dotC
rm tmp/cache/default-eglibc/qemux86-64/bb_cache.dat.*
(to wipe out the cache files)
bitbake core-image-minimal -g
cat task-depends.dot | sort &gt; task-depends.dotD

task-depends.dotA is the baseline
task-depends.dotB has the addition of trace-cmd, so far so good
task-depends.dotC should show bash but is the same as B
task-depends.dotD is correct and does show bash

This tells us the cache is not noticing the addition of bash and this is a bitbake cache bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27995</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-12-05 14:38:52 +0000</bug_when>
    <thetext>Resolved in master with: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=73f57eb939b2409361401164e73fc9a08a288aa3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>