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

Bug 102242

Summary: Portage inherits eclasses from overlays, even when ebuilds are from normal tree
Product: Portage Development Reporter: Hagai Kariti <hobbithk>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hagai Kariti 2005-08-12 07:34:22 UTC
Hi.
It happened to me twice already: I have an overlay with an 'eclass' folder in
it, and when I emerge something (that's in the normal tree), it inherited the
class from the overlay instead (or in addition to) the one in the package's
tree, and caused a compilation failure. As soon as I removed the overlay
everything worked.

Reproducible: Always
Steps to Reproduce:
1. Create an overlay with an 'eclass' dir in it.
2. Put a class which also exists in the normal tree, but that it different, in
the eclass dir.
2. Emerge a package which uses this class
3. Watch it break

Actual Results:  
gnome-vfs and styleclock (I assume other packages can break too) broke

Expected Results:  
Portage should source the eclass only in the tree from which the compiling
package is (or, always source the eclass from the normal tree and from the
package's overlay's eclass)

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4,
glibc-2.3.4.20050125-r1, 2.6.12-nitro5 i686)
=================================================================
System uname: 2.6.12-nitro5 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa apm arts avi bash-completion berkdb bidi
bindist bitmap-fonts bmp bzlib cdparanoia cdr cracklib crypt cups curl dv dvd
dvdr eds emboss encode exif fam ffmpeg flac foomaticdb ftp gdbm gif gnome gnutls
gphoto2 gpm gstreamer gtk gtk2 hal icq imagemagick imagemagik imap imlib jpeg
kde lcms libcaca libg++ libwww mad maildir mikmod mime mmx mozilla mp3 mpeg msn
ncurses nls nptl offensive ogg oggvorbis opengl oscar pam pcre pdflib perl png
posix python qt quicktime readline samba sasl scanner sdl sharedmem snmp sockets
spell sse sse2 ssl svg svga sysfs tcltk tcpd tiff truetype truetype-fonts
type1-fonts unicode usb vcd videos vorbis xine xml xml2 xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-08-12 07:35:47 UTC
it's supposed to work this way