<?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>5648</bug_id>
          
          <creation_ts>2013-12-09 13:45:21 +0000</creation_ts>
          <short_desc>Add a field license_files to package information</short_desc>
          <delta_ts>2024-06-27 18:43:58 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>    </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Toaster default assignee">toaster</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>dave.lerner</cc>
    
    <cc>david.reyna</cc>
    
    <cc>randy.macleod</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>39292</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-12-09 13:45:21 +0000</bug_when>
    <thetext>This field is the full path to the license files (both generic and literal) for a certain package in the /build/tmp/licenses/ directory.

For example, for the busybox-hwclock package:

home/user/poky/build/tmp/deploy/licenses/busybox/generic_bzip2.txt

home/user/build/tmp/deploy/licenses/busybox/generic_GPLv2.txt

home/user/build/tmp/deploy/licenses/busybox/LICENSE.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39624</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-12-30 14:02:22 +0000</bug_when>
    <thetext>Paul, any idea on how to collect this info ? Couldn&apos;t find anything relevant :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39683</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Lerner">dave.lerner</who>
    <bug_when>2014-01-07 18:43:24 +0000</bug_when>
    <thetext>We will need to support multiple licenses and license file paths and associations between the license file paths and licenses and know whether the license is &apos;generic&apos; or &apos;package specific&apos;.  This suggests that just adding a package.license_path field will not solve the problem, unless we encode information in the package license and license_files, which is not a very &apos;normalized&apos; approach.  

Adding another table license-for-package {id, type (generic or specific), license_path, package_id} would solve the many-to-one license-files-to-package problem issue and provide the necessary typing of the license required by the 1.5.1 spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39702</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-01-09 11:06:39 +0000</bug_when>
    <thetext>We had a brief discussion about this, and we seem to have hit a problem with providing information about license files for packages. Although the license manifest for an image recipe is organised by package, the /build/tmp/deploy/licenses/ directory seems to group license files per recipe. 

We thought about providing the path to the directory where the license files are stored for a package (e.g. for busybox-hwclock /build/tmp/licenses/busybox/), but although this might be useful when Toaster is running locally, it will be pretty useless if Toaster is running remotely, which is our main use case. 

It was also observed that there is probably a whole design piece around licensing we should do.

So the conclusion was that providing the license under which a package is distributed is the minimum requirement. We already collect that information, so we will defer providing access to package license files.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>