Bug 18828 - Emacs-cvs USE variables
Bug#: 18828 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: mkennedy@gentoo.org Reported By: david.escott@gmail.com
Component: Applications
URL: 
Summary: Emacs-cvs USE variables
Keywords:  
Status Whiteboard: 
Opened: 2003-04-05 20:30 0000
Description:   Opened: 2003-04-05 20:30 0000
Emacs-cvs uses the use variable gtk to decide whether or not to build with
gtk+-2.x.

IMHO it should instead use the gtk2 USE variable. Besides making good sense
this
will be helpful to those of us who have the variables "-gtk gtk2" set (in order
to ensure precedence of gtk2 over gtk when both are available).

Reproducible: Always
Steps to Reproduce:
1. Built emacs-cvs with "-gtk gtk2"
2.
3.

Actual Results:  
Got a Xaw3d based emacs

Expected Results:  
built a gtk2 emacs

------- Comment #1 From Matthew Kennedy (RETIRED) 2003-04-06 15:39:47 0000 -------
hi,

I don't think thats the intented purpose of the gtk and gtk2 use
flags. From /usr/portage/profiles/use.desc:

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. beware that gtk+-2 support can be bad.

i think this bug is invalid. feel free to re-open if you disagree.

Matt

------- Comment #2 From David Escott 2003-04-06 21:12:41 0000 -------
I understand your point but perhaps you could do an or test on the use
variable.

If gtk or gtk2 then build with gtk support.

The problem arises when individuals (like me) would prefer not to build
gtk+-1.2 based interfaces at all (unless the package cannot be used) and for
that reason include a -gtk flag. Perhaps this is more generally aimed at gtk
and gtk2 use variables but I the definition from the description may not be the
best. In another year or so when most every project has ported over excepting a
few that have essentially unmaintained gui's, it seems like a natural response
to unmerge gtk+-1.x and add -gtk to ones use variable to avoid have the old
toolkit lying around.

Anyways philosophical debate aside it makes sense to build a gtk interface when
one has the gtk2 use variable set even if -gtk is set.

------- Comment #3 From Matthew Kennedy (RETIRED) 2003-04-16 13:14:20 0000 -------
okay, i can agree with this. fixed in cvs.

thanks, 
matt