<?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>14407</bug_id>
          
          <creation_ts>2021-05-25 16:28:19 +0000</creation_ts>
          <short_desc>Static linked libraries do not appear in license manifest nor in sources tarball</short_desc>
          <delta_ts>2025-02-14 16:48:16 +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>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Jasper Ben Orschulko">Jasper.Orschulko</reporter>
          <assigned_to name="Jasper Ben Orschulko">Jasper.Orschulko</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</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>90479</commentid>
    <comment_count>0</comment_count>
    <who name="Jasper Ben Orschulko">Jasper.Orschulko</who>
    <bug_when>2021-05-25 16:28:19 +0000</bug_when>
    <thetext>When adding a package A to an image (RDEPENDS += &quot;A&quot;), with the former depending on a static linked library package B (DEPENDS += &quot;B&quot;), package B will not appear in the generated license manifest nor in the source tarball generated by the archiving class.

This occurs as the licensing and archiving classes assume that only packages included via RDEPEND end up in the image. However, this is not the case, as statically linking implies, that source code from package B is copied into package A at compile time and thus ends up being part of the rootfs.

As a result, potential obligations regarding license compliance for package B will not be met.

As the archiving and licensing classes are fundamental cornerstones of the &quot;Maintaining Open Source License Compliance During Your Product&apos;s Lifecycle&quot; chapter within the manuals (https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#maintaining-open-source-license-compliance-during-your-products-lifecycle), it is fair to say, that many users will depend on these for their license compliance reports and thus this should be addressed quickly, either by fixing this issue or by making the users aware of these shortcomings, so that they can make the informed decision, whether they want to rely on these mechanisms for their single source of truth.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90501</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-27 15:00:18 +0000</bug_when>
    <thetext>We don&apos;t enable static libraries by default, in part because of this problem.
We will document the limitation but we don&apos;t have a good idea about how to make the system report on static library dependencies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90514</commentid>
    <comment_count>2</comment_count>
    <who name="Jasper Ben Orschulko">Jasper.Orschulko</who>
    <bug_when>2021-05-27 16:51:16 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; We don&apos;t enable static libraries by default, in part because of this problem.
&gt; We will document the limitation but we don&apos;t have a good idea about how to
&gt; make the system report on static library dependencies.

I see. One idea I had (however not sure feasible) would be to check the content of packages included by DEPENDS for well-known extensions (e.g. *.a) and based on the findings treat them as part of the resulting image. This of course could lead to false positives, but I think it would be better to rather include too many, than too few packages. Introducing some sort of &quot;LICENSE_IGNORE&quot; variable could be used to remove false positives from the manifest and the sources folder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90524</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-28 02:07:36 +0000</bug_when>
    <thetext>Jasper if you want to try, that&apos;d be great. Let me know if you need any help with the process. It really would be good to fix this deficiency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91780</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-10-18 15:45:49 +0000</bug_when>
    <thetext>The documentation aspect of this bug is now addressed by this
commit: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=444ca8900e8057562d2a71a77e6e6798aca3ce85

Removing myself as assignee for this bug.

You may close this bug if you consider that the warning in documentation is enough, or re-assign it to somebody else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91809</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-21 15:10:31 +0000</bug_when>
    <thetext>We need some ideas about how to catch this type of manifest error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95102</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-03-09 16:06:43 +0000</bug_when>
    <thetext>We think that the SPDX class will deal with this and document the relationship.
We&apos;re working on enabling that by default on master and plan to add test cases to prove that it works!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95719</commentid>
    <comment_count>7</comment_count>
    <who name="Jasper Ben Orschulko">Jasper.Orschulko</who>
    <bug_when>2023-06-15 09:18:32 +0000</bug_when>
    <thetext>That sounds promising Randy! Does or is it planned that the new create-spdx class (looking at it for the first time, sorry) also deals with the creation of the source code archives? Otherwise the licenses would be listed correctly in the SPDX license files, but the respective code would be missing from the source code dump</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95721</commentid>
    <comment_count>8</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2023-06-15 12:57:01 +0000</bug_when>
    <thetext>The create-spdx class has the option to create source archives</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100065</commentid>
    <comment_count>9</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2024-10-31 14:31:41 +0000</bug_when>
    <thetext>Jasper,

Can you take a look at the SPDX generation and see if this resolves your concerns?

If so, please close this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100127</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-11-07 15:58:05 +0000</bug_when>
    <thetext>Jasper, Do you have what you need based on Joshua&apos;s comments?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100215</commentid>
    <comment_count>11</comment_count>
    <who name="Jasper Ben Orschulko">Jasper.Orschulko</who>
    <bug_when>2024-11-19 17:19:29 +0000</bug_when>
    <thetext>Hi all, sorry for the late reply, the notifications got lost in my mail inbox ;) I should be able to test this within the next couple of days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100669</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-16 16:10:55 +0000</bug_when>
    <thetext>Jasper,
We&apos;re assuming that the SPDX generation resolves your concerns,
Re-open if that&apos;s not the case.

YP bug review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100978</commentid>
    <comment_count>13</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:46:26 +0000</bug_when>
    <thetext>bulk change to add Saul&apos;s non-WR address.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101044</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:48:16 +0000</bug_when>
    <thetext>Bulk change: Remove Saul&apos;s old WR address.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>