Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608564 - sys-apps/portage: add emerge --ignore-world option to disregard @world when solving dependencies
Summary: sys-apps/portage: add emerge --ignore-world option to disregard @world when s...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 651804
  Show dependency tree
 
Reported: 2017-02-07 20:07 UTC by Zac Medico
Modified: 2018-07-02 18:40 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 Zac Medico gentoo-dev 2017-02-07 20:07:52 UTC
In some situations, it is permissible to break dependencies of installed packages. For example, consider a temporary/disposable container running in a continuous integration environment, where there is no thread of negative consequences. In situations like this, it's useful to have an option to disregard @world/@system/@selected, in order to avoid conflicts when solving dependencies for packages given as emerge arguments (possibly resulting in a serious system breakage).
Comment 2 Larry the Git Cow gentoo-dev 2018-03-26 17:39:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=6a810e0cdb586fb05f210a1c7ba2b5401f38c332

commit 6a810e0cdb586fb05f210a1c7ba2b5401f38c332
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-03-21 18:50:43 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-03-26 17:35:33 +0000

    emerge: add --ignore-world [ y | n ] option (bug 608564)
    
    Ignore the @world package set and its dependencies. This may be useful
    if there is a desire to perform an action even though it might break
    the dependencies of some installed packages (it might also remove
    installed packages in order to solve blockers). This also alters the
    behavior of --complete-graph options so that only deep dependencies
    of packages given as arguments are included in the dependency graph.
    This option may be useful as an alternative to --nodeps in cases where
    it is desirable to account for dependencies of packages given as
    arguments.
    
    Bug: https://bugs.gentoo.org/608564

 man/emerge.1                                      | 19 ++++++++++++++++++-
 pym/_emerge/create_depgraph_params.py             |  6 +++++-
 pym/_emerge/depgraph.py                           |  8 ++++++--
 pym/_emerge/main.py                               | 11 ++++++++++-
 pym/portage/tests/resolver/test_complete_graph.py | 20 +++++++++++++++++++-
 5 files changed, 58 insertions(+), 6 deletions(-)}
Comment 3 Zac Medico gentoo-dev 2018-07-02 18:40:02 UTC
Fixed in portage-2.3.40-r1.