<?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>14232</bug_id>
          
          <creation_ts>2021-02-10 04:23:06 +0000</creation_ts>
          <short_desc>recipe checksum bypass bug</short_desc>
          <delta_ts>2021-06-04 02:18:34 +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>3.3</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>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="akuster">akuster808</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>akuster808</cc>
    
    <cc>dorindabassey</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>weaverjs</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>89194</commentid>
    <comment_count>0</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-02-10 04:23:06 +0000</bug_when>
    <thetext>I just noticed if I set the SRC_URI hash to and empty string, not error is thrown   and the checks seems to be bypassed.

to reproduced:

SRC_URI[md5sum] = &quot;&quot;

or

SRC_URI[sha256sum] = &quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89228</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-02-11 16:08:39 +0000</bug_when>
    <thetext>Dorinda, do you want to work on this, check for &apos;None&apos; and error. Discuss with the list I guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89253</commentid>
    <comment_count>2</comment_count>
    <who name="Dorinda">dorindabassey</who>
    <bug_when>2021-02-12 19:33:25 +0000</bug_when>
    <thetext>Yes, I would love to work on this thanks.
I just reproduced this on a recipe, and from what I understood here a check in bitbake __init__.py might suffice, let me think of a solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89329</commentid>
    <comment_count>3</comment_count>
    <who name="Dorinda">dorindabassey</who>
    <bug_when>2021-02-19 23:00:51 +0000</bug_when>
    <thetext>Hi All, I noticed that they&apos;re some inconsistencies when this variable is set to empty string or commented out in some recipes as such:

SRC_URI[sha256sum] = &quot;&quot;
SRC_URI[md5sum] = &quot;&quot;
or
#SRC_URI[sha256sum] = &quot;&quot;
#SRC_URI[md5sum] = &quot;&quot;

sometimes the expected error message is displayed after running the build, but when i run the build again the error disappears. i don&apos;t know what could be causing this inconsistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90074</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-22 18:54:02 +0000</bug_when>
    <thetext>Can you list the examples that you are concerned about?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90084</commentid>
    <comment_count>5</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-04-23 01:21:10 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Can you list the examples that you are concerned about?

who is the question for?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90093</commentid>
    <comment_count>6</comment_count>
    <who name="Dorinda">dorindabassey</who>
    <bug_when>2021-04-23 08:00:44 +0000</bug_when>
    <thetext>Okay, I tested this for rsync and elfutils  recipes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90100</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-23 15:11:25 +0000</bug_when>
    <thetext>The question was for Dorinda about her statement:
   &quot;this variable is set to empty string or commented out in some recipes&quot;
but now I understand that she&apos;s saying that if she changes a recipe to have an empty SRC_URI[*sum] then she&apos;s getting different results on the first and second run of bitbake. 

Anyway, I think that for the sha256sum at least there are not any recipes where an empty string is valid and that should result in an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90470</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Weaver">weaverjs</who>
    <bug_when>2021-05-24 16:37:39 +0000</bug_when>
    <thetext>Hello, I haven’t contributed before but I saw the newcomers post and thought I would take a look and see if I can give a little back to the project.
If this issue is unresolved and unassigned then I believe I have a solution to it. I know that in previous comments Dorinda was going to look into this and if that’s still the case then I’ll look at the other issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90471</commentid>
    <comment_count>9</comment_count>
    <who name="Dorinda">dorindabassey</who>
    <bug_when>2021-05-24 16:41:08 +0000</bug_when>
    <thetext>It&apos;s fine, dig-in your contributions will be much appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90477</commentid>
    <comment_count>10</comment_count>
    <who name="Scott Weaver">weaverjs</who>
    <bug_when>2021-05-25 12:39:25 +0000</bug_when>
    <thetext>Thanks, Dorinda. I&apos;ve submitted a patch to the bitbake-devel list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90574</commentid>
    <comment_count>11</comment_count>
    <who name="Scott Weaver">weaverjs</who>
    <bug_when>2021-06-04 02:18:34 +0000</bug_when>
    <thetext>https://git.openembedded.org/bitbake/commit/?id=00d81e5abdeb4b5ef643999979c9b21895315ee5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>