Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35300 - emacs builds with Xaw3d even when USE="-Xaw3d"
Summary: emacs builds with Xaw3d even when USE="-Xaw3d"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-07 18:04 UTC by Darian Rackham
Modified: 2003-12-07 21:21 UTC (History)
0 users

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


Attachments
A patch to pass --with-x-toolkit=no to emacs configure when appropriate (emacs-21.3-r1.Xaw3d.patch,632 bytes, patch)
2003-12-07 18:06 UTC, Darian Rackham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darian Rackham 2003-12-07 18:04:01 UTC
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"
Comment 1 Darian Rackham 2003-12-07 18:06:49 UTC
Created attachment 21840 [details, diff]
A patch to pass --with-x-toolkit=no to emacs configure when appropriate
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-12-07 21:21:54 UTC
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.