Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7587 - glame ebuild-- fix compilation error and handling use flags
Summary: glame ebuild-- fix compilation error and handling use flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-06 17:39 UTC by Paul Thompson
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
glame-0.6.3-r1.ebuild ; fix and change (glame-0.6.3-r1.ebuild,1.85 KB, text/plain)
2002-09-06 17:40 UTC, Paul Thompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Thompson 2002-09-06 17:39:11 UTC
If built without 'nls' in the USE variable, glame failed to compile on
my system. Using sed to remove an #include <libintl.h> from one file
fixes it. It also has no effect upon compiling that file if using 'nls'.

The 0.6.3 ebuild also uses the 'gnome' use flag to determine if the
app should be built with a gui rather than just a cli. The app does depend on
various
gnome libs if you want the gui, but it isnt _optional_ if you want the
gui, and if you run X, you probably want the gui, even if you dont run
gnome.
I rewrote it to use the 'X' USE flag instead.

Tested with combinations of 'X' and 'nls' of f and on.

Paul
Comment 1 Paul Thompson 2002-09-06 17:40:59 UTC
Created attachment 3707 [details]
glame-0.6.3-r1.ebuild ;  fix and change
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-09-07 04:23:01 UTC
no, I'm with you on the NLS thing, but definitely NOT the gnome thing.  People
without "gnome" in USE do NOT want any gnome* stuff on their system.
Comment 3 Paul Thompson 2002-09-07 20:07:13 UTC
Hi Seemant;

The idea that if I have '-gnome', that I dont get _any_ gnomeish stuff in an ebuild
is nice in theory, but it doesnt seem to work that way. I mean, with glame, you
have a sort of 'choice' in that you can actually build a cli instead, but with
things
like galeon, or gnucash you are either getting gnome crud, or nothing. And that
fits with the explainatino of USE settings, that they only turn on or off _optional_
stuff, but I really think in this case it violates the principle of least suprise.
(at least for me, otherwise I wouldnt have mentioned it:)

Having emerged many things like galeon, and gnucash (and my use settings turn off
gnome, kde, X, qt, gtk, esd, nls) and getting all those things anyway, I have sort
of formed a much 'softer' expectation thus far...

Perhaps in this case... I dont know... maybe two ebuilds could be made, cli-glame,
and gui-glame. But then, the gnome setting becomes irrelevant... which it almost
seems like it is anyway; if you are a weirdo who turns it off, you will probably
emerge something that sucks in half of gnome regardless, and just 'cripples'
other ebuilds:) :)

I could write a post-install message for the ebuild that simply informs a merger
if gnome is not in USE, that it is required for the gui, and only a cli will be
installed...

Paul

Comment 4 foser (RETIRED) gentoo-dev 2002-10-25 09:51:09 UTC
i'm with seemant, -gnome is what it should be. but this pack isn't building at
all for me ? Some configure problem with CHOST. Is this local or can someone
else reproduce it ?
Comment 5 Väinö Järvelä 2002-10-28 08:34:04 UTC
glame won't compile at all on my computer. Says this:
"configure: warning: CFLAGS=-march=i686 -O3 -pipe -mmmx -m3dnow: invalid host type
configure: warning: host_alias=i686-pc-linux-gnu: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh './configure' failed for libltdl"

So i replaced 'econf' with './configure' and it compiled fine. But now it fails
when i try to start glame.

So i replaced 'emake' with 'make' and everything works fine.
Comment 6 foser (RETIRED) gentoo-dev 2002-11-18 10:40:07 UTC
Well, i fixed a possible configure problem. The mentioned nls problem i couldnt
reproduce, so i havent done anything about it. Furthermore the gnome USE is as
it was before.

Please give it a try.(rsync and re-emerge 0.6.3)
Comment 7 Paul Thompson 2002-11-18 19:55:58 UTC
Hi;
Still bombs for me due to the inclusion of libintl.h in swapfilegui.c
when 'nls' is not in my USE. Perhaps someone else could try
USE="gnome -nls" emerge glame
to try and reproduce.

Paul
Comment 8 foser (RETIRED) gentoo-dev 2002-11-22 20:20:47 UTC
HMm i could reproduce i guess, been looking with my eyes closed. Ok, a fix is in
now which should get the include out. Please try one more time (0.6.3) :)