If Xaw3d is installed, and no other x-toolkit is in USE, emacs will build with Xaw3d support even with USE="-Xaw3d". Reproducible: Always Steps to Reproduce: 1. emerge Xaw3d 2. USE="-Xaw3d -motif" emerge emacs Actual Results: When you launch emacs under X you will have an Xaw3d scrollbar. Expected Results: If we actually want emacs to use Xaw3d by default whenever it is installed, there should be an entry for Xaw3d added to use.defaults. If neither Xaw3d nor motif are in USE then the ebuild should pass --with-x-toolkit=no to configure. I'm attaching a patch against emacs-21.3-r1.ebuild to do just that. Gentoo Base System version 1.4.3.12 Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test11) ================================================================= System uname: 2.6.0-test11 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/sh are/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb cjk crypt cups emacs encode foomaticdb gdbm gif gpm gtk imlib java jpeg kde leim libg++ libww w mad mikmod mmx mozilla moznocompose moznoirc moznomail moznoxft mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"
Created attachment 21840 [details, diff] A patch to pass --with-x-toolkit=no to emacs configure when appropriate
Your request seems reasonable. (We cannot modify DEPEND using conditional statement, so USE flag is the only way to change DEPEND dynamically) Included the patch in emacs-21.3-r2.ebuild. Thanks for reporting.