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

Bug 149903

Summary: equery depends lists wrong dependencies on disabled use flags
Product: Portage Development Reporter: cilly <cilly>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ansla80, gentoo, matrixhax0r, roman.zilka
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description cilly 2006-10-02 16:28:53 UTC
equery d samba
[ Searching for packages depending on samba... ]
dev-libs/cyrus-sasl-2.1.22

samba is not installed.

cyrus-sasl has not any useflag set to use samba:

dev-libs/cyrus-sasl-2.1.22  USE="authdaemond berkdb crypt gdbm pam ssl -java -kerberos -ldap -mysql -ntlm_unsupported_patch -postgres -sample -srp -urandom"

emerge --info
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18 i686)
=================================================================
System uname: 2.6.18 i686 VIA Samuel 2
Gentoo Base System version 1.12.5
Last Sync: Mon, 02 Oct 2006 20:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
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-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=i586 -Os -m3dnow -mmmx -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i586 -Os -m3dnow -mmmx -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow acl apache2 bash-completion berkdb bitmap-fonts bzip2 caps cli crypt cups curl dlloader dri elibc_glibc fortran gd gdbm gmp idn imap innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kernel_linux libg++ libwww linguas_en lm_sensors maildir mhash mmx mysql ncurses nls nptl nptlonly pam pam-mysql pcre perl png posix ppds pppd python readline reflection sasl session snmp spl ssl tcpd threads tiff truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xml zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 1 René 'Necoro' Neumann 2006-10-02 17:23:25 UTC
The problem is, that "equery d" checks every dependency, unregarding whether the specific use-flag is set or not...

I cannot say, if this is a bug or a feature ;)
Comment 2 David Li 2006-10-16 16:49:47 UTC
I've always thought that it was a feature that I want to turn off. It also does it for reverse deps I believe.

It's annoying because it makes equery useless for determining what packages actually depend on the package. Usually I end up giving up and adding it /etc/portage/package.mask and see what blocks in emerge -D world.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-17 01:07:31 UTC
(In reply to comment #1)
> The problem is, that "equery d" checks every dependency, unregarding whether
> the specific use-flag is set or not...

No idea either... :)
Comment 4 Paul Varner (RETIRED) gentoo-dev 2006-10-20 13:55:28 UTC
equery depends is broken for displaying anything beyond the basic dependencies. My suggestion is to install app-portage/udept and use it for looking at dependency information.

*** This bug has been marked as a duplicate of 81012 ***
Comment 5 Roman Žilka 2013-05-12 16:35:29 UTC
Is there any chance of re-opening this today? Bug 81012 started the idea of something being wrong with 'equery d' and there have been multiple duplicates. Is there still no change of opinion about bug 81012 (and this one as an implied side-effect), even after so many requests? I too must say that the behavior of 'equery d' is odd in its current form. I still (gentoolkit-0.3.0.7) get this behavior:

# equery d samba
 * These packages depend on samba:
app-misc/mc-4.8.7 (samba ? net-fs/samba)
www-client/elinks-0.12_pre5-r2 (samba ? net-fs/samba)

No samba installed; USE="-samba" globally.

# equery d libX11
 * These packages depend on libX11:
app-editors/vim-7.3.409 (X ? x11-libs/libX11)
app-misc/mc-4.8.7 (X ? x11-libs/libX11)
sys-apps/dbus-1.6.8 (X ? x11-libs/libX11)
sys-apps/groff-1.21 (X ? x11-libs/libX11)
sys-auth/consolekit-0.4.5_p20120320-r1 (x11-libs/libX11)
sys-devel/gcc-4.5.4 (gtk ? x11-libs/libX11)

... with USE="-X -gtk", which is the original concern of bug 81012. The reason why libX11 is installed has nothing to do with vim, mc, dbus, groff or gcc - only consolekit. Emerge itself deems so - there is no link in the depgraph between vim and libX11.