Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17031 - emerge does not always rerun ebuild scripts to read dependancies
Summary: emerge does not always rerun ebuild scripts to read dependancies
Status: RESOLVED DUPLICATE of bug 25013
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-07 09:37 UTC by Thomas Weidner
Modified: 2011-10-30 22:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2003-03-07 09:37:52 UTC
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.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-07 11:28:22 UTC
please paste
#emerge info
Comment 2 Thomas Weidner 2003-03-07 17:17:14 UTC
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"
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-03-08 01:21:22 UTC
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.
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-03-08 01:22:03 UTC
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.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-03-08 01:24:50 UTC
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"
Comment 6 SpanKY gentoo-dev 2003-03-08 02:18:17 UTC
umm, that is wrong ...
if you inherit an eclass, you should do:
newdepend "blah blah"
Comment 7 SpanKY gentoo-dev 2003-08-18 16:15:49 UTC

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