<?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>5635</bug_id>
          
          <creation_ts>2013-12-06 07:43:16 +0000</creation_ts>
          <short_desc>Changing LICENSE_CREATE_PACKAGE doesn&apos;t always take effect</short_desc>
          <delta_ts>2016-02-08 15:58:04 +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>core</component>
          <version>1.5</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>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>39262</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-12-06 07:43:16 +0000</bug_when>
    <thetext>problem
-------
Enabling and disabling &apos;LICENSE_CREATE_PACKAGE&apos; doesn&apos;t cause rerun of the packaging process. As a result, if this variable is first enabled when building an image, and is then disabled when rebuilding the image, the license packages (e.g. busybox-lic) are still installed into that image. This is obviously not desired.

To reproduce, use the following steps:
1. set in local.conf:
LICENSE_CREATE_PACKAGE = &quot;1&quot;
COPY_LIC_MANIFEST = &quot;1&quot;
COPY_LIC_DIRS = &quot;1&quot;
2. bitbake busybox
3. set in local.conf:
# LICENSE_CREATE_PACKAGE = &quot;1&quot;
# COPY_LIC_MANIFEST = &quot;1&quot;
# COPY_LIC_DIRS = &quot;1&quot;
4. bitbake busybox

Use the following command to verify that the license package is still required by the main busybox pacakge.
rpm -qp --requires &lt;path/to/busybox/rpm/package&gt; | grep &apos;\-lic&apos;


cause
-----
The license copying process should be in do_install task instead of the do_package task. This is because that copying of license has effect on ${D} instead of ${PKGD}.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46910</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-11-11 02:03:53 +0000</bug_when>
    <thetext>Nobody cares about this one. Close it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58505</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-02-03 15:50:21 +0000</bug_when>
    <thetext>Stumbled on this when helping get docs written for the LICENSE_CREATE_PACKAGE variable in #8633</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58509</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-03 16:37:52 +0000</bug_when>
    <thetext>Patch on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58737</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-08 15:58:04 +0000</bug_when>
    <thetext>Fixed in oe-core master 0450c74e36b5547e3e903fdabe0f52675ac94dea.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>