equery depends/depgraph does not account for some dependences being inactive due to package compiled with a correspondent USE flag off. Example, I have "-xprint" in /etc/make.conf $ emerge -pv libXaw [ebuild R ] x11-libs/libXaw-1.0.2 USE="-debug -xprint" 0 kB $ head -25 /usr/portage/x11-libs/libXaw/libXaw-1.0.2.ebuild | tail -10 IUSE="xprint" RDEPEND="x11-libs/libX11 x11-libs/libXt x11-libs/libXmu x11-libs/libXpm x11-proto/xproto xprint? ( x11-libs/libXp )" DEPEND="${RDEPEND} sys-apps/ed" So we see that dependence on libXp is conditional on xprint being set, which is not. But ... $ equery depends libXp x11-base/xorg-x11-7.0-r1 x11-apps/xdpyinfo-1.0.1 x11-libs/libXaw-1.0.2 x11-libs/openmotif-2.2.3-r9 shows libXaw as dependent on libXp. $ equery depgraph libXaw also shows dependency on libXp and further hierarchy. Interesting that the old query package from portage-utils shows stuff correctly $ qdepends libXp x11-libs/libXaw-1.0.2: x11-libs/libX11 x11-libs/libXt x11-libs/libXmu x11-libs/libXpm x11-proto/xproto sys-apps/ed sys-devel/automake sys-devel/autoconf sys-devel/libtool >=dev-util/pkgconfig-0.18 >=x11-misc/util-macros-0.99.2 >=sys-devel/binutils-2.16.1-r3 correctly shows no libXp dependecy It should not be difficult to teach equery to respect conditions on dependencies taht arise from USE flags. ------------------------------------------------------------ emerge --info Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14-gentoo-r5 x86_64) ================================================================= System uname: 2.6.14-gentoo-r5 x86_64 AMD Opteron(tm) Processor 848 Gentoo Base System version 1.6.15 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=opteron -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig buildpkg confcache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X avi berkdb bitmap-fonts bzip2 cli crypt cups dlloader eds emboss encode foomaticdb fortran gif gtk gtk2 isdnlog jpeg lzw lzw-tiff mbox mp3 mpeg ncurses nls nptl pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode xorg xpm zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_mach64 video_cards_vesa" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of 124053 ***