<?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>13917</bug_id>
          
          <creation_ts>2020-05-22 08:53:28 +0000</creation_ts>
          <short_desc>yocto-check-layer can fail if a layer adds new licenses</short_desc>
          <delta_ts>2026-05-18 13:36:21 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Watt">JPEWhacker</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>paul</cc>
    
    <cc>peter.kjellerstedt</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>87314</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2020-05-22 08:53:28 +0000</bug_when>
    <thetext>If a layer adds new licenses by appending to LICENSE_PATH, it will cause any recipe that inherits &quot;license.bbclass&quot; to fail because that class expands the AVAILABLE_LICENSE variable by scanning all paths listed in LICENSE_PATH. This results in a signature mismatch for the recipe.

As an example when running yocto-check-layers on one of our internal layers which adds a custom license file, we got the following error:

71 signatures changed, initial differences (first hash before, second after):
   libdevmapper:do_configure: 82c851ad59f13117fc0f9cf68732d3e4b187f150baa08af99c4d6ebad5d56b8a -&gt; cd43c102864ed6ee6a8727d002e59a68b8898cdabff801dfffcbf1f237c9fddf
      bitbake-diffsigs --task libdevmapper do_configure --signature 82c851ad59f13117fc0f9cf68732d3e4b187f150baa08af99c4d6ebad5d56b8a cd43c102864ed6ee6a8727d002e59a68b8898cdabff801dfffcbf1f237c9fddf
      NOTE: Starting bitbake server...
      basehash changed from c09082cab215faf830a4bd4cc68275b97fd408eda66668723874095268701964 to 2542be418520358049adb0a46e46166f7d614fd2756175b0544b1fa4b964717b
      Variable AVAILABLE_LICENSES value changed:
      &quot;... {+Module-License-Fraunhofer+} ...&quot;


There appear to be two recipes that currently inherit license.bbclass: libdevmapper and lvm2 (both of which get it from lvm2.inc)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95421</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-21 18:45:43 +0000</bug_when>
    <thetext>Moved en masse from 4.2 to 4.3 by Randy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105483</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-05-18 13:36:21 +0000</bug_when>
    <thetext>We dropped AVAILABLE_LICENSES in 2022 (commit bf08d9ccb9cbc749a571af3d33140bcae0e252a6), and LICENSE_PATH is included in BB_HASHEXCLUDE_COMMON. So this should no longer be an issue. I tested with meta-raspberrypi which includes a custom license directory added to LICENSE_PATH in layer.conf, this currently passes yocto-check-layer (without the --machines argument).

So, I think we can close this issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>