Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41089 - xscreensaver-4.14-r1 USE flags madness: -gtk +gtk2 results in motif version
Summary: xscreensaver-4.14-r1 USE flags madness: -gtk +gtk2 results in motif version
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 01:48 UTC by Alexander Papaspyrou
Modified: 2004-02-11 18:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Papaspyrou 2004-02-10 01:48:56 UTC
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"
Comment 1 Spider (RETIRED) gentoo-dev 2004-02-10 15:30:16 UTC
*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.

Comment 2 Alexander Papaspyrou 2004-02-10 23:30:46 UTC
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?
Comment 3 SpanKY gentoo-dev 2004-02-11 18:20:16 UTC
add '<x11-libs/gtk+-2' to /etc/portage/package.mask