Bug 54273 - emerge....bad dependencies (bug combo)
Bug#: 54273 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: thewalrus@dadi.kicks-ass.org
Component: Applications
URL: 
Summary: emerge....bad dependencies (bug combo)
Keywords:  
Status Whiteboard: 
Opened: 2004-06-17 22:51 0000
Description:   Opened: 2004-06-17 22:51 0000
I compiled mplayer, libsdl, xinelib and a few other packages with USE="aa".
However I changed my mind, emerge unmerge aalib and took the USE flag out.
I ran a revdep-rebuild and all the packages that needed aalib got recompiled.
Now, a emerge -upD world gives me aalib.
When I ran qpkg -q aalib it gave me all the packages recompiled, that at this time had no dependency on aalib.
This is the first bug, as emerge -u whatever_pakages does not appear to update /var/db/package/DEPEND and RDEPEND.
I took out by hand all the fictional dependencies to aalib from this files from their respectful programs.
Now,
qpkg -q aalib
media-libs/aalib-1.4_rc4-r2
DEPENDED ON BY:

This what I get. I figure everything is cool, since nothing depends on aalib anymore.
However emerge -puD world still wants to emerge aalib.

This is very bad, since in the end you end up with a very big list of dependencies not really needed. And only now it all makes sence and I know why my last gentoo install, after using it wanted to emerge all sorts of stuff on its own.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.5-gentoo-r1) 
================================================================= 
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1400MHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium3 -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo 
http://ftp.lug.ro/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X acpi adns alsa apache2 arts audiofile avi berkdb cdr cjk crypt cups dga 
directfb divx4linux dvb dvd dvdr encode esd ethereal fbcon flac flexresp 
foomaticdb gd gdbm gif gnome gnupg gnutls gpg gphoto2 gpm gstreamer gtk gtk2 
ieee1394 imap imlib ipv6 java javascript jpeg kde ldap libcaca libg++ libwww 
mad maildir mailwrapper md5sum mikmod mmx monkey motif mpeg nagios-dns 
nagios-ntp nagios-ping nagios-ssh nas ncurses nls oggvorbis opengl oss pam pda 
pdflib perl png prelude python qt quicktime readline samba scanner sdl slang 
slp smb snmp spell sse sse2 ssl svga tcltk tcpd theora tiff truetype usb wifi 
wmf x86 xml xml2 xmms xosd xrandr xv xvid yahoo zlib"

------- Comment #1 From Mr. Bones. 2004-06-17 23:54:37 0000 -------
Check /var/cache/edb/world for aalib

------- Comment #2 From Dadi 2004-06-18 00:42:57 0000 -------
checked /var/cache/edb/world. No aalib in there.
I emerge sync-ed and still emerge -pvDu world wants to install aalib.

------- Comment #3 From Mr. Bones. 2004-06-18 01:05:50 0000 -------
Try using emerge -d and see which package pulls it in.

------- Comment #4 From Seemant Kulleen (RETIRED) 2004-06-18 01:19:31 0000 -------
do this:

find /var/db/pkg -name '*DEPEND' | xargs grep aalib


------- Comment #5 From Dadi 2004-06-18 01:54:06 0000 -------
Progress has been made.
I checked all the *DEPEND files and found xine-ui needing the lib. As I would not expect revdep-rebuild to remerge xine-ui, as I guess it should, I would at least expect qpkg -q aalib to tell me about xine-ui.
Ok.
No I emerge unmerge xine-ui to be sure and emerge -pv xine-ui. Even if USE="-aalib" in xine-ui, it still wants to install aalib.
I check the xine-ui.0.99.1.ebuild and find this:

directfb? ( media-libs/aalib
>=dev-libs/DirectFB-0.9.9 )

How could this be? Is this a bug in xine-ui ebuild? I use directfb, so it goes there and wants to install aalib.
However, after taking the aalib line out of directfb?(), everything is ok.
What should I do, should I post this as a xine-ui ebuild bug?

And let's not forget...the main point of this bug(or at least half of it) is about emerge...which does not change the DEPEND files in /var/db after the USE flags have been changed and the package reemerged.
 
Thanks for all your advice, it got me out of the problem.
Dadi

------- Comment #6 From Mr. Bones. 2004-06-18 11:53:32 0000 -------
Sounds like a bug in the xine-ui ebuild to me.  I'll toss this bug over there. 

------- Comment #7 From Diego E. 'Flameeyes' Pettenò 2005-03-21 01:07:03 0000 -------
Everything here is already fixed, I think.
I've also submitted a cleanup for xine-ui which was the mayor blocker.

------- Comment #8 From Chris White (RETIRED) 2005-03-28 21:19:12 0000 -------
Woh.. fixed in cvs.. bad Chris.  Thanks for reporting and using Gentoo!