Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442076 - sys-apps/portage: option to only pull in the latest lower SLOTted version if it satisfies all the installed dependencies
Summary: sys-apps/portage: option to only pull in the latest lower SLOTted version if ...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155723
  Show dependency tree
 
Reported: 2012-11-06 18:11 UTC by tokiclover
Modified: 2024-10-14 08:36 UTC (History)
2 users (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 tokiclover 2012-11-06 18:11:11 UTC
Hello, sorry to not have the time to look for similar request(s).

I really like portage slotting abilities but there are some obvious drawbacks:

emerge will always try to update to the latest versions of a package which will pull in multi slotted packages (especially dev-lang/$lang) every time. 

To limit this annoyance, emerge should only pull in the latest lower sloted version if it satisfes all the installed dependencies. Else try the next one. If the next one satisfy all the dependency, remove the prevous one. And hence forth. Else, keep two slots if it satisfy all the installed dependencies.

Why the lower? because the lower has more chances to get stabilized sooner than later in many cases.

And this mechanism will avoid to have multiple slotted packages without any actual need to have that many.

I'm not arguing for a few MB disk space saved. However, as Gentoo is sources based, dev-lang/$lang often require too much computing brute force to compile. I don't want to compile unnecessarily all the slots of a particular dev-lang/$lang when I actually need only one.

Now if the user install another slot more than required for the installed dependencies, I understand that emerge should try to update to the latest version of the installed slots.

Reproducible: Always

Steps to Reproduce:
1.emerge -avuDN @world
2.
3.
Actual Results:  
pull in the latest slot and latest version of the slot

Expected Results:  
update to the latest version of the needed/necessary slot first if it's enough, else try the next slot. And hence forth
Comment 1 Zac Medico gentoo-dev 2012-11-06 18:47:34 UTC
We can add an option for this, but it won't be enabled be default because normally we want new slots to get pulled in and have the old slots be removed by --depclean when they are no longer needed.