Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 752984

Summary: sys-apps/portage: PORTAGE_RO_DISTDIRS does not replace files with links
Product: Portage Development Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joakim Tjernlund 2020-11-03 17:45:59 UTC
There is a time gap(few hours) between ebuild repo updates and src being synced as well.

As a result, recent ebuild updates does not have src in it mirror and
portage needs to download src instead. This leaves a permanent src file
in distfiles which will not be replaced with a symlink once the src
is synced to local mirror. The number of such files grows over time, taking
up quite a lot of space.


It would be nice if the time gap above could be minimized too.
Comment 1 Ionen Wolkens gentoo-dev 2020-11-03 22:17:51 UTC
It's not up to me but changing this sounds concerning given "replacing" would mean deleting data (even if it's just distfiles), wouldn't it make more sense to just run your own cleanup scripts?

Not that I've been needing to replace anything with the order I run things in while using PORTAGE_RO_DISTDIRS myself.
Comment 2 Joakim Tjernlund 2020-11-04 11:06:18 UTC
(In reply to Ionen Wolkens from comment #1)
> It's not up to me but changing this sounds concerning given "replacing"
> would mean deleting data (even if it's just distfiles), wouldn't it make
> more sense to just run your own cleanup scripts?
> 
> Not that I've been needing to replace anything with the order I run things
> in while using PORTAGE_RO_DISTDIRS myself.

Using own scripts would defeat the purpose of PORTAGE_RO_DISTDIRS so I don't
want to do that.

PORTAGE_RO_DISTDIRS should on replace files it knows about, one could
checksum the files first to make sure they are the same but I don't
think that should be necessary.