Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337823 - Inconsistency in reloads when using sets
Summary: Inconsistency in reloads when using sets
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-18 07:08 UTC by Michał Górny
Modified: 2022-10-20 02:43 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-18 07:08:12 UTC
If portage-2.2 is called with a set evaluating to a sys-apps/portage update, portage reloads itself and re-evaluates the whole set. But if the portage update was the last atom of the merge, portage doesn't reload itself.

I think we should get some consistency here, and either:
a) do not re-evaluate sets and simply pass the remaining atoms when reloading,
b) always reload portage when the dependency tree contained a set (even if the re-evaluation would result in an empty dependency tree).
Comment 1 Zac Medico gentoo-dev 2010-09-18 07:44:11 UTC
I get the feeling that you're trying to solve some kind of problem without telling us what the problem is, and instead you're just telling us that the problem is "inconsistency". So, what's wrong with being "inconsistent"?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-18 13:48:20 UTC
I'm simply solving the problem other way as I didn't like my original idea :P. But the facts are still facts.

If we're supposed to re-evaluate the sets completely because the expansion result might differ between portage versions, we should do that even if the set currently evaluated to portage only.
Comment 3 Zac Medico gentoo-dev 2010-09-18 14:34:48 UTC
(In reply to comment #2)
> If we're supposed to re-evaluate the sets completely because the expansion
> result might differ between portage versions, we should do that even if the set
> currently evaluated to portage only.

That's not the motivation for re-evaluation of sets. The set re-evaluation is merely a side-effect from portage needing to reload itself. When it reloads itself, it has to create a dependency graph because otherwise it wouldn't have a dependency graph to work with, and set evaluation is part of dependency graph creation.