<?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>7030</bug_id>
          
          <creation_ts>2014-12-04 17:11:07 +0000</creation_ts>
          <short_desc>Re-building meta package does not trigger image rebuilds</short_desc>
          <delta_ts>2014-12-09 14:18:00 +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>1.5.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mikko.rapeli</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47378</commentid>
    <comment_count>0</comment_count>
    <who name="">mikko.rapeli</who>
    <bug_when>2014-12-04 17:11:07 +0000</bug_when>
    <thetext>I&apos;m building a custom yocto 1.5.3 based distro with a number of layers. To simplify building I created a meta package which depends on all real target images, sdk, tests etc.

But it seems that image recipies are not build when they are listed in DEPENDS += &quot;image sdk&quot; of the meta package.

With yocto 1.6 this is working as expected.

I verified with &apos;bitbake -g meta-package&apos; that dependency to image recipe is correctly recorded, and &apos;bitbake image&apos; naturally works.

Tried to go through patches in poky/bitbake poky/meta/classes which might be fixing this but didn&apos;t find them yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47387</commentid>
    <comment_count>1</comment_count>
    <who name="">mikko.rapeli</who>
    <bug_when>2014-12-05 08:13:19 +0000</bug_when>
    <thetext>I&apos;m also using SSTATE_CACHE if it matters. From &apos;bitbake -g meta&apos; output I can see that package dependencies are correct, but task-depends.dot does not show any of the image tasks. I guess this is the problem then. None of the image tasks get executed via the meta package dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47390</commentid>
    <comment_count>2</comment_count>
    <who name="">mikko.rapeli</who>
    <bug_when>2014-12-05 09:30:03 +0000</bug_when>
    <thetext>Found a workaround by using inter-task dependencies http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html#inter-task-dependencies

In meta package .bb:

do_build[depends] += &quot;image:do_install_version_info&quot;

It seems that version info is the last task executed on our layers when creating the image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47458</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-09 14:18:00 +0000</bug_when>
    <thetext>Using DEPENDS for this may not do what you expect. DEPENDS means that the do_configure of the task should depend on the do_populate_sysroot of the thing in DEPENDS. These are equivalent:

DEPENDS += &quot;xxxx&quot;
and
do_configure[depends] += &quot;xxxx:do_populate_sysroot&quot;

In the case of a rootfs, you want the do_rootfs task, not do_populate_sysroot so DEPENDS is not the correct thing to use. You are therefore correct in adding the dependencies.

The change between 1.5.and 1.6 was likely some fixes to do_build dependencies and recrdep dependency handling in bitbake. Those changes were problematic/invasive and will not be backported to 1.5 at this point. As such I&apos;m going to mark this as WONTFIX.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>