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"
-qt did the trick. -X does not discard over depency such as qt. The ebuild as a qt depency and so X get installed.
FYI: qt is set in /etc/make.profile/make.defaults. So you either have to prefix USE="-qt" emerge mod_php or disable it in your make.conf.