Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47398 - xterm-184 depends on Xaw3d
Summary: xterm-184 depends on Xaw3d
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-09 17:38 UTC by Kenneth de Mello
Modified: 2004-04-11 12:22 UTC (History)
0 users

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


Attachments
xterm ebuild (xterm-184.ebuild,1.14 KB, text/plain)
2004-04-11 02:32 UTC, Giacomo Perale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth de Mello 2004-04-09 17:38:14 UTC
xterm-184, when installed as part of the xorg-x11 ebuild, will fail if Xaw3d is not already installed.  Installing this library separately fixes the problem.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-09 20:55:18 UTC
It has Xaw3d USE as of earlier today. Try it out. Invalid since the problem has already (presumably) been fixed.
Comment 2 Giacomo Perale 2004-04-10 06:10:29 UTC
there's an error in the build

"`use_with Xaw3d`" should be "`use_enable Xaw3d`"

after changing this, ebuild works without Xaw3d
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-10 09:28:11 UTC
OK thanks.
Comment 4 Giacomo Perale 2004-04-11 02:32:59 UTC
Created attachment 29069 [details]
xterm ebuild

It seems that with the change I proposed ebuild works flawlessy without Xaw3d
libs but xterm doesn't use them when USE "Xaw3d" is enabled

I think this is due to strange options in configure, that uses --with-Xaw3d and
--disable-Xaw3d instead of --with/--without or --enable/--disable

I submit a working ebuild, that uses EXTRA_CONF instead of "use_enable"
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-11 10:08:00 UTC
There is no --disable-Xaw3d option to configure. --with-Xaw3d is the only option containing Xaw3d, and any other option will disable it (--without-Xaw3d, --disable-Xaw3d, --foo-Xaw3d will all work, all it does is test for --with-Xaw3d).

Read or grep configure for yourself.
Comment 6 Giacomo Perale 2004-04-11 10:51:13 UTC
as you wish, but if you leave "use_with Xaw3d" configure doesn't recognize --without-Xaw3d and the result of 

USE="-Xaw3d" emerge xterm-184.ebuild 

is a failure with this output (with Xaw3d not installed):

configure: error: Unable to successfully link Athena library (-lXaw3d) with test program
 
!!! ERROR: x11-terms/xterm-184 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed

while the result of 

USE="Xaw3d" emerge xterm-184.ebuild 

is (after emerge installs x11-libs/Xaw3d) a working installation of xterm compiled with this options:

testing if -lXaw3d is needed
[...]
gcc -march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays  -L/usr/X11R6/lib -o xterm button.o charproc.o charsets.o cursor.o data.o doublechr.o fontutils.o input.o main.o menu.o misc.o print.o ptydata.o screen.o scrollbar.o tabs.o util.o xstrings.o VTPrsTbl.o TekPrsTbl.o Tekproc.o charclass.o precompose.o wcwidth.o -L/usr/X11R6/lib  -L/usr/X11R6/lib -lXft -lX11 -L/usr/lib -lfreetype -lfontconfig -L/usr/X11R6/lib -lXrender -lXaw3d -lXmu -lXext -lXt  -lSM -lICE -lX11 -lnsl -lutempter  -lncurses

please note: -lXaw3d -lXmu


if the ebuild use `use_enable Xaw3d` the result of

USE="-Xaw3d" emerge xterm-184.ebuild

is a complete merge with this output (note -lXaw)

testing if -lXaw is needed
[...]
gcc -march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays  -L/usr/X11R6/lib -o xterm button.o charproc.o charsets.o cursor.o data.o doublechr.o fontutils.o input.o main.o menu.o misc.o print.o ptydata.o screen.o scrollbar.o tabs.o util.o xstrings.o VTPrsTbl.o TekPrsTbl.o Tekproc.o charclass.o precompose.o wcwidth.o -L/usr/X11R6/lib  -L/usr/X11R6/lib -lXft -lX11 -L/usr/lib -lfreetype -lfontconfig -L/usr/X11R6/lib -lXrender -lXaw -lXmu -lXext -lXt  -lSM -lICE -lX11 -lnsl -lutempter  -lncurses

while the result of

USE="Xaw3d" emerge xterm-184.ebuild

is installation of Xaw3d and compilation with theese options:

testing if -lXaw is needed
[...]
gcc -march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays  -L/usr/X11R6/lib -o xterm button.o charproc.o charsets.o cursor.o data.o doublechr.o fontutils.o input.o main.o menu.o misc.o print.o ptydata.o screen.o scrollbar.o tabs.o util.o xstrings.o VTPrsTbl.o TekPrsTbl.o Tekproc.o charclass.o precompose.o wcwidth.o -L/usr/X11R6/lib  -L/usr/X11R6/lib -lXft -lX11 -L/usr/lib -lfreetype -lfontconfig -L/usr/X11R6/lib -lXrender -lXaw -lXmu -lXext -lXt  -lSM -lICE -lX11 -lnsl -lutempter  -lncurses

please note, lXaw, not lXaw3d as the USE requires, so (

I'll not paste here the results with my modified ebuild, but I can tell you that with "Xaw3d" it really uses Xaw3d, and with "-Xaw3d" it doesn't fail while searching for them; also, I did some other tests and you're right, the second options ( || EXTRA_ECONF="--disable-Xaw3d" ) is not needed, but EXTRA_CONF is, so the ebuild should be:

[...]
        use Xaw3d && EXTRA_ECONF="--with-Xaw3d"
                                                                                
        econf \
                `use_enable truetype freetype` \
                --libdir=/etc \
                --with-utempter \
[...]

If I've wrote only bullshits, please don't insult me, I'm just trying to help ;)
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-11 11:15:36 UTC
It's a little confusing what you wrote, but I'll fix it so the --without isn't produced.
Comment 8 Giacomo Perale 2004-04-11 12:22:37 UTC
I'm very sorry for my awful english, I can't express myself as clearly as I would wish to. :(