xmltv-0.39 will depend on Tk-TableMatrix and perl-tk (which in turn depends on X) if XML_OPTS has tv_check defined. So why does portage want to install X on my headless machine when i execute this command? root@starserver /home/moonlite # XMLTV_OPTS="tv_grab_se" emerge -uav --tree xmltv These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild U ] media-tv/xmltv-0.5.39 [0.5.37-r1] 420 kB [ebuild N ] x11-terms/xterm-204 -Xaw3d -toolbar +truetype -unicode 698 kB [ebuild U ] sys-apps/utempter-0.5.5.6 [0.5.5.5] 20 kB [ebuild N ] dev-perl/Tk-TableMatrix-1.1-r1 0 kB [ebuild N ] dev-perl/perl-tk-804.027 0 kB [ebuild N ] x11-base/xorg-x11-6.8.2-r4 -3dfx +3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx +nls -nocxx -opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 428 kB [ebuild N ] x11-misc/ttmkfdir-3.0.9-r3 19 kB [ebuild U ] media-libs/libpng-1.2.8 [1.2.7] -doc 375 kB [ebuild U ] dev-perl/WWW-Mechanize-1.12 [1.0301] 99 kB [ebuild U ] dev-perl/IO-Socket-SSL-0.96 [0.94] 31 kB [ebuild U ] dev-perl/Net-SSLeay-1.25 [1.23] 75 kB [ebuild U ] dev-perl/XML-Twig-3.17 [3.15-r1] +nls 255 kB [ebuild U ] dev-perl/HTML-Tree-3.18 [3.17] 113 kB [ebuild U ] dev-perl/HTML-LinkExtractor-0.13 [0.11] 15 kB [ebuild U ] dev-perl/libwww-perl-5.800 [5.79] +ssl 223 kB [ebuild U ] dev-perl/Compress-Zlib-1.35 [1.33] 146 kB [ebuild U ] dev-perl/HTML-Parser-3.45 [3.34-r1] -unicode 80 kB [ebuild U ] dev-perl/libnet-1.19 [1.16] 63 kB [ebuild U ] dev-perl/Crypt-SSLeay-0.51 [0.49] 114 kB [ebuild U ] perl-core/Storable-2.13 [1.0.14] 131 kB [ebuild U ] dev-perl/Lingua-EN-Numbers-Ordinate-1.02 [0.01] 5 kB Reproducible: Always Steps to Reproduce: 1. XMLTV_OPTS="tv_grab_se" emerge -uav --tree xmltv 2. 3. sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.11.92.0.12.3-r2, 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" 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/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext alsa apm avi bash-completion berkdb bitmap-fonts cdr crypt curl dba directfb dvd dvdread eds emboss encode fam fbcon flac foomaticdb fortran gd gdbm gpm gstreamer guile imagemagick imlib ipv6 java javascript joystick jpeg libg++ libmpeg3 libwww lirc live mad matrox mikmod mmx mmx2 mmxext mp3 mpeg mysql ncurses nls nntp nptl nptlonly ogg oggvorbis oss pam perl png python quicktime readline sdl slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts v4l v4l2 vorbis win32codecs xml xml2 xv zlib video_cards_matrox userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Ok, there seems to be a duplicate out there, and this seems to be because of some portage cache needing to be removed. This is pretty serious though. The behavior is totally unexpected for the user. I googled for 2 hours before founding this out.
Please retest this..