Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930215 - Perform binpkg compression asynchronously
Summary: Perform binpkg compression asynchronously
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 835380
  Show dependency tree
 
Reported: 2024-04-19 02:00 UTC by Sam James
Modified: 2024-05-04 08:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-19 02:00:45 UTC
Thought about it when filing bug 930213.

We could probably compress binpkgs asynchronously.

Right now, we don't consider the result of the merge usable until the binpkg compression is done, but there's no real need for that, we could just compress in the background and continue as the package is already merged well enough for other packages to use it as a dependency.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-19 02:47:15 UTC
I should say, this only really matters with emerge --jobs I guess, or if it's not the last package in the merge order. If it's the last package, it of course won't help.
Comment 2 Zac Medico gentoo-dev 2024-04-19 15:39:22 UTC
You'd basically need a backup copy of the whole PORTAGE_BUILDDIR though (not as bad if filesystem supports reflinks) since the merge process calls movefile which does not leave the source file behind, and also the pkg_preinst phase can muck around in ${D} (plus ${T}/environment caries state from pkg_preinst to the installed instance).
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-04 08:17:54 UTC
Thanks, that makes sense. I agree it's not worth it.