Hi, after playing around with the licq ebuild,which gave wrong dependancies for the given use flags, i think i found the problem. use kde && need-kde 3.0 causes problems. need-kde seems to alter ${DEPEND}. so here is what seems to happen: 1. USE="kde" emerge -p licq runs the ebuild script with the given use flags and caches the dependancies. 2. USE="-kde" emerge -p licq does not run the ebuild script,but uses the old (cached) dependancies,which are wrong for the given use flags,as with -kde need-kde 3.0 whould not have been run. i hope this report isn't to confusing,my english is bad and i am poor at expressing myself.
please paste #emerge info
thomas@borg-cube thomas $ emerge info Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) XP 1800+ GENTOO_MIRRORS=" http://ftp.easynet.nl/mirror/gentoo//" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif imlib jpeg gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis pdflib png qt quicktime sdl spell svga truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline X gpm tcpd pam ssl perl python opengl cdr -gtk -kde -java" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CXXFLAGS="-march=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="~x86 x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache distcc userpriv usersandbox"
This is a non-obvious wrapping-Portage-variables-in-BASH-controls problem that isn't fixable or detectable by portage. A possible fix is if use kde; then need-kde 3.0 DEPEND="kde? ( $DEPEND virtual/glibc )" RDEPEND="kde? ( $RDEPEND virtual/glibc )" Need to make sure that required dependencies get added after that though.
Ok... Mozilla isn't playing nice with me... This is a non-obvious wrapping-Portage-variables-in-BASH-controls problem that isn't fixable or detectable by portage. A possible fix is if use kde; then need-kde 3.0 DEPEND="kde? ( $DEPEND virtual/glibc )" RDEPEND="kde? ( $RDEPEND virtual/glibc )" fi Need to make sure that required dependencies get added after that though.
Ok... No if... That'd be the same problem. Should work like this though. Just define the required deps AFTER this. need-kde 3.0 DEPEND="kde? ( $DEPEND virtual/glibc )" RDEPEND="kde? ( $RDEPEND virtual/glibc )" ... later ... DEPEND="$DEPEND require/packages" RDEPEND="$RDEPEND other/requires"
umm, that is wrong ... if you inherit an eclass, you should do: newdepend "blah blah"
*** This bug has been marked as a duplicate of 25013 ***