<?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>15285</bug_id>
          
          <creation_ts>2023-11-17 19:56:38 +0000</creation_ts>
          <short_desc>devtool: Generated patches do not always match source end-of-line (CRLF vs LF)</short_desc>
          <delta_ts>2023-12-07 16:14:00 +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>devtools / tool chain</component>
          <version>unspecified</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>5.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Yoann Congal">yoann.congal</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>97276</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-11-17 19:56:38 +0000</bug_when>
    <thetext>When patchin projucer in meta-openembedded, I triggered this :
[meta-multimedia][PATCH] juce/projucer: Backport a fix for the compilation under recent GCC
https://lists.openembedded.org/g/openembedded-devel/message/106762
... which had to be fixed like this :
[meta-multimedia][PATCH] projucer: Refresh patch to apply cleanly
https://lists.openembedded.org/g/openembedded-devel/message/106872

Origin sources are CR-LF (Windows):
 $ file modules/juce_core/system/juce_StandardHeader.h
modules/juce_core/system/juce_StandardHeader.h: C source, ASCII text, with CRLF line terminators

My commit in the devtool workspace is still in CR-LF.

The generated patch is LF =&gt; it does not apply cleanly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97303</commentid>
    <comment_count>1</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-11-22 14:16:13 +0000</bug_when>
    <thetext>Maybe in https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/patch.py#n464 def extractPatches():?

Sightly related patches :
[PATCH v2 0/2] patch: reduce changes during patch refresh
https://lists.openembedded.org/g/openembedded-core/message/191105
[PATCH v2 1/2] patch: extract patches without diffstats
https://lists.openembedded.org/g/openembedded-core/message/191106
[PATCH v2 2/2] patch: extract patches with all-zero hash
https://lists.openembedded.org/g/openembedded-core/message/191107</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97339</commentid>
    <comment_count>2</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-11-27 13:50:26 +0000</bug_when>
    <thetext>Patch sent : https://lists.openembedded.org/g/openembedded-core/message/191303</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97442</commentid>
    <comment_count>3</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-12-07 16:14:00 +0000</bug_when>
    <thetext>Patch merged : https://git.yoctoproject.org/poky/commit/?id=2c59f5ad01aa0e6dfd1e6291e770c77041be762e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>