Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934784 - PKGDIR should distinguish between the cache for remotely downloaded binaries vs locally built binaries
Summary: PKGDIR should distinguish between the cache for remotely downloaded binaries ...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-23 19:28 UTC by Eli Schwartz
Modified: 2024-06-23 19:29 UTC (History)
0 users

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 Eli Schwartz 2024-06-23 19:28:27 UTC
When creating your own binhost downstream of another binhost -- e.g. you use Gentoo's official binhost described at https://wiki.gentoo.org/wiki/Project:Binhost but also build your own packages for things not covered by the official one -- it is disruptive to end up with binary packages that are duplicates of your upstream binhost, copied into your own binhost.

I'd like to be able to specify a PKGDIR that is used whenever I run emerge --buildpkg, and a different directory which is used by --getbinpkg. This would allow me to re-host only the former. Users would be expected to enable multiple binhosts and get packages from whoever originally created them; I wouldn't be responsible for monitoring the server footprint of files I didn't create.

This would also mean that it's trivially possible to rm -rf the remote downloads bincache to recover space, without running the risk of deleting binaries that will suddenly no longer be available anywhere.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-23 19:29:23 UTC
Fixing this would also make it easier for us to default-on signature verification (binpkg-request-signature) because we don't suddenly require sigs from locally built binpkgs.