Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174453 - >=app-editors/emacs-21.4-r4 with USE=Xaw3d needs DEPEND=x11-libs/libXaw
Summary: >=app-editors/emacs-21.4-r4 with USE=Xaw3d needs DEPEND=x11-libs/libXaw
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 13:07 UTC by Wulf Krueger (RETIRED)
Modified: 2007-04-19 15:57 UTC (History)
0 users

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


Attachments
upstream patch (patch,2.00 KB, patch)
2007-04-18 07:22 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wulf Krueger (RETIRED) gentoo-dev 2007-04-13 13:07:19 UTC
app-editors/emacs-21.4-r4  USE="X Xaw3d nls -leim -lesstif -motif -nosendmail"

Currently, the relevant deps are the following:

Xaw3d? ( x11-libs/Xaw3d )
!Xaw3d? ( x11-libs/libXaw )

This leads to the following error when trying to build emacs without libXaw already installed:

/var/tmp/portage/app-editors/emacs-21.4-r4/work/emacs-21.4/lwlib/lwlib.c:52:27: error: X11/Xaw/Paned.h: No such file or directory

X11/Xaw/Paned.h is not provided by x11-libs/Xaw3d but by x11-libs/libXaw.

Thus, I suggest the following change:

Xaw3d? ( x11-libs/libXaw
         x11-libs/Xaw3d )

mkennedy seems to have found this, too, in 
http://bugs.gentoo.org/show_bug.cgi?id=128391#c3
Comment 1 Ulrich Müller gentoo-dev 2007-04-13 14:27:22 UTC
Looks like libXaw is needed only at build-time:

$ scanelf -n /usr/bin/emacs-21
 TYPE   NEEDED FILE 
ET_EXEC libXaw3d.so.8,libXmu.so.6,libXt.so.6,libSM.so.6,libICE.so.6,
libXext.so.6,libtiff.so.3,libjpeg.so.62,libpng12.so.0,libz.so.1,libm.so.6,
libgif.so.4,libXpm.so,libX11.so.6,libncurses.so.5,libc.so.6 /usr/bin/emacs-21

Could you try if the issue is fixed in emacs-21.4-r11 from the Emacs overlay?

Does the problem exist with emacs-cvs-22*, too?
Comment 2 Wulf Krueger (RETIRED) gentoo-dev 2007-04-13 15:10:18 UTC
Sorry, Ulrich, I'm not using the emacs-overlay. It should be easy enough to test for this issue, though. Just "emerge -C libXaw" temporarily.

I've tested the following packages from the official tree as well and they're affected, too:

- app-editors/emacs-cvs-22.0.96
- app-editors/emacs-cvs-22.0.97

I suspect the other packages might be affected as well but I haven't tested any others.
Comment 3 Ulrich Müller gentoo-dev 2007-04-13 15:39:53 UTC
(In reply to comment #2)
> Sorry, Ulrich, I'm not using the emacs-overlay. It should be easy enough to
> test for this issue, though. Just "emerge -C libXaw" temporarily.

Wulf, of course I had done this. ;-) I was able to reproduce the problem with your USE flags and I it is now gone in -21.4-r11 (from Emacs overlay).

> I've tested the following packages from the official tree as well and they're
> affected, too:
> 
> - app-editors/emacs-cvs-22.0.96
> - app-editors/emacs-cvs-22.0.97

Hm, with those from the overlay I cannot reproduce the problem.

However, we expect to move the versions from the overlay to the official tree during next week. So it would be nice to have an independent verification before.
Comment 4 Wulf Krueger (RETIRED) gentoo-dev 2007-04-13 19:59:39 UTC
Ok, I did my tests using your overlay.

Broken with respect to libXaw:

- app-editors/emacs-cvs-22.0.97 
(USE="X Xaw3d -alsa -gif -gtk -gzip-el -hesiod -jpeg -lesstif -motif -png -sound -source -spell -tiff -toolkit-scroll-bars -xpm")

- app-editors/emacs-cvs-22.0.9999-r9
(USE="X Xaw3d -alsa -gif -gtk -gzip-el -hesiod -jpeg -lesstif -motif -png -sound -source -spell -tiff -toolkit-scroll-bars -xpm")

- app-editors/emacs-cvs-23.0.0-r5
(USE="X Xaw3d -alsa -gif -gtk -gzip-el -hesiod -jpeg -lesstif -motif -png -sound -source -spell -tiff -toolkit-scroll-bars -xft -xpm")

