<?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>14157</bug_id>
          
          <creation_ts>2020-12-18 13:31:54 +0000</creation_ts>
          <short_desc>git fetcher: consider using different git commands for repo packing, eliminating &quot;git pack-redundant&quot;</short_desc>
          <delta_ts>2026-03-27 16:48: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>BitBake</product>
          <component>bitbake</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>backports perhaps</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Klauer">daniel.klauer</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>akuster</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>88796</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Klauer">daniel.klauer</who>
    <bug_when>2020-12-18 13:31:54 +0000</bug_when>
    <thetext>Hello,

First some background: bitbake&apos;s git fetcher invokes `git pack-redundant` and some other commands for packing the git repos downloaded into the downloads cache directory. In recent git versions (such as git 2.25.1 from Ubuntu 20.04), `git pack-redundant` sometimes crashes. It only happens on some repositories, and it&apos;s not a big issue for the Yocto build process, since as far as I could tell bitbake ignores the error and just continues on (the only reason I even noticed that is because of Kubuntu&apos;s automated crash/error reporting tool popping up occasionally in the middle of running a Yocto build here on my desktop).

This crash has been reported to the git mailing list (see &lt;https://lore.kernel.org/git/CANYiYbHOczhRoJkOofFNQ6VA3BiyOF=QjffFBDvLn43Ts8B67w@mail.gmail.com/T/#t&gt;) and it will probably be fixed (and as it turns out, has existed since 2019).

However, there also was some concern about why bitbake uses this at all. From what I understood, `git pack-redundant` may be deprecated soon anyways, and it would be better to just use `git repack -ad` instead of `git pack-redundant --all | xargs -r rm`, or even better `git gc --prune=now` instead of `git prune-packed` + `git pack-refs --all` + `git pack-redundant --all | xargs -r rm`. Please see that mail thread for a more detailed explanation.

I don&apos;t know exactly what bitbake needs here, but maybe this simplification would be worth considering. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88815</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2020-12-24 18:43:35 +0000</bug_when>
    <thetext>Daniel,

Thanks for bringing this issue forward. The bug triage is off until after the New Year. Due to the Year End holiday, there may be a delay in response.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96110</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:29:36 +0000</bug_when>
    <thetext>Bulk move to 4.3 M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104592</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-03-12 14:22:44 +0000</bug_when>
    <thetext>$ git pack-redundant
&apos;git pack-redundant&apos; is nominated for removal.
If you still use this command, please add an extra
option, &apos;--i-still-use-this&apos;, on the command line
and let us know you still use it by sending an e-mail
to &lt;git@vger.kernel.org&gt;.  Thanks.
fatal: refusing to run without --i-still-use-this

The fetcher does still reference this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104594</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-12 14:35:06 +0000</bug_when>
    <thetext>We need to ensure that we don&apos;t lose any of the unreachable references 
since the archives need them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104849</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-03-27 16:48:12 +0000</bug_when>
    <thetext>Thanks again for raising this, we did finally get around to merging something to avoid it: https://git.openembedded.org/bitbake/commit/?id=64fda8cb8efaff280d33bf60d93fed6e37244640</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>