| Summary: | xterm-184 depends on Xaw3d | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Kenneth de Mello <kdemello> |
| Component: | New packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED INVALID | ||
| Severity: | trivial | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | xterm ebuild | ||
|
Description
Kenneth de Mello
2004-04-09 17:38:14 UTC
It has Xaw3d USE as of earlier today. Try it out. Invalid since the problem has already (presumably) been fixed. there's an error in the build "`use_with Xaw3d`" should be "`use_enable Xaw3d`" after changing this, ebuild works without Xaw3d OK thanks. 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"
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. 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 ;)
It's a little confusing what you wrote, but I'll fix it so the --without isn't produced. I'm very sorry for my awful english, I can't express myself as clearly as I would wish to. :( |