Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165663 - emacs-cvs-22.0.93-r2 build fails with +X -motif -lesstif USE flags
Summary: emacs-cvs-22.0.93-r2 build fails with +X -motif -lesstif USE flags
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: 2007-02-06 19:49 UTC by John R. Graham
Modified: 2007-02-08 14:04 UTC (History)
1 user (show)

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


Attachments
Patch corrects small bug. (emacs-cvs-lesstif.patch,530 bytes, patch)
2007-02-06 19:50 UTC, John R. Graham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John R. Graham gentoo-dev 2007-02-06 19:49:10 UTC
In the emacs-cvs-22.0.93-r2 and emacs-cvs-22.0.9999-r2 ebuilds, when the X USE flag is set but the motif and lesstif USE flags are not set, there is a kind of syntactical typo that results in emacs being configured to be built for lesstif toolkit support.  Without the lesstif USE flag set, the lesstif package is not set as a dependency and, if lesstif is not already installed, the emacs-cvs ebuild will (a) not install it, and (b) fail to compile because of lots of missing include files.

Reproducible: Always

Steps to Reproduce:
1.Ensure that X USE flag is set, motif and lesstif USE flags are not set.
2.Ensure that lesstif is not installed.
3.emerge =app-editors/emacs-cvs-22.0.93-r2

Actual Results:  
Ebuild fails

...
i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE    -D_BSD_SOURCE    -O2 -march=pentium-m -mtune=pentium-m -pipe -DHAVE_CONFIG_H -Demacs -I. -I../src -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lwlib -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lwlib/../src lwlib-Xm.c
i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE    -D_BSD_SOURCE    -O2 -march=pentium-m -mtune=pentium-m -pipe -DHAVE_CONFIG_H -Demacs -I. -I../src -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lwlib -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lwlib/../src lwlib-utils.c
i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H -DUSE_MOTIF  -I. -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/src -D_BSD_SOURCE -I/usr/include/alsa -O2 -march=pentium-m -mtune=pentium-m -pipe frame.c
lwlib-Xm.c:41:26:i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H -DUSE_MOTIF  -I. -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/src -D_BSD_SOURCE -I/usr/include/alsa -O2 -march=pentium-m -mtune=pentium-m -pipe scroll.c
 error: Xm/BulletinB.h: No such file or directory
lwlib-Xm.c:42:25: error: Xm/CascadeB.h: No such file or directory
lwlib-Xm.c:43:26: error: Xm/CascadeBG.h: No such file or directory
lwlib-Xm.c:44:25: error: Xm/DrawingA.h: No such file or directory
lwlib-Xm.c:45:23: error: Xm/FileSB.h: No such file or directory
lwlib-Xm.c:46:22: error: Xm/Label.h: No such file or directory
lwlib-Xm.c:47:21: error: Xm/List.h: No such file or directory
lwlib-Xm.c:48:22: error: Xm/MainW.h: No such file or directory
lwlib-Xm.c:49:26: error: Xm/MenuShell.h: No such file or directory
lwlib-Xm.c:50:25: error: Xm/MessageB.h: No such file or directory
lwlib-Xm.c:51:23: error: Xm/PanedW.h: No such file or directory
lwlib-Xm.c:52:22: error: Xm/PushB.h: No such file or directory
lwlib-Xm.c:53:23: error: Xm/PushBG.h: No such file or directory
...
[snip]
...
make[3]: *** [lwlib-Xm.o] Error 1
make[3]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H -DUSE_MOTIF  -I. -I/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/src -D_BSD_SOURCE -I/usr/include/alsa -O2 -march=pentium-m -mtune=pentium-m -pipe xdisp.c
make[3]: Leaving directory `/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lwlib'
make[2]: *** [really-lwlib] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/src'
make[1]: *** [bootstrap-build] Error 2
make[1]: Leaving directory `/var/tmp/portage/emacs-cvs-22.0.93-r2/work/emacs-22.0.93'
make: *** [bootstrap] Error 2

!!! ERROR: app-editors/emacs-cvs-22.0.93-r2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  emacs-cvs-22.0.93-r2.ebuild, line 108:   Called die

!!! make bootstrap failed.
!!! If you need support, post the topmost build error, and the call stack if relevant.



I am including a patch that corrects the 22.0.93-r2 ebuild.  The exsact same issue exists with the 22.0.999-r2 ebuild.
Comment 1 John R. Graham gentoo-dev 2007-02-06 19:50:59 UTC
Created attachment 109368 [details, diff]
Patch corrects small bug.
Comment 2 John R. Graham gentoo-dev 2007-02-06 23:42:49 UTC
(In reply to comment #0)
I realize I misspoke a little bit above; I was at work and in a hurry.

What I meant was that, without the lesstif USE flag set, the emacs-cvs ebuild does not list lesstif as a dependency and thus *emerge* will not build it prior to trying to build emacs-cvs.  If lesstif is not installed already, then the emacs-cvs ebuild will fail.

- John
Comment 3 Yuval Yaari (RETIRED) gentoo-dev 2007-02-08 08:32:08 UTC
Same problem here, emerging lesstif indeed solves this...
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-08 14:04:24 UTC
Fixed in CVS, thanks.