<?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>10801</bug_id>
          
          <creation_ts>2016-12-13 13:19:20 +0000</creation_ts>
          <short_desc>devtool: upgrade: report diff for changed files referred to by LIC_FILES_CHKSUM</short_desc>
          <delta_ts>2017-12-19 07:43:12 +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>2.3</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>enhancement</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          <blocked>12360</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Kanavin">alex.kanavin</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>ee.peng.yeoh</cc>
    
    <cc>maxin.john</cc>
    
    <cc>nagarajagopalx.velu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>rebecca.swee.fun.chang</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>shashwatx.pandey</cc>
    
    <cc>stanley.cheong.kwan.phoong</cc>
          
          <qa_contact name="yeoh ee peng">ee.peng.yeoh</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69079</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-12-13 13:19:20 +0000</bug_when>
    <thetext>Currently, it&apos;s rather awkward to figure out what has caused the changes in license checksums - the tools could help with that by comparing the licenses using diff, and printing the output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69080</commentid>
    <comment_count>1</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2016-12-13 13:41:40 +0000</bug_when>
    <thetext>While agreeing that this is a good idea, some projects (eg: libunistring) updates licenses in totally different files once it changes the effective license of the Project. 

In the case of libunistring update, it left the two license files that we track in recipe unchanged (COPYING, COPYING.LIB) and updated the effective license in two different files (README, doc/libunistring.texi). We can track these kind of changes only by reading the release notes.

http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130051.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69081</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-12-13 13:52:49 +0000</bug_when>
    <thetext>COPYING* files themselves do not always set the effective license, but merely provide the license terms for reference (particularly the GPL type stuff). In that case we also need to track a README or some source code file where the license is actually established. libunistring was missing those other files - and that&apos;s a different issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69096</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-12-13 19:58:13 +0000</bug_when>
    <thetext>I&apos;m not sure the build system has the information needed to show this diff. We have the new file, but where will it get the old file? The metadata has been changed so that we&apos;re fetching the new source rather than the old one.

Honestly I think this kind of thing is better handled within tools that help you to update recipes, such as the AUH and devtool upgrade. I believe the AUH already provides a diff, and it&apos;s on my todo list for devtool upgrade (perhaps we should have a bug for the latter, maybe this one can be repurposed).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69121</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-12-14 12:38:40 +0000</bug_when>
    <thetext>That&apos;s fine with me. Paul, do you want to take the bug then? Apparently AUH will start using devtool in the future, so that all upgrade functionality is in one place without duplication.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69137</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-12-14 19:49:09 +0000</bug_when>
    <thetext>OK, repurposing this bug. Accordingly the spec should be:

When devtool upgrade runs on a recipe, if any files referred to by LIC_FILES_CHKSUM have changed then report the difference. I suspect what we&apos;ll need to do is write out a separate diff file, show a message, and also include a comment in the recipe reminding the user that they need to check the diff.

One catch with this is that it is possible (though not too common) for those files not to be ready to look at until the end of do_configure - that&apos;s when the check runs. We perhaps may ignore that corner case for now but we should be aware of it. I&apos;m actually not sure how widespread it is - I assume it&apos;s indended to take care of recipes where you make a license choice at configure time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77485</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-10-10 14:31:01 +0000</bug_when>
    <thetext>What is the current status with this issue? Paul, shall I reassign it to you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77487</commentid>
    <comment_count>7</comment_count>
    <who name="Stanley Phoong">stanley.cheong.kwan.phoong</who>
    <bug_when>2017-10-10 14:49:24 +0000</bug_when>
    <thetext>Hi Alexander, sorry was cooped up with some critical work over the last few weeks. Hoping to close this bug by next week. Thanks for the reminder :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77859</commentid>
    <comment_count>8</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2017-10-30 04:33:57 +0000</bug_when>
    <thetext>
 md5 LICENSE checksum is not updating in new recipe after devtool upgrade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77882</commentid>
    <comment_count>9</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2017-10-31 01:48:07 +0000</bug_when>
    <thetext>
 debugged and try to find the issue in /scripts/lib/devtool/upgrade.py and /scripts/lib/recipetool/create.py.but, unable to fix the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77888</commentid>
    <comment_count>10</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-10-31 10:55:06 +0000</bug_when>
    <thetext>Just for clarification - this isn&apos;t a bug, it&apos;s a missing feature. devtool upgrade needs to be changed to find the license files, compare them, update LIC_FILES_CHKSUM (which it doesn&apos;t do at the moment) and report the diff to the user as described above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78606</commentid>
    <comment_count>11</comment_count>
    <who name="Shashwat Pandey">shashwatx.pandey</who>
    <bug_when>2017-12-08 02:52:17 +0000</bug_when>
    <thetext>A patch has been already pushed to mailing list.
http://lists.openembedded.org/pipermail/openembedded-core/2017-November/145000.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78735</commentid>
    <comment_count>12</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-12-19 07:43:12 +0000</bug_when>
    <thetext>Merged: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2de2a19a007516cb5685209658a5e89e022e00ae</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>