<?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>8634</bug_id>
          
          <creation_ts>2015-11-03 14:47:40 +0000</creation_ts>
          <short_desc>Document LICENSE_CREATE_PACKAGE feature</short_desc>
          <delta_ts>2016-02-15 19:05:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>2.0</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>15 Feb 2016: IN PROGRESS REVIEW</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          <dependson>8633</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bevenson">bevenson</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56144</commentid>
    <comment_count>0</comment_count>
    <who name="Bevenson">bevenson</who>
    <bug_when>2015-11-03 14:47:40 +0000</bug_when>
    <thetext>Section 5.25.2 documents how to use COPY_LIC_DIRS and COPY_LIC_MANIFEST to create and copy the source code license texts and the license manifest into the image when the image is built.  There is also the variable LICENSE_CREATE_PACKAGE which creates a -lic package for each package in the image so the licenses can be included/updated on firmware upgrade. However, LICENSE_CREATE_PACKAGE is not described in this section or anywhere in the Development Manual.

Add documentation to the Development Manual to describe how to use this variable in relation to FOSS compliance.

Adding a dependency on bug 8633 as there is also no reference to this variable in the Variables Glossary.  Describing the variable in the Development Manual with no description of it in the Reference Manual could be confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58689</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-05 23:18:13 +0000</bug_when>
    <thetext>Hi, 

Please look at http://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#providing-license-text and let me know if this is adequate.  We do also now have an entry in the glossary for the LICENSE_CREATE_PACKAGE variable at http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-LICENSE_CREATE_PACKAGE.

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58722</commentid>
    <comment_count>2</comment_count>
    <who name="Bevenson">bevenson</who>
    <bug_when>2016-02-08 13:15:35 +0000</bug_when>
    <thetext>As a user I&apos;d also like to see a short paragraph describing the difference between the three variables as all three are not required to get the license files in the image.  COPY_LIC_DIRS and COPY_LIC_MANIFEST add copy of the licenses at image build time but do not offer a path for adding licenses for newly installed packages to an image; this may be most suitable (in my opinion) for read-only filesystems which cannot be upgraded.  LICENSE_CREATE_PACKAGE adds a separate package and an upgrade path for adding licenses to an image.  If all three variables are set to 1, then the image will have two copies of the same license file with one copy under /usr/share/common-licenses and the other under /usr/share/license.  This isn&apos;t immediately obvious unless someone is looking at the definition of COPY_LIC_DIRS and LICENSE_CREATE_PACKAGE at the same time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59044</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-15 18:14:41 +0000</bug_when>
    <thetext>There is a section in the dev-manual that addressed setting all these variables to &quot;1&quot;.  I have added some explanation there in the form of a note that helps explains what is going on based on the information you provided.  See http://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#providing-license-text.

I have also added some further information to the variable descriptions in the glossary.  See the following:

 * http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-COPY_LIC_DIRS

 * http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-COPY_LIC_MANIFEST

 * http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-LICENSE_CREATE_PACKAGE

I have tried to cross-reference all this information to try and tie it together better for the user.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59050</commentid>
    <comment_count>4</comment_count>
    <who name="Bevenson">bevenson</who>
    <bug_when>2016-02-15 18:55:55 +0000</bug_when>
    <thetext>Scott,

The additional text is clear to me.  Thanks for adding this to the documentation.

Thanks,
Bryan</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59052</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-15 19:05:30 +0000</bug_when>
    <thetext>Great... thanks.  Resetting to RESOLVED and putting the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>