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

Bug 310009

Summary: sys-apps/portage: dependency conflict message should display enable USE flags
Product: Portage Development Reporter: Victor Mataré <vmatare+gbug>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: esigra, mgorny
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/portage/pull/485
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 300071, 701268    

Description Victor Mataré 2010-03-17 22:10:16 UTC
This is really cosmetic. Don't bother with it if there are more important things to do.

I recently got this:

!!! One or more updates have been skipped due to a dependency conflict:

dev-python/PyQt4:0

  ('ebuild', '/', 'dev-python/PyQt4-4.7', 'merge') conflicts with
    >=dev-python/PyQt4-4.5[dbus,sql,svg,webkit,X] required by ('installed', '/', 'kde-base/pykde4-4.3.5-r1', 'nomerge')

Which was a bit confusing because of course PyQt4-4.7 satisfies >=PyQt4-4.5. Neither from that message, nor from the package list could I tell that PyQt4 would have been merged without the webkit useflag, which was the actual reason for the update being skipped. So I guess it would improve usability if there was some hint in the message, maybe like printing the pending update with its updated useflags, so instead of:

  ('ebuild', '/', 'dev-python/PyQt4-4.7', 'merge') conflicts with

print:

  ('ebuild', '/', 'dev-python/PyQt4-4.7[dbus,sql,svg,-webkit,X]', 'merge') conflicts with
...

Thanks for your time.

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-14 07:54:40 UTC
Now imagine something like this:

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
                                                                         
dev-libs/libpeas:0

  (dev-libs/libpeas-1.22.0:0/0::gentoo, ebuild scheduled for merge) conflicts with
    >=dev-libs/libpeas-1.2.0[gtk,python_targets_python3_5(-),python_targets_python3_6(-),python_targets_python3_7(-),-python_single_target_jython2_
7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),python_single_target_python3_7(+)] required by
 (media-gfx/entangle-2.0-4:0/0::gentoo, installed)

                                                                                                                                        
    dev-libs/libpeas[gtk,python,python_targets_python3_5(-),python_targets_python3_6(-),python_targets_python3_7(-),-python_single_target_jython2_7
(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),python_single_target_python3_7(+)] required by 
(net-news/liferea-1.12.7-1:0/0::gentoo, installed)


The message is entirely useless without making it clear *which* flags are actually required.
Comment 2 Larry the Git Cow gentoo-dev 2019-12-15 06:48:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=463b2d36f3d95760e48543f1f30410aa76267538

commit 463b2d36f3d95760e48543f1f30410aa76267538
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-15 05:30:13 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-15 06:27:26 +0000

    emerge: Show package USE in conflict messages
    
    Bug: https://bugs.gentoo.org/310009
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/_emerge/depgraph.py                | 26 +++++++++++++++++++++-----
 lib/_emerge/resolver/slot_collision.py | 17 +++++++++++++----
 2 files changed, 34 insertions(+), 9 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2019-12-15 23:00:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9557f104aa85b65c7d394c52c5c8d8727a111651

commit 9557f104aa85b65c7d394c52c5c8d8727a111651
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-15 22:53:50 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-15 22:56:34 +0000

    sys-apps/portage: Bump to version 2.3.82
    
     #310009 emerge: Show package USE in conflict messages
     #680456 display relevant FEATURES when unshare fails
     #693454 emerge-webrsync: support gentoo-YYYYMMDD snapshots
     #702146 emerge: drop FEATURES=distcc-pump support
     #702970 emerge-webrsync: enable xz snapshots for tarsync
    
    Bug: https://bugs.gentoo.org/701268
    Bug: https://bugs.gentoo.org/310009
    Bug: https://bugs.gentoo.org/680456
    Bug: https://bugs.gentoo.org/693454
    Bug: https://bugs.gentoo.org/702146
    Bug: https://bugs.gentoo.org/702970
    Package-Manager: Portage-2.3.82, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-2.3.82.ebuild | 272 +++++++++++++++++++++++++++++++++
 2 files changed, 273 insertions(+)