To prevent different apps from being built with a gtk+-1.x UI, I removed "gtk" from my USE flags, leaving only "gtk2". Unfortunately, the xscreensaver ebuild only honors the "gtk2" flag iif "gtk" is also set. This shouldn't be: the gtk+ UI should be build only when the corresponding USE flag is set; thus, setting "gtk2" should result in a gtk+-2.x UI, setting "gtk" should result in a gtk+-1.x UI. If both are set, "gtk2" should take precedence. Reproducible: Always Steps to Reproduce: 1. USE="-gtk gtk2" emerge xscreensaver Actual Results: xscreensaver is build against the openmotif toolkit. Expected Results: xscreensaver should be built against the gtk+-2.x toolkit. user@host $ emerge --info Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5) ================================================================= System uname: 2.4.22-gentoo-r5 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest sandbox userpriv usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.linux.no/ http://www.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.europe.gentoo.org/gentoo-portage" USE="3dnow X acl acpi alsa avi berkdb bonobo cdr crypt cups dvd encode esd gif gnome gstreamer gtk2 imlib jikes jpeg libwww mad maildir mmx mpeg mpi ncurses nls oav odbc oggvorbis opengl pam pda pdflib png quicktime readline samba sdl spell ssl tcpd truetype x86 xml2 xv zlib"
*Sigh* Nope. You are in fact mistaken. If the following lines seem unclear, please clarify: gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit) gtk2 - Use gtk+-2.0.0 over gtk+-1.2 in cases where a program supports both. And, if you build with -gtk, you tell it that you DONT want gtk+ support, ANY version. The gtk2 flag is only the "preference". So with -gtk You get motif, if I recall correctly. Just as you state, you don't want gtk+ support.
Sorry, then. I'm used to the "x11-themes/*" ebuilds where in many cases things work like I described in the first place, which then is a little bit inconsistent. It would be nice if policy would be clearer here. Is there any *easy* way to "protect" myself from gtk+-1.* apps?
add '<x11-libs/gtk+-2' to /etc/portage/package.mask