Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941117 - sys-apps/portage: add an option to extend --emptytree behavior to evaluating cyclic deps
Summary: sys-apps/portage: add an option to extend --emptytree behavior to evaluating ...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: time64-migration
  Show dependency tree
 
Reported: 2024-10-07 12:38 UTC by Michał Górny
Modified: 2024-12-01 11:16 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-07 12:38:58 UTC
Currently, --emptytree adds all already-installed packages into the package graph.  However, it still considers them installed when evaluating cyclic deps.  When this is used for system-wide rebuild, it could lead to subtly wrong ordering of packages.

I think it would be helpful to have an option that would also ignore previously-installed packages for the purpose of dependency satisfaction.  In particular, whenever cyclic deps are involved, it would trigger an error rather than using arbitrary rebuild order.

This is particularly a problem for the time64 transition.  Since the pre-rebuild libraries are technically incompatible with the post-rebuild libraries, we need to consider cyclic deps like for bootstrap.