Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138249 - emerge --tree does not show packages that are already installed
Summary: emerge --tree does not show packages that are already installed
Status: RESOLVED DUPLICATE of bug 109224
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-27 12:26 UTC by Jetchko Jekov
Modified: 2007-01-10 04:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log file generated with emerge -uDpv world --debug (emerge.debug.gz,35.48 KB, application/x-gzip)
2006-06-27 12:50 UTC, Jetchko Jekov
Details
emerge -d -uDpvt azureus (azureus.debug,126.00 KB, text/plain)
2006-11-20 11:51 UTC, Petteri Räty (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jetchko Jekov 2006-06-27 12:26:53 UTC
emerge -uDav world pulls x11-libs/qt into system but i can't see which package triggers that install. 
I have qt3 qt4 in my USE (from profile)

emerge -uDpv world --tree

These are the packages that would be merged, in reverse order:

Calculating world dependencies... done!
[nomerge      ] net-fs/samba-3.0.22  USE="acl async cups ldap pam python quotas readline winbind xml -automount -doc -examples -kerberos -ldapsam -libclamav -mysql -oav -postgres -swat -syslog"
[nomerge      ]  net-nds/openldap-2.2.28-r3  USE="berkdb crypt ipv6 perl readline samba ssl tcpd -debug -gdbm -kerberos -minimal -odbc -sasl -slp"
[ebuild  N    ]      x11-libs/qt-3.3.6-r1  USE="cups gif ipv6 opengl -debug -doc -examples -firebird -immqt -immqt-bc -mysql -nas -nis -odbc -postgres -sqlite -xinerama" 14,224 kB

Total size of downloads: 14,224 kB
Comment 1 Zac Medico gentoo-dev 2006-06-27 12:36:13 UTC
Please attach ouput of the command with --debug enabled.
Comment 2 Jetchko Jekov 2006-06-27 12:50:29 UTC
Created attachment 90304 [details]
log file generated with emerge -uDpv world --debug
Comment 3 Zac Medico gentoo-dev 2006-06-27 16:53:33 UTC
The debug output shows that it's being pulled in as dependencies of packages that are already installed.  If you add the --emptytree option then the output should make more sense.
Comment 4 Zac Medico gentoo-dev 2006-06-27 16:56:58 UTC
The --debug output shows that all the qt dependencies are conditional on USE="qt3", so if you add -qt3 to you flags then it should no longer get pulled in.
Comment 5 Jetchko Jekov 2006-06-27 23:23:30 UTC
Well I know how to solve my problem
the idea for bug report is that emerge -uDpv --tree does not show which package
triggers install of x11-libs/qt. I think that is purpose of --tree flag or I'm missing something?
Comment 6 Zac Medico gentoo-dev 2006-06-28 00:03:04 UTC
Normally, it only shows packages that would be installed.  Like I said before, you can use --emptytree to see all packages.
Comment 7 Jetchko Jekov 2006-06-28 00:07:48 UTC
I don't agree
In my example:
 samba does not needed to be  installed [nomerge]
 same for openldap

So, why then these packages appears in output? At least this is confusing as nor samba, nor openldap depends directly of x11-libs/qt
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2006-06-28 00:19:17 UTC
Actually, --tree is meant to show the already-installed-packages that are causing package installs/upgrades as well. The "nomerge" entries in the OP are examples of this but for some reason it's not working correctly in this case. The known case of when it doesn't work is with PDEPENDs - caused by the parent not being added to the graph.
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2006-11-20 11:51:13 UTC
Created attachment 102424 [details]
emerge -d -uDpvt azureus 

I am having similar problems:


pena jasperreports # emerge -uDpvt azureus

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[nomerge      ] x11-themes/gnome-icon-theme-2.16.0.1  USE="-debug"
[nomerge      ]  gnome-base/libgnomeui-2.16.1  USE="jpeg -debug -doc"
[nomerge      ]   gnome-base/libbonoboui-2.16.0  USE="-X -debug -doc"
[nomerge      ]    gnome-base/libgnome-2.16.0  USE="esd -debug -doc -static"
[ebuild     U ]     gnome-base/gnome-vfs-2.16.3 [2.16.2] USE="hal samba ssl -avahi -debug -doc -gnutls -ipv6" 1,855 kB
[nomerge      ] dev-java/log4j-1.2.14  USE="javamail -doc -jms -jmx -source"
[nomerge      ]  dev-java/sun-javamail-1.4  USE="-doc -source"
[ebuild     U ]   sys-apps/portage-2.1.2_rc2-r1 [2.1.2_rc2] USE="-build -doc (-epydoc) (-selinux)" LINGUAS="-pl" 4 kB
Comment 10 Zac Medico gentoo-dev 2006-11-20 21:15:28 UTC
The current --tree display algorithm focuses on a linear ordering of nodes that is arbitrary in many cases due to the non-linear structure of the dependency tree.  It think the fix for this bug will be a new algorithm that displays every single relationship in the dependency tree, showing each node multiple times if necessary.
Comment 11 Zac Medico gentoo-dev 2007-01-10 04:12:08 UTC

*** This bug has been marked as a duplicate of bug 109224 ***