# emerge gtk-theme-switch Calculating dependencies ...done! >>> emerge (1 of 1) x11-themes/gtk-theme-switch-2.0.0_rc2-r2 to / >>> md5 src_uri ;-) gtk-theme-switch-2.0.0rc2.tar.gz >>> md5 src_uri ;-) gtk-theme-switch-2.0.0rc2b.patch.gz >>> Unpacking source... >>> Unpacking gtk-theme-switch-2.0.0rc2.tar.gz to /var/tmp/portage/gtk-theme-switch-2.0.0_rc2-r2/work >>> Unpacking gtk-theme-switch-2.0.0rc2b.patch.gz to /var/tmp/portage/gtk-theme-switch-2.0.0_rc2-r2/work /usr/local/portage/x11-themes/gtk-theme-switch/gtk-theme-switch-2.0.0_rc2-r2.ebuild: line 21: epatch: command not found /usr/local/portage/x11-themes/gtk-theme-switch/gtk-theme-switch-2.0.0_rc2-r2.ebuild: line 22: epatch: command not found >>> Source unpacked. cc -o switch2 switch.c -O2 -Wall -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 switch.c: In function `preview_clicked': switch.c:129: warning: implicit declaration of function `GTK_COMBO' switch.c:129: error: invalid type argument of `->' switch.c: In function `apply_clicked': switch.c:160: error: invalid type argument of `->' switch.c: In function `dock': switch.c:342: warning: implicit declaration of function `gtk_combo_new' switch.c:342: warning: assignment makes pointer from integer without a cast switch.c:344: warning: implicit declaration of function `gtk_combo_set_popdown_strings' make: *** [switch] Error 1 # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041102-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.6 distcc 2.18.2 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe" CHOST="i386-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.freenet.de/pub/ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage" USE="X aalib acpi aim alsa apache2 apm audiofile avi berkdb bitmap-fonts bmp bzlib cdr crypt cups curl curlwrappers divx4linux dvd encode esd ethereal exif exiscan exiscan-acl f77 fam fftw flac foomaticdb fortran ftp gd gdbm gif gnutls gphoto2 gpm gtk gtk2 icq imagemagick imap imlib jabber jpeg libg++ libwww mad maildir mailwrapper mikmod mmap mmx mng motif mozilla mpeg mpi ncurses nls offensive oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline recode sdl slang sndfile spell sse ssl svg svga sysvipc tcltk tcpd tetex theora tiff truetype unicode usb wxwindows x86 xine xml xml2 xmms xpm xv xvid zlib" That "/usr/local/portage/x11-themes/gtk-theme-switch/gtk-theme-switch-2.0.0_rc2-r2.ebuild: line 22: epatch: command not found" looks mighty fishy to me.
Adding a "inherit eutils" near the top of the ebuild fixes this for me.
gtk-theme-switch in _portage_ already inherits eutils. You're using the one in your overlay, for which we are not responsible.
Damn do I feel stupid now. Thanks for getting me on the right track.