Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389009 - elibtoolize fails in overlays as it cannot locate eclass/ELT-patches/
Summary: elibtoolize fails in overlays as it cannot locate eclass/ELT-patches/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 389045 389205 390745 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-30 18:58 UTC by William Roberts
Modified: 2011-11-18 17:32 UTC (History)
5 users (show)

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


Attachments
cross-avr-binutils.log (cross-avr-binutils.log,4.29 KB, text/plain)
2011-11-03 21:48 UTC, Cody Schafer
Details
cross-avr-info.log (cross-avr-info.log,16.71 KB, text/plain)
2011-11-03 21:49 UTC, Cody Schafer
Details
emerge debug log (log,332.41 KB, text/plain)
2011-11-04 02:48 UTC, Cody Schafer
Details
emerge --debug cross-armv7a-softfloat-linux-gnueabi/binutils &> log (log,370.90 KB, text/plain)
2011-11-04 02:59 UTC, William Roberts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Roberts 2011-10-30 18:58:31 UTC
I have been trying to rebuild a new crossdev environment for armv7a-softfloat-linux-gnueabi, but have been unsuccessful because of a portage required patch that has gone rogue.  The interesting part is, the patch request cannot be found in any of the ebuilds that I have farmed through.  After running crossdev to build the initial stage for the arm environment, it stops on sys-devel/binutils complaining about a patch request.

So far I have eliminated a few different possibilities.  It is not portage itself, I have removed /usr/portage and re-syned portage to see if there was an old ebuild stuck.  It isn't just one ebuild either, I have tried all of the existing versions of binutils.  I also rebuilt all of system to see if that might have caused problems too.

roberts@banshee ~ $ emerge --info =cross-arm-linux-gnueabi/binutils-2.21.1-r1
Portage 2.1.10.31 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4,
2.6.39-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname:
Linux-2.6.39-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9000_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sat, 29 Oct 2011 19:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage rion sunrise proaudio gentoo-arm
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/
/etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache digest distlocks
ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms
strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/rion
/usr/local/portage/sunrise /usr/local/portage/pro-audio
/usr/local/portage/gentoo-arm"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apm avi bash-completion berkdb branding bzip2
caps cddb cdparanoia cdr cli consolekit cracklib crypt css curl custom-cflags
cxx daap dbus device-mapper divx dri dts dv dvb dvdread embedded encode exif
expat faac faad fam fbcondecor ffmpeg fftw firefox flac fontconfig gdbm gif
glitz gpm gstreamer hd iconv ieee1394 imlib imlib2 iphone ipod ithreads java
joystick jpeg laptop libcaca lm_sensors mad mdnsresponder-compat mjpeg mmx
modules mp3 mpeg mplayer mtp mudflap multilib musicbrainz mysql ncurses
networkmanager nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png
policykit posix pppd pulseaudio qt3support quicktime readline rss samba sdl
session sndfile speex sse sse2 ssl static-libs subtitles svg sysfs theora
threads tiff transcode truetype udev unicode usb v4l vcd video vlc vorbis wifi
wma x264 xcomposite xine xinerama xml xml2 xorg xscreensaver xv xvid xvmc zlib"
ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter
mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words
flow plan stage tables krita karbon braindump" CAMERAS="ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin
garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US"
PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv
nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p
iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=========================

banshee portage # emerge -pqv
=cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1
[ebuild  N    ] cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 
USE="static-libs -multislot -multitarget -nls -test -vanilla" 

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

banshee portage # emerge =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1
 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

 * 
 * The FEATURES=digest setting can prevent corruption from being noticed.
 * The `repoman manifest` command is the preferred way to generate
 * manifests and it is capable of doing an entire repository or category at
 * once.
 * 
Calculating dependencies              ... done!
>>> Creating Manifest for /usr/local/portage/cross-armv7a-unknown-linux-gnueabi/binutils

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 from x-portage

!!! Directory does not exist: '/usr/lib64/ccache/bin'
!!! Disabled FEATURES='ccache'
 * binutils-2.21.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * binutils-2.21.1-patches-1.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
>>> Unpacking source...
>>> Unpacking binutils-2.21.1.tar.bz2 to /var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work
>>> Unpacking binutils-2.21.1-patches-1.3.tar.bz2 to /var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work
 * Applying various patches (bugfixes/updates) ...
 *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch ...                     [ ok ]
 *   08_all_binutils-RPATH_ENVVAR-smack.patch ...                        [ ok ]
 *   12_all_sh-targets.patch ...                                         [ ok ]
 *   15_all_alpha-relax-pr12608.patch ...                                [ ok ]
 *   16_all_mips-link-segv-pr12845.patch ...                             [ ok ]
 *   20_all_ld-sysroot.patch ...                                         [ ok ]
 *   30_all_binutils-2.20-flexible-tests.patch ...                       [ ok ]
 *   40_all_binutils-ld-gcc-4.6-tests.patch ...                          [ ok ]
 *   63_all_binutils-2.21.1-pt-pax-flags-20110918.patch ...              [ ok ]
 *   66_all_binutils-2.18.50.0.2-warn-textrel.patch ...                  [ ok ]
 *   75_all_binutils-default-test-flags.patch ...                        [ ok ]
 *   76_all_use-new-ld-dtags.patch ...                                   [ ok ]
 *   77_all_generate-gnu-hash.patch ...                                  [ ok ]
 *   78_all_use-relro.patch ...                                          [ ok ]
 *   91_all_libiberty-pic.patch ...                                      [ ok ]
 * Done with patching
 * Fixing misc issues in configure files
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                 [ ok ]
 *   Updating config.guess                                               [ ok ]
 * Running elibtoolize in: binutils-2.21.1/

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 failed (unpack
phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3261:  Called toolchain-binutils_src_unpack
 *   environment, line 4070:  Called tc-binutils_apply_patches
 *   environment, line 3435:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1300:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed
to apply!";
 * 
 * If you need support, post the output of 'emerge --info
=cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv
=cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at
'/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/environment'.
 * S:
'/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work/binutils-2.21.1'

>>> Failed to emerge cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1, Log file:

>>>  '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'

 * Messages for package cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1:

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 failed (unpack
phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3261:  Called toolchain-binutils_src_unpack
 *   environment, line 4070:  Called tc-binutils_apply_patches
 *   environment, line 3435:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1300:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed
to apply!";
 * 
 * If you need support, post the output of 'emerge --info
=cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv
=cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at
'/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/environment'.
 * S:
'/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work/binutils-2.21.1'

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Reproducible: Always

Steps to Reproduce:
1. crossdev -t armv7a-softfloat-linux-gnueabi
2. emerge cross-armv7a--softfloat-linux-gnueabi/binutils
3. (i have tried various versions of binutils provided in /usr/portage/sys-devel/binutils/)
Actual Results:  
Error's on: * Done with patching
 * Fixing misc issues in configure files
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                 [ ok ]
 *   Updating config.guess                                               [ ok ]
 * Running elibtoolize in: binutils-2.18/

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4 failed (unpack phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3261:  Called toolchain-binutils_src_unpack
 *   environment, line 4070:  Called tc-binutils_apply_patches
 *   environment, line 3435:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1300:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed to apply!";
 * 
 * If you need support, post the output of 'emerge --info =cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4',
 * the complete build log and the output of 'emerge -pqv =cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4/temp/environment'.
 * S: '/var/tmp/portage/cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4/work/binutils-2.18'


Expected Results:  
Success
Comment 1 Agostino Sarubbo gentoo-dev 2011-10-30 23:52:55 UTC
Please do not add arches on your own.
Comment 2 SpanKY gentoo-dev 2011-11-01 16:11:54 UTC
*** Bug 389045 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2011-11-01 20:13:10 UTC
*** Bug 389205 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2011-11-03 04:10:47 UTC
run `emerge --debug pkg >& log` and post the log file as an attachment
Comment 5 Cody Schafer 2011-11-03 21:48:09 UTC
I have the same issue when running `crossdev -t avr` when no cross-avr/* packages exsist. 

~/g/overlay $ sudo crossdev -t avr
---------------------------------------------------------------------
 * crossdev version:      20111018
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  avr-libc-[latest]

 * CROSSDEV_OVERLAY:      /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~
 * leaving sys-devel/binutils in /usr/local/portage
 * leaving sys-devel/gcc in /usr/local/portage
 * leaving dev-embedded/avr-libc in /usr/local/portage
 * leaving sys-devel/gdb in /usr/local/portage
 * leaving dev-util/insight in /usr/local/portage
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~
 * Log: /var/log/portage/cross-avr-binutils.log
 * Emerging cross-binutils ...

 * binutils failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log
 * /var/log/portage/cross-avr-binutils.log
~/g/overlay $
Comment 6 Cody Schafer 2011-11-03 21:48:40 UTC
Created attachment 291617 [details]
cross-avr-binutils.log
Comment 7 Cody Schafer 2011-11-03 21:49:01 UTC
Created attachment 291619 [details]
cross-avr-info.log
Comment 8 SpanKY gentoo-dev 2011-11-04 02:06:43 UTC
someone needs to post the log i requested
Comment 9 Cody Schafer 2011-11-04 02:48:08 UTC
Created attachment 291623 [details]
emerge debug log

result of `emerge --debug cross-avr/binutils &> log`
Comment 10 William Roberts 2011-11-04 02:59:53 UTC
Created attachment 291625 [details]
emerge --debug cross-armv7a-softfloat-linux-gnueabi/binutils &> log

Here is the results of...

emerge --debug cross-armv7a-softfloat-linux-gnueabi/binutils &> log
Comment 11 SpanKY gentoo-dev 2011-11-06 08:34:23 UTC
++++ ELT_PATCH_DIR=/usr/local/portage/rion/eclass/ELT-patches
that should have been set to /usr/portage/eclass/ELT-patches.  maybe Zac knows why ECLASSDIR isn't being set based off of PORTDIR.

Cody: i think your setup is wrong ... you shouldn't be listing /usr/portage in PORTDIR_OVERLAY
Comment 12 Zac Medico gentoo-dev 2011-11-06 18:07:14 UTC
(In reply to comment #11)
> ++++ ELT_PATCH_DIR=/usr/local/portage/rion/eclass/ELT-patches
> that should have been set to /usr/portage/eclass/ELT-patches.  maybe Zac knows
> why ECLASSDIR isn't being set based off of PORTDIR.

It looks like Cody has PORTDIR=/usr/local/portage/rion, so that's why ECLASSDIR points there.
Comment 13 Zac Medico gentoo-dev 2011-11-06 18:33:17 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > ++++ ELT_PATCH_DIR=/usr/local/portage/rion/eclass/ELT-patches
> > that should have been set to /usr/portage/eclass/ELT-patches.  maybe Zac knows
> > why ECLASSDIR isn't being set based off of PORTDIR.
> 
> It looks like Cody has PORTDIR=/usr/local/portage/rion, so that's why ECLASSDIR
> points there.

Alternatively, it could be that /usr/local/portage/metadata/layout.conf (the repos where the ebuild came from) has a masters setting in which the first master is /usr/local/portage/rion (a separate repo, the fact that it's nested in the /usr/local/portage being irrelevant). That will cause PORTDIR and ECLASSDIR to be overridden.
Comment 14 Zac Medico gentoo-dev 2011-11-06 18:39:13 UTC
Actually, the /usr/local/portage/rion master is William's, not Cody's.

Cody has a similar problem, but his master is /var/lib/layman/zugaina. If it is the masters setting in metadata/layout.conf that's causing this, they can add 'gentoo' as the first master in there, and that will cause ECLASSDIR to point to the gentoo repo.
Comment 15 Zac Medico gentoo-dev 2011-11-06 19:03:44 UTC
Also, be aware that it's possible to use /etc/portage/repos.conf to override masters from layout.conf.
Comment 16 Zac Medico gentoo-dev 2011-11-06 21:34:40 UTC
The "Repositories" section of `emerge --info --verbose` will be helpful for debugging this. It shows the masters for each repository.
Comment 17 SpanKY gentoo-dev 2011-11-06 22:53:43 UTC
sounds like user misconfiguration
Comment 18 Cody Schafer 2011-11-07 08:48:18 UTC
Disabling the crossdev autoconfig of /usr/local/portage/metadata/layouts.conf and manually setting it to "masters = gentoo" fixed it.
Comment 19 SpanKY gentoo-dev 2011-11-07 16:32:27 UTC
(In reply to comment #18)

that doesn't make much sense.  the only thing crossdev writes to layouts.conf is the one line you said:
masters = gentoo
Comment 20 Cody Schafer 2011-11-08 18:04:15 UTC
The following was the contents of metadata/layout.conf as generated by crossdev
----
# Autogenerated and managed by crossdev
# Delete the above line if you want to manage this file yourself
masters = zugaina kde sunrise progress java-overlay gentoo
----

Is this not the intended behavior?

It is somewhat inconvenient that by default it breaks things when I add naughty overlays.
Comment 21 Zac Medico gentoo-dev 2011-11-08 18:07:55 UTC
(In reply to comment #20)
> The following was the contents of metadata/layout.conf as generated by crossdev
> ----
> # Autogenerated and managed by crossdev
> # Delete the above line if you want to manage this file yourself
> masters = zugaina kde sunrise progress java-overlay gentoo
> ----
> 
> Is this not the intended behavior?
> 
> It is somewhat inconvenient that by default it breaks things when I add naughty
> overlays.

I don't know what crossdev does, but I'm guessing that it generated masters from your PORTDIR_OVERLAY setting. That's dangerous because then ECLASSDIR will point to whatever the leftmost master is (zugaina in this case).
Comment 22 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-11-16 18:50:17 UTC
*** Bug 390745 has been marked as a duplicate of this bug. ***
Comment 23 SpanKY gentoo-dev 2011-11-18 17:32:12 UTC
for the people using latest crossdev and hitting this failure, this is fixed:
  http://sources.gentoo.org/eclass/libtool.eclass?r1=1.95&r2=1.96

for people not using crossdev, it's most likely an error in your configuration