<?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>14042</bug_id>
          
          <creation_ts>2020-09-06 10:03:26 +0000</creation_ts>
          <short_desc>do_populate_lic_deploy throws exception</short_desc>
          <delta_ts>2020-09-12 23:41:38 +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>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>3.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nickersk</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nickersk</cc>
    
    <cc>openatv</cc>
    
    <cc>randy.macleod</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>88114</commentid>
    <comment_count>0</comment_count>
    <who name="">nickersk</who>
    <bug_when>2020-09-06 10:03:26 +0000</bug_when>
    <thetext>i think https://git.openembedded.org/openembedded-core/commit/meta/classes/license_image.bbclass?id=9c6a114213a80bebc2988ae8d39b296bce7f6982 is causing this exception:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_populate_lic_deploy(d)
     0003:
File: &apos;/openembedded-core/meta/classes/license_image.bbclass&apos;, lineno: 260, function: do_populate_lic_deploy
     0256:ROOTFS_POSTPROCESS_COMMAND_prepend = &quot;write_package_manifest; license_create_manifest; &quot;
     0257:do_rootfs[recrdeptask] += &quot;do_populate_lic&quot;
     0258:
     0259:python do_populate_lic_deploy() {
 *** 0260:    license_deployed_manifest(d)
     0261:}
     0262:
     0263:addtask populate_lic_deploy before do_build after do_image_complete
     0264:do_populate_lic_deploy[recrdeptask] += &quot;do_populate_lic do_deploy&quot;
File: &apos;/openembedded-core/meta/classes/license_image.bbclass&apos;, lineno: 210, function: license_deployed_manifest
     0206:    if os.path.islink(lic_manifest_symlink_dir):
     0207:        os.unlink(lic_manifest_symlink_dir)
     0208:
     0209:    # create the image dir symlink
 *** 0210:    os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
     0211:
     0212:def get_deployed_dependencies(d):
     0213:    &quot;&quot;&quot;
     0214:    Get all the deployed dependencies of an image
Exception: FileExistsError: [Errno 17] File exists: &apos;/builds/openatv/release/sf8008/tmp/deploy/licenses/openatv-6.5-sf8008-20200906&apos; -&gt; &apos;/oea/nextp3/builds/openatv/release/sf8008/tmp/deploy/licenses/&apos;

DEBUG: Python function do_populate_lic_deploy finished</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88132</commentid>
    <comment_count>1</comment_count>
    <who name="">nickersk</who>
    <bug_when>2020-09-10 08:26:47 +0000</bug_when>
    <thetext>IMAGE_LINK_NAME = &quot;&quot; is probably the cause of this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88143</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-09-11 04:33:27 +0000</bug_when>
    <thetext>Patch from Diego on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88145</commentid>
    <comment_count>3</comment_count>
    <who name="">nickersk</who>
    <bug_when>2020-09-12 23:41:38 +0000</bug_when>
    <thetext>Thank you, fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>