Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114484 - emacs-cvs-22.0.50 always compiles with X (X11)
Summary: emacs-cvs-22.0.50 always compiles with X (X11)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 16:36 UTC by Timothy Stotts
Modified: 2006-02-26 13:57 UTC (History)
1 user (show)

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


Attachments
patch to fix emacs-cvs-22.0.50.ebuild (emacs-cvs.diff,286 bytes, patch)
2005-12-04 16:37 UTC, Timothy Stotts
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Stotts 2005-12-04 16:36:05 UTC
BUG: The absence of "X" in the USE flags does not prevent
emacs-cvs-22.0.50.ebuild from building emacs with X11 support.

TERMINAL:
$ USE="-X -Xaw3d -gif -gnome -gtk -jpeg -nls -png -spell -tiff" sudo emerge -av
emacs-cvs

... ...

Configured for `powerpc-unknown-linux-gnu'.

  Where should the build process find the source code?   
/var/tmp/portage/emacs-cvs-22.0.50-r1/work/emacs
  What operating system and machine description files should Emacs use?
        `s/gnu-linux.h' and `m/macppc.h'
  What compiler should emacs be built with?              
powerpc-unknown-linux-gnu-gcc  -mabi=altivec -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          LUCID
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 yes
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use -lgif?                                 yes
  Does Emacs use -lpng?                                   yes
  Does Emacs use X toolkit scroll bars?                   yes

configure: creating ./config.status
config.status: creating Makefile

...
...


Reproducible: Always
Steps to Reproduce:
1.  USE="-X" emerge =emacs-cvs-22.0.50
2.  DISPLAY=":0.0" emacs-22.0.50
3.  Notice that emacs runs in graphical X11 mode.

Actual Results:  
emacs is able to run in graphical mode.  This implies that emacs is linked to
X11 libraries.

Expected Results:  
emacs have been compiled with X11 support, and thus should not be able to run in
graphical mode.

Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 ppc)
=================================================================
System uname: 2.6.14-gentoo-r2 ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.13
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.3, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks notitles sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/
http://gentoo.mirrors.pair.com/ ftp://mirrors.tds.net/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="ppc X Xaw3d a52 aac aalib accessibility ada aim alsa altivec apache2 apm
arts artswrappersuid auctex audiofile bash-completion berkdb bidi bitmap-fonts
bluetooth browserplugin bzip2 cdda cddb cdio cdparanoia cdr cjk clisp
cpudetection crypt cscope css cups curl dbus dga divx4linux dts dv dvb dvd dvdr
dvdread eds emacs emboss encode erandom ethereal evo exif expat f77 fam fbcon
ffmpeg firefox flac flash font-server foomaticdb fortran fpx freetts freetype
gcj gd gdbm ggi gif gimp gimpprint glut gmp gnokii gnome gnutls gpgme gphoto2
gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal haskell howl icq idn ieee1394
imagemagick imap imlib imlib2 ipv6 irc ithreads jabber java javacomm javascript
jikes jpeg jpeg2k junit kde lcms ldap libcaca libwww lua lzo lzw-tiff mad
matroska mbox mhash mikmod ming mng mozdevelop mozilla mozsvg mp3 mpeg mplayer
msn ncurses network nfs nls nntp nptl nsplugin objc odbc ogg oggvorbis openal
opengl pam pascal pcmcia pcre pda pdflib perl php pic plotutils png povray ppds
python qt quicktime radeon rdesktop readline rss ruby samba sasl scanner screen
sdl sheep slang slp smime speex spell sql ssl stream subversion svg tcltk tcpd
tetex theora threads tidy tiff tos truetype truetype-fonts type1-fonts udev
unicode usb v4l v4l2 vcd vim-with-x vnc vorbis wifi winbind wmf wxwindows xanim
xine xinerama xml xml2 xmms xosd xprint xscreensaver xv xvid yahoo yv12 zeroconf
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Timothy Stotts 2005-12-04 16:37:14 UTC
Created attachment 74074 [details, diff]
patch to fix emacs-cvs-22.0.50.ebuild
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2006-02-26 13:57:11 UTC
Thanks for the note.  We applied your patch.  This should be fixed in emacs-cvs-22.0.5-r1.ebuild