<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>174453</bug_id>
          
          <creation_ts>2007-04-13 13:07 0000</creation_ts>
          <short_desc>&gt;=app-editors/emacs-21.4-r4 with USE=Xaw3d needs DEPEND=x11-libs/libXaw</short_desc>
          <delta_ts>2007-04-19 15:57:49 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>philantrop@gentoo.org</reporter>
          <assigned_to>emacs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-04-13 13:07:19 0000</bug_when>
            <thetext>app-editors/emacs-21.4-r4  USE=&quot;X Xaw3d nls -leim -lesstif -motif -nosendmail&quot;

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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-13 14:27:22 0000</bug_when>
            <thetext>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?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-04-13 15:10:18 0000</bug_when>
            <thetext>Sorry, Ulrich, I&apos;m not using the emacs-overlay. It should be easy enough to test for this issue, though. Just &quot;emerge -C libXaw&quot; temporarily.

I&apos;ve tested the following packages from the official tree as well and they&apos;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&apos;t tested any others.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-13 15:39:53 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Sorry, Ulrich, I&apos;m not using the emacs-overlay. It should be easy enough to
&gt; test for this issue, though. Just &quot;emerge -C libXaw&quot; 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).

&gt; I&apos;ve tested the following packages from the official tree as well and they&apos;re
&gt; affected, too:
&gt; 
&gt; - app-editors/emacs-cvs-22.0.96
&gt; - 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-04-13 19:59:39 0000</bug_when>
            <thetext>Ok, I did my tests using your overlay.

Broken with respect to libXaw:

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

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

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

Working:

- app-editors/emacs-21.4-r11

Any special reason you kept &quot;!Xaw3d? ( x11-libs/libXaw )&quot; in REDEPEND?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-13 22:58:57 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Ok, I did my tests using your overlay.

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

&gt; Working:
&gt; - app-editors/emacs-21.4-r11

Good. ;-)

&gt; Any special reason you kept &quot;!Xaw3d? ( x11-libs/libXaw )&quot; in REDEPEND?

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

Ebuild in overlay changed, can you test again (still -r11)?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-14 00:17:42 0000</bug_when>
            <thetext>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).
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-14 07:06:30 0000</bug_when>
            <thetext>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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-04-16 07:23:01 0000</bug_when>
            <thetext>Ulrich reported it upstream.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-17 06:22:54 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-04-17 09:44:55 0000</bug_when>
            <thetext>Thanks, Ulrich! 

I&apos;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). :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-04-17 10:23:29 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; I&apos;d be grateful if you could update this bug once more if and when upstream
&gt; responds.Or just point me to their bugtracker (if they have one). :-)

 They don&apos;t have one, it hasn&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-17 15:28:19 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; &gt; I&apos;d be grateful if you could update this bug once more if and when upstream
&gt; &gt; responds.Or just point me to their bugtracker (if they have one). :-)
&gt; 
&gt;  They don&apos;t have one, it hasn&apos;t hit the bug-list (is moderated), [...]

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

It should appear in &lt;http://lists.gnu.org/archive/html/emacs-pretest-bug/&gt; (updated twice per day) at some time.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-18 07:22:53 0000</bug_when>
            <thetext>Created an attachment (id=116608)
upstream patch

| From: Chong Yidong &lt;cyd@stupidchicken.com&gt;
| 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-19 06:01:39 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Created an attachment (id=116608) [edit]
&gt; 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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-04-19 15:50:12 0000</bug_when>
            <thetext>Thank you! Greatly appreciated.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-04-19 15:57:33 0000</bug_when>
            <thetext>Reopening for proper resolution.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>116608</attachid>
            <date>2007-04-18 07:22 0000</date>
            <desc>upstream patch</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">KioqIGVtYWNzL3NyYy94Zm5zLmMufjEuNjgxLn4JMjAwNy0wMy0yNCAxMTo0OTo0OC4wMDAwMDAw
MDAgLTA0MDAKLS0tIGVtYWNzL3NyYy94Zm5zLmMJMjAwNy0wNC0xOCAwMToxODo1Mi4wMDAwMDAw
MDAgLTA0MDAKKioqKioqKioqKioqKioqC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