I run a webserver and do not want to install X. Not long ago, I was doing my normal maintenance updates and xterm shows up on the list of packages to be installed. I ran "emerge -uDvp --tree world" and see that there are no dependencies that are requiring xterm. Also, I did the following: # equery depends x11-term/xterm [ Searching for packages depending on x11-term/xterm... ] # grep x11 /var/lib/portage/world # esearch -c -F -nc x11 | grep '^..I' This tells me: - I don't have anything that depends on xterm. - I don't have anything in my world file related to x11. - I don't have anything currently installed related to x11. But xterm is still trying to get installed. Is this a Gentoo bug?
So package.mask it and find out what depends on it. We can't guess.
I didn't think of package.mask. I thought one of the other methods would show if xterm was a dependency of something... netpbm (which I installed for Gallery) is requiring it. If I unmerge netpbm xterm (and Xorg) go away when I do "emerge -uDvp world". Should netpbm not require X libs?
(In reply to comment #2) > Should netpbm not require X libs? It doesn't. We really need to know your use flags, reopen with emerge -pv netpbm output and emerge --info.
(In reply to comment #3) > reopen with emerge -pv netpbm output and emerge --info. # emerge -vp netpbm These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-libs/giflib-4.1.4 -X -rle 591 kB [ebuild N ] media-libs/urt-3.1b-r1 -X +gif -gs -tiff 992 kB [ebuild N ] media-libs/jbigkit-1.6-r1 396 kB [ebuild N ] x11-base/opengl-update-2.2.1 38 kB [ebuild N ] media-libs/freetype-2.1.9-r1 -bindist -doc +zlib 969 kB [ebuild N ] media-libs/fontconfig-2.2.3 732 kB [ebuild N ] x11-apps/ttmkfdir-3.0.9-r3 19 kB [ebuild N ] x11-base/xorg-x11-6.8.2-r6 -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 45,134 kB [ebuild N ] media-libs/jasper-1.701.0 +jpeg +opengl 1,329 kB [ebuild N ] media-libs/netpbm-10.30-r1 +jpeg +png +svga -tiff +zlib 2,542 kB [ebuild N ] app-arch/rpm2targz-9.0-r3 2 kB [ebuild N ] sys-apps/utempter-0.5.5.6 20 kB [ebuild N ] x11-terms/xterm-207 -Xaw3d -doc -toolbar -truetype -unicode 727 kB Total size of downloads: 53,498 kB # emerge --info Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.9-gentoo-r13 i686) ================================================================= System uname: 2.6.9-gentoo-r13 i686 AMD Athlon(tm) processor Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -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 /var/run/dspam /var/spool/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode esd expat foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 idn imap imlib jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl ogg opengl oss pam pcre perl php png python quicktime readline ruby spell sqlite ssl svga tcpd truetype-fonts type1-fonts udev vorbis xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Remove opengl from your use flags. Also, gnome, gtk, gtk2, kde and a bunch of others will pull in X stuff for sure with other ebuilds.
Removing gnome, gtk, gtk2, opengl, and kde from use flags did the trick. Thanks.