<?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>14155</bug_id>
          
          <creation_ts>2020-12-17 17:24:24 +0000</creation_ts>
          <short_desc>yocto-check-layer fails with hash changes if license added</short_desc>
          <delta_ts>2024-08-06 09:59:59 +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>Scripts and Tools</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>akuster808</cc>
    
    <cc>akuster</cc>
    
    <cc>mingli.yu</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tgamblin</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>88789</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-12-17 17:24:24 +0000</bug_when>
    <thetext>If a layer adds a new license, for example:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/tree/meta-arm-bsp/custom-licenses/STM-SLA0044-Rev5

And meta-oe is a dependent layer, then check-layers fails:

   lvm2:do_configure: b802854a81ce9143e8c0b7d9f839e3198222cde02dd8ebf831504d4af52d023f -&gt; 2b5f9d7acaa8843a3624a9acfc50d8dbee24b33a826a793f9128fb65b59a01fc
      bitbake-diffsigs --task lvm2 do_configure --signature b802854a81ce9143e8c0b7d9f839e3198222cde02dd8ebf831504d4af52d023f 2b5f9d7acaa8843a3624a9acfc50d8dbee24b33a826a793f9128fb65b59a01fc
      NOTE: Starting bitbake server...
      basehash changed from 060c530f471b0b7646e598ca92c980518f98b5dec7a39bbf5c0d122adc61a8a5 to 043201e125c1ae9e4a84a09f0563a59352e636c77d9640fc936aa40994852671
      Variable AVAILABLE_LICENSES value changed:
      &quot;... SSPL-1 {+STM-SLA0044-Rev5+} Simple-2.0 ...&quot;

This is because the lvm2 recipe uses the license logic:

LVM2_PACKAGECONFIG_append_class-target = &quot; \
    ${@bb.utils.filter(&apos;DISTRO_FEATURES&apos;, &apos;selinux&apos;, d)} \
    ${@incompatible_license_contains(&apos;GPLv3&apos;, &apos;&apos;, &apos;thin-provisioning-tools&apos;, d)} \
&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88791</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-12-17 17:54:08 +0000</bug_when>
    <thetext>I think we need to change the licensing code so that AVAILABLE_LICENSES isn&apos;t used in these contexts. Maybe have a flag limiting it to core licenses for the purposes of the functions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88807</commentid>
    <comment_count>2</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-12-23 19:44:47 +0000</bug_when>
    <thetext>would an override help? 

We force folks to use overrides or some sort of check for DISTRO_FEATURE to work around this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88812</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2020-12-24 18:37:31 +0000</bug_when>
    <thetext>triaging</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94849</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-02-02 15:15:00 +0000</bug_when>
    <thetext>Mingli, Please check if we still see this bug on master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96072</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:22:01 +0000</bug_when>
    <thetext>Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96470</commentid>
    <comment_count>6</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 16:43:44 +0000</bug_when>
    <thetext>Moved to M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97088</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:29:15 +0000</bug_when>
    <thetext>Bulk move to 5.0 M1. -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98010</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-25 14:28:50 +0000</bug_when>
    <thetext>Bulk move of bugs owned by &quot;unassigned&quot; from 5.0-M2 to 5.0-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98272</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 17:58:44 +0000</bug_when>
    <thetext>Mingli, Please check if we still see this bug on master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99444</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-25 15:00:06 +0000</bug_when>
    <thetext>Richard thinks we got rid of the AVAILABLE license check.
Mingli, can you check on that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99500</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-08-06 09:59:59 +0000</bug_when>
    <thetext>AVAILABLE_LICENSES was removed in oe-core bf08d9ccb9cbc749a571af3d33140bcae0e252a6.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>