I am trying to get a apache server working with php but when I try to "emerge apache php mod_php" portage tries to install X. My USE flags are set to "-X" Reproducible: Always Steps to Reproduce: 1.emerge -p apache php mod_php Actual Results: drizzt root # emerge -p apache php mod_php These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-www/apache-2.0.49-r3 [ebuild N ] media-libs/giflib-4.1.0-r3 [ebuild N ] media-libs/jpeg-6b-r3 [ebuild N ] media-libs/lcms-1.12 [ebuild N ] media-libs/libmng-1.0.4 [ebuild N ] x11-misc/ttmkfdir-3.0.9-r1 [ebuild N ] media-libs/fontconfig-2.2.2 [ebuild N ] app-arch/unzip-5.50-r2 [ebuild N ] app-arch/cabextract-0.6 [ebuild N ] x11-base/opengl-update-1.5 [ebuild N ] x11-base/xfree-4.3.0-r5 [ebuild N ] media-libs/libungif-4.1.0.1b [ebuild N ] x11-libs/qt-3.3.2 [ebuild N ] app-crypt/mhash-0.9.1 [ebuild N ] media-libs/tiff-3.5.7-r1 [ebuild N ] media-libs/pdflib-5.0.2 [ebuild N ] dev-libs/libmcrypt-2.5.7 [ebuild N ] dev-libs/libxml2-2.6.7 [ebuild N ] dev-libs/libxslt-1.1.4 [ebuild N ] dev-perl/XML-Parser-2.34 [ebuild N ] app-text/sablotron-1.0 [ebuild N ] net-libs/libwww-5.4.0-r2 [ebuild N ] sys-libs/gpm-1.20.1 [ebuild N ] app-text/aspell-0.50.5-r1 [ebuild N ] media-libs/freetype-1.3.1-r3 [ebuild N ] media-libs/t1lib-5.0.0-r2 [ebuild N ] dev-php/php-4.3.6-r1 [ebuild N ] dev-php/mod_php-4.3.6-r2 Expected Results: No x11-base/xfree-4.3.0-r5 qt and etc Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r3) ================================================================= System uname: 2.4.25-gentoo-r3 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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="-O2 -mcpu=i686 -pipe" DISTDIR="/mnt/gentoo/distfile" FEATURES="autoaddcvs ccache digest sandbox strict" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.tiscali.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/mnt/gentoo/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apm arts avi berkdb crypt encode foomaticdb gdbm gif gpm gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oav oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib" the use flags are not the one iI set up in in my make.conf drizzt root # cat /etc/make.conf | grep USE= USE="-X -gtk -gnome -kde -cups -alsa oav readline"
emerge -pv --tree apache php mod_php
Check your use flags. You have USE="qt", and that ebuild supports the qt flag, pulling in qt, and virtual/x11.
Elaborating a bit, -X on pretty much every ebuild doesn't mean "disable X entirely", it means disable the x11 specific support. If you have other use flags set that enable x11 widget sets, the package ends up building w/ support for that widget, but w/out x11 only support. Sounds funky I know, but look at the mplayer ebuilds for an example- it supports --enable-x11, *and* --enable-gui (gtk frontend). --enable-gui overrides --disable-x11 from a configure standpoint, and adding the gtk deps ends up pulling in x11 support. If you're after having x11 completely blocked, look in the portage man page and use a mask on virtual/x11, package.mask. If you're trying to setup the system w/out X, I'd suggest disabling your qt flag- qt/gtk/gtk2/gnome support *always* will pull in an xserver.