<?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>9211</bug_id>
          
          <creation_ts>2016-03-04 10:17:20 +0000</creation_ts>
          <short_desc>base.bbclass: insufficient error handling for LIC_FILES_CHKSUM</short_desc>
          <delta_ts>2016-05-17 15:34:46 +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.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>59719</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-03-04 10:17:20 +0000</bug_when>
    <thetext>The following (incorrect)
   LIC_FILES_CHKSUM = &quot;files://LICENSE;md5=4fbd65380cdd255951079008b364516c&quot;
in a .bb recipe led to a rather obscure error with recent OE-core:

Parsing recipes...
ERROR: ExpansionError during parsing .../clr-systemd-config_98.bb: Failure expanding variable do_fetch[file-checksums], expression was ${@bb.fetch.get_checksum_file_list(d)}  ${@get_lic_checksum_file_list(d)} which triggered exception IndexError: string index out of range

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Build step &apos;Execute shell&apos; marked build as failure
Finished: FAILURE

The string index error is in &quot;if path[0] == &apos;/&apos;&quot; - path is empty in this case.

Note that LIC_FILES_CHKSUM uses &quot;files&quot; instead of &quot;file&quot;. Not sure what older OE-core did with that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62108</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-05-11 16:42:51 +0000</bug_when>
    <thetext>I added a validation for notice the user about the MalformedURL in this case,

In review at,

http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121256.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62254</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-05-17 15:34:46 +0000</bug_when>
    <thetext>Merge at,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d28ab584850b715c4b223e5146ecee18d8ae3c97</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>