git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bug report: "git pack-redundant --all" crash in minimize()

From
DKDaniel Klauer <daniel.c.klauer@web.de>
Date
Dec 16, 2020, 13:22 UTC
Message-ID
<a46660c3-630c-5573-9ef4-75d273d37767@web.de>
In-Reply-To
<X9j+nuzjiYyw/vQx@coredump.intra.peff.net>
On 15.12.20 19:21, Jeff King wrote:
Show 9 quoted lines
> On Tue, Dec 15, 2020 at 06:34:53PM +0100, Daniel C. Klauer wrote:
>> The reason this showed up is that Yocto's build tool, bitbake, sometimes
>> invokes this git command on some of the repositories it downloaded. This
>> issue was apparently also reported here:
>> https://bugzilla.redhat.com/show_bug.cgi?id=1803506
>
> We had a discussion not too long ago[1] about whether we should
> deprecate and remove pack-redundant, as it's not generally useful. I'm
> curious if you have any more context on why it's used in that tool.
Background: bitbake downloads git repositories during a build process
and supports caching them locally (in form of bare repos in some
user-defined directory). This prevents having to re-download them during
the next build, and also it is a convenient mirroring/backup system in
case the original URLs stop working.

As far as I can tell (since I'm not a bitbake developer) the git pack-redundant invocation is one of multiple calls meant to improve storage (probably minimize disk usage) of the locally cached git repos. For reference, please take a look at the other git commands it's invoking [1], and at the commit messages of the commits that added these invocations [2] [3] [4].

If doing it that way seems wrong, I'll report the issue to bitbake upstream too. Maybe there is a better way to do whatever bitbake wants to do here?

Thanks!

[1] http://git.openembedded.org/bitbake/tree/lib/bb/fetch2/git.py?h=1.48.1#n364 [2] http://git.openembedded.org/bitbake/commit?id=d5d958744fff66cf5286022d78cbec1839fca2e2 [3] http://git.openembedded.org/bitbake/commit?id=f8126aaf774186a6eaf0bd4067b89c074594886c [4] http://git.openembedded.org/bitbake/commit?id=7d55491f88ff90a4c16ad87b1483d55b1824acfc

Previous: Jeff KingNext: Jeff King
Message 10 of 11 in “bug report: "git pack-redundant --all" crash in minimize()”
  1. Daniel C. KlauerDec 15, 2020
  2. Jeff KingDec 15, 2020
  3. Junio C HamanoDec 15, 2020
  4. Jiang XinDec 16, 2020
  5. pack-redundant: fix crash when one packfile in repoJiang Xin, Dec 16, 2020
  6. Junio C HamanoDec 16, 2020
  7. pack-redundant: fix crash when one packfile in repoJiang Xin, Dec 17, 2020
  8. Junio C HamanoDec 17, 2020
  9. Jeff KingDec 16, 2020
  10. Daniel KlauerDec 16, 2020
  11. Jeff KingDec 16, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.