<?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>14939</bug_id>
          
          <creation_ts>2022-10-17 13:36:50 +0000</creation_ts>
          <short_desc>git core.fsyncObjectFiles is deprecated since git v2.36.0</short_desc>
          <delta_ts>2022-11-03 12:34:05 +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>BitBake</product>
          <component>bitbake</component>
          <version>4.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>normal</bug_severity>
          <target_milestone>4.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94192</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2022-10-17 13:36:50 +0000</bug_when>
    <thetext>It was replaced with more granular approach in:
https://github.com/git/git/compare/a68dfadae5e95c7f255cf38c9efdcbc2e36d1931...b9f5d0358d2e882d47f496c1a5589f6cebc25578

and deprecated in:
https://github.com/git/git/commit/844a8ad4f868dcac8851012fe6dafd49b301b2ae#diff-74eb92dd55d0dc52d3107aedbba99f2d7d68ba12b8ecdf9132c7ba3385b3e405R1691

This results in a lot of warnings in do_fetch/do_unpack logs (e.g. shown in http://errors.yoctoproject.org/Errors/Details/672888/)

It&apos;s set in default FETCHCMD_git:

lib/bb/fetch2/git.py:        ud.basecmd = d.getVar(&quot;FETCHCMD_git&quot;) or &quot;git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat&quot;

People with newer git can set FETCHCMD_git locally, but we should plan some migration so that it works well OOTB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94194</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2022-10-17 13:41:30 +0000</bug_when>
    <thetext>$ grep -c &quot;warning: core.fsyncObjectFiles is deprecated; use core.fsync instead&quot; vulkan-samples/git-r0/temp/log.do_fetch
5
$ echo -e `grep FetchError vulkan-samples/git-r0/temp/log.do_unpack` | grep -c &quot;warning: core.fsyncObjectFiles is deprecated; use core.fsync instead&quot;
14</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94308</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-10-28 17:01:12 +0000</bug_when>
    <thetext>As far as I can tell, fsyncobjectfiles=0 is the default so we should just be able to drop this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94309</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-10-28 17:03:19 +0000</bug_when>
    <thetext>Yes, looks like it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94310</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-10-28 17:15:48 +0000</bug_when>
    <thetext>Patch on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94338</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2022-11-03 12:34:05 +0000</bug_when>
    <thetext>https://git.openembedded.org/bitbake/commit/?id=8ad310633e0c5d5593631c1196cbdde30147efce</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>