Working:

- app-editors/emacs-21.4-r11

Any special reason you kept "!Xaw3d? ( x11-libs/libXaw )" in REDEPEND?
Comment 5 Ulrich Müller gentoo-dev 2007-04-13 22:58:57 UTC
(In reply to comment #4)
> Ok, I did my tests using your overlay.

Thanks. I shall look into emacs-cvs-{22,23}* with your combination of USE flags.

> Working:
> - app-editors/emacs-21.4-r11

Good. ;-)

> Any special reason you kept "!Xaw3d? ( x11-libs/libXaw )" in REDEPEND?

Hm, I think you are right, that could be dropped. And probably
"Xaw3d? ( x11-libs/libXaw )" in DEPEND is sufficient, too.

Ebuild in overlay changed, can you test again (still -r11)?
Comment 6 Ulrich Müller gentoo-dev 2007-04-14 00:17:42 UTC
emacs-cvs-{22,23}* updated and available in overlay for testing, too.

Even if this is working now, it is suspicious that libXaw is needed at build time but not at runtime. It looks like the wrong include files are used, i.e. the sources should include X11/Xaw3d/Paned.h instead of the missing X11/Xaw/Paned.h (the two files being essentially identical, however).
Comment 7 Ulrich Müller gentoo-dev 2007-04-14 07:06:30 UTC
BTW, Debian has seen this issue, too:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365714
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365597
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-04-16 07:23:01 UTC
Ulrich reported it upstream.
Comment 9 Ulrich Müller gentoo-dev 2007-04-17 06:22:54 UTC
(In reply to comment #8)
> Ulrich reported it upstream.
As discussed with philantrop before.

Revisions 22.0.98, 22.0.9999-r10, and 23.0.0-r6 moved to the Portage tree today. Resolving as UPSTREAM since including the libXaw headers at build time is a workaround only.
Comment 10 Wulf Krueger (RETIRED) gentoo-dev 2007-04-17 09:44:55 UTC
Thanks, Ulrich! 

I'd be grateful if you could update this bug once more if and when upstream responds.Or just point me to their bugtracker (if they have one). :-)
Comment 11 Christian Faulhammer (RETIRED) gentoo-dev 2007-04-17 10:23:29 UTC
(In reply to comment #10)
> I'd be grateful if you could update this bug once more if and when upstream
> responds.Or just point me to their bugtracker (if they have one). :-)

 They don't have one, it hasn't hit the bug-list (is moderated), I will keep an eye on the normal development list and check from time to time the bug list.
Comment 12 Ulrich Müller gentoo-dev 2007-04-17 15:28:19 UTC
(In reply to comment #11)
> > I'd be grateful if you could update this bug once more if and when upstream
> > responds.Or just point me to their bugtracker (if they have one). :-)
> 
>  They don't have one, it hasn't hit the bug-list (is moderated), [...]

I've just re-sent my message to them, as it looks like the first one got lost.

It should appear in <http://lists.gnu.org/archive/html/emacs-pretest-bug/> (updated twice per day) at some time.
Comment 13 Ulrich Müller gentoo-dev 2007-04-18 07:22:53 UTC
Created attachment 116608 [details, diff]
upstream patch

| From: Chong Yidong <cyd@stupidchicken.com>
| To: emacs-pretest-bug@gnu.org
| Subject: Re: Compile failure due to Xaw3d include file issues
| Date: Wed, 18 Apr 2007 01:24:20 -0400
|
| Could you test the following patch?
|
| If you could take the time, please see if it works as expected with
| all 4 combinations of Xaw3d and libXaw installed/not installed.
Comment 14 Ulrich Müller gentoo-dev 2007-04-19 06:01:39 UTC
(In reply to comment #13)
> Created an attachment (id=116608) [edit]
> upstream patch

The libXaw dependency has been removed, and the upstream patch included in:
emacs-21.4-r12
emacs-cvs-22.0.98
emacs-cvs-22.0.9999-r10
emacs-cvs-23.0.0-r6
Comment 15 Wulf Krueger (RETIRED) gentoo-dev 2007-04-19 15:50:12 UTC
Thank you! Greatly appreciated.
Comment 16 Ulrich Müller gentoo-dev 2007-04-19 15:57:33 UTC
Reopening for proper resolution.