<?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>7024</bug_id>
          
          <creation_ts>2014-12-03 14:57:09 +0000</creation_ts>
          <short_desc>Need dependencies from tasks on postprocessing variables</short_desc>
          <delta_ts>2015-01-27 10:48:51 +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>OE-Core</product>
          <component>core</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6502</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Magnus Olsson">magnus</assigned_to>
          <cc>magnus</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47329</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-03 14:57:09 +0000</bug_when>
    <thetext>Since we did the rewrite of our image and SDK generation in python, we have lost the variable dependencies between some of the variables that feed into these functions and the functions themselves, which means that changing the value of one of those variables doesn&apos;t cause the task to re-execute. We should add explicit vardeps on these to fix this.

For do_rootfs we need to add vardeps on:

IMAGE_PREPROCESS_COMMAND
IMAGE_POSTPROCESS_COMMAND
ROOTFS_PREPROCESS_COMMAND
ROOTFS_POSTINSTALL_COMMAND
ROOTFS_POSTPROCESS_COMMAND
OPKG_PREPROCESS_COMMANDS
OPKG_POSTPROCESS_COMMANDS
RPM_POSTPROCESS_COMMANDS
RPM_PREPROCESS_COMMANDS
DEB_POSTPROCESS_COMMANDS
DEB_PREPROCESS_COMMANDS

(the latter two aren&apos;t actually implemented at the moment, but we might as well add them at the same time)

For do_populate_sdk we need to add vardeps on:

SDK_POSTPROCESS_COMMAND
POPULATE_SDK_POST_TARGET_COMMAND
POPULATE_SDK_POST_HOST_COMMAND</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47331</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-03 15:05:51 +0000</bug_when>
    <thetext>If you look at _depends_list() in lib/oe/rootfs.py, you&apos;ll see that at least some of these do have dependencies. We therefore need to figure out which ones are missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47332</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-03 15:11:24 +0000</bug_when>
    <thetext>Right, I&apos;d completely missed that, and most of the variables I&apos;ve listed (if not all, I haven&apos;t gone through and checked every one) seem to be covered by that mechanism, which suggests it may not be working according to the reports I have received.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47336</commentid>
    <comment_count>3</comment_count>
    <who name="Magnus Olsson">magnus</who>
    <bug_when>2014-12-03 15:37:24 +0000</bug_when>
    <thetext>I&apos;ve encountered issues where changes to IMAGE_PREPROCESS_COMMAND-functions does not trigger a rebuild.

IMAGE_PREPROCESS_COMMAND += &quot;test; &quot;

test() {
    install -m 0755 ${DEPLOY_DIR_IMAGE}/${DTB_FILENAME} ${IMAGE_ROOTFS}
}

If test() is changed, Bitbake does not re-trigger build unless I explicitly taint the sstate-cache (-f).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48216</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-23 10:42:09 +0000</bug_when>
    <thetext>After some digging, I can confirm that we do have code not only to add these variables (all of them) as dependencies of do_rootfs but also we get the functions as dependencies for the variables, so I think we do have the mechanism already as Richard pointed out.

Magnus, I&apos;ve tried the exact example you gave on both master and dizzy and haven&apos;t been able to reproduce the issue - changing the contents of the function causes do_rootfs to re-execute the next time I build the image. Is there something else going on in your setup that I&apos;m not replicating?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48322</commentid>
    <comment_count>5</comment_count>
    <who name="Magnus Olsson">magnus</who>
    <bug_when>2015-01-27 10:48:51 +0000</bug_when>
    <thetext>I&apos;ve been unable to reproduce this on Dizzy, it seems to an issue on Daisy only.

Fixed in oe-core b8b6214b885a0757f0e628937f8fe21c92c45155 by [YOCTO #6502].

*** This bug has been marked as a duplicate of bug 6502 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>