<?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>9446</bug_id>
          
          <creation_ts>2016-04-12 15:27:15 +0000</creation_ts>
          <short_desc>write_deploy_manifest() assumes all its dependencies have been built, but they are not dependencies of the rootfs task</short_desc>
          <delta_ts>2016-04-22 06:54:14 +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>2.1</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>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kjellerstedt">peter.kjellerstedt</reporter>
          <assigned_to name="Markus Lehtonen">markus.lehtonen</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>richard.purdie</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>61094</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2016-04-12 15:27:15 +0000</bug_when>
    <thetext>The write_deploy_manifest() function is called via ROOTFS_POSTPROCESS_COMMAND, i.e., after the rootfs task. write_deploy_manifest() calculates a list of dependencies via the get_deployed_dependencies() function which takes the dependencies of the rootfs task, EXTRA_IMAGEDEPENDS and some other boot tasks. However, since not all of these dependencies are dependencies of the rootfs task, there is nothing that guarantees that all of them have actually been built at the time write_deploy_manifest() is executed, which results in a race condition...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61224</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-04-14 14:57:49 +0000</bug_when>
    <thetext>I suspect we need to move the license.bbclass:ROOTFS_POSTPROCESS_COMMAND_prepend = &quot;write_package_manifest; write_deploy_manifest; license_create_manifest; &quot; deploY-manifest to something which runs as part of do_image_complete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61283</commentid>
    <comment_count>2</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-15 13:16:57 +0000</bug_when>
    <thetext>Shouldn&apos;t IMAGE_POSTPROCESS_COMMAND do the job?

Do you have any instructions how to reproduce this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61436</commentid>
    <comment_count>3</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-20 10:34:26 +0000</bug_when>
    <thetext>A fix was merged into master (and krogoth):
http://git.openembedded.org/openembedded-core/commit/?id=1f35b05d60f4e84554c5ee837cb071815e12c91c

Please re-open if you still see issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61542</commentid>
    <comment_count>4</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2016-04-22 06:43:33 +0000</bug_when>
    <thetext>The change triggers an error:

15:54:09 File: &apos;/var/lib/jenkins/ostro-worker-20-slot-0-mLLdv/ostro-os/meta/classes/license.bbclass&apos;, lineno: 67, function: write_license_files
15:54:09      0063:    bad_licenses = (d.getVar(&quot;INCOMPATIBLE_LICENSE&quot;, True) or &quot;&quot;).split()
15:54:09      0064:    bad_licenses = map(lambda l: canonical_license(d, l), bad_licenses)
15:54:09      0065:    bad_licenses = expand_wildcard_licenses(d, bad_licenses)
15:54:09      0066:
15:54:09  *** 0067:    with open(license_manifest, &quot;w&quot;) as license_file:
15:54:09      0068:        for pkg in sorted(pkg_dic):
15:54:09      0069:            if bad_licenses:
15:54:09      0070:                try:
15:54:09      0071:                    (pkg_dic[pkg][&quot;LICENSE&quot;], pkg_dic[pkg][&quot;LICENSES&quot;]) = \
15:54:09 Exception: IOError: [Errno 2] No such file or directory: &apos;/var/lib/jenkins/ostro-worker-20-slot-0-mLLdv/ostro-os/build/tmp-glibc/deploy/licenses/ostro-image-swupd-all-intel-corei7-64-2016-04-21_10-26-38-build-430/image_license.manifest&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61543</commentid>
    <comment_count>5</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-22 06:54:14 +0000</bug_when>
    <thetext>That unfortunate error will be fixed by this:
http://patchwork.openembedded.org/patch/120671/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>