Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79492 - gtk+-2.4.14 does not build w/ nocxx and -nls
Summary: gtk+-2.4.14 does not build w/ nocxx and -nls
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 10:03 UTC by Peter S. Mazinger
Modified: 2005-09-18 19:18 UTC (History)
1 user (show)

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


Attachments
ebuild diff to correct nocxx/nls issue (gtk+-2.4.14-ebuild.dif,1.26 KB, patch)
2005-01-25 10:04 UTC, Peter S. Mazinger
Details | Diff
ngettext is not defined for -nls , this patch solves it (gtk+-2.4.14-ngettext.patch,348 bytes, patch)
2005-01-25 10:05 UTC, Peter S. Mazinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter S. Mazinger 2005-01-25 10:03:55 UTC
patches follow to solve both

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Peter S. Mazinger 2005-01-25 10:04:58 UTC
Created attachment 49491 [details, diff]
ebuild diff to correct nocxx/nls issue
Comment 2 Peter S. Mazinger 2005-01-25 10:05:46 UTC
Created attachment 49492 [details, diff]
ngettext is not defined for -nls , this patch solves it
Comment 3 foser (RETIRED) gentoo-dev 2005-03-02 14:02:59 UTC
epunt_cxx has been added a while ago

there is no nls USE for gtk+, I'm not gonna add hacks for no good reasons.
Comment 4 Peter S. Mazinger 2005-03-02 14:23:04 UTC
if you believe this is a hack, read the original code that is above the added line
Comment 5 solar (RETIRED) gentoo-dev 2005-03-03 09:38:57 UTC
This patch corrects a flaw in the gtk+ code.  It's not a HACK
It does the correct thing. It should be added to our ebuild and pushed upstream.
Comment 6 Peter S. Mazinger 2005-03-06 06:56:29 UTC
epunt_cxx was added at the false location, it has to go after autoconf, else
the result is overwritten
Comment 7 Leonardo Boshell (RETIRED) gentoo-dev 2005-05-29 21:40:25 UTC
gtk+ ebuilds include epunt_cxx since 2.6.2. That line was moved after autoconf
since 2.6.4-r1.

Gtk+'s configure script doesn't understand the '--enable-nls' flag, so including
$(use_enable nls) and adding 'nls' to IUSE would have no effect.

The ngettext patch looks fine, but I couldn't test it as I don't have a system
without ngettext(). It might have to be modified since now there are two files
calling ngettext() in Gtk+: gdk-pixbuf/gdk-pixdata.c and
gtk/gtkfilechooserdefault.c.

What do you think, foser?
Comment 8 Peter S. Mazinger 2005-05-30 04:39:48 UTC
ngettext in the second file is commented (within #if 0/#endif), the patch is ok as it is
Comment 9 foser (RETIRED) gentoo-dev 2005-06-02 12:45:10 UTC
I think the embedded team has an old-time focus on getting english only devices
out there. I think this patch has little merit in a generic tree and might open
the floodgates for similar stuff, the whole -nls thing is discouraged by
upstream and has been long disabled. I've seen no compelling argument to add it.
Comment 10 SpanKY gentoo-dev 2005-06-02 12:52:30 UTC
it's about making stuff smaller, not about being 'english only'

if they're so intent about supporting just nls, then upstream should remove
their half-assed no-nls support

until then i dont see anything wrong with correcting a minor oversight
Comment 11 foser (RETIRED) gentoo-dev 2005-06-02 13:10:33 UTC
It's no secret what it is for (not that it has been mentioned here - i just get
'do this, don't ask questions'), but I doubt if you can do gtk the difference in
size is really a problem. This is not an oversight, it is just untouched code,
you know how large projects work. It's probably more of an oversight that it is
still there.
Comment 12 solar (RETIRED) gentoo-dev 2005-06-02 16:24:22 UTC
Why is making something functional that is not functional a problem for 
you when clearly other people can benefit said functionality? What do
you gain from blocking it? How does that help the Gentoo community?
Comment 13 foser (RETIRED) gentoo-dev 2005-06-22 09:49:31 UTC
the gettext patch is not accepted for the following reasons :

a) it's non functional (comment #7)
b) upstream is moving away from optional NLS, this is just a remnant of gtk+-1
times.
Comment 14 solar (RETIRED) gentoo-dev 2005-06-22 10:50:54 UTC
I hope you retire soon.
Comment 15 Peter S. Mazinger 2005-06-22 14:38:04 UTC
the ngettext is functional, the comment #7 is faulty
I am running glib2 and gtk+ without installing any gettext and nothing fails.
foser, you mix up things, what the full gettext package would provide if it wouldn't be installed along w/ glibc is the libintl functionality, libintl.[h,a,so] ( on a new glibc this is provided by libc itself), so no
need that gettext installs these. This lib (and for glibc libc) allows you to
have *.po/*.mo files having internationalisation mostly on the console.
None of the "big" pkgs, like mozilla, kde rely on having it (although some
ebuilds add it as requirement), everything can be built w/o it
The ngettext stub is a stub like the others in the same file, won't hurt anybody
who has USE=nls and gettext installed (see in which part of #ifdef ENABLE_NLS
it is added), but helps all who don't need nls and gettext
Until #ifdef ENABLE_NLS is not removed from glib upstream, I don't see a reason
why not adding this, it is only you who (for some unknown reason) don't want to
add it and think that gentoo will be better by your attitude
Comment 16 foser (RETIRED) gentoo-dev 2005-06-22 17:01:25 UTC
I know what it does, but it is non-functional as it is and only benefits you (it
doesn't work out of the box - not with the ebuild, probably not with the patch
even as leonardos comment indicates). The question should not be 'why shouldn't
this be added?', but why should it. Afaic this is unused, unmaintained code &
upstream treats it as such, I see no reason to dig up these corpses.

Look I can leave this forever open and ignore it, but that won't change a thing
about it.
Comment 17 Peter S. Mazinger 2005-06-23 12:35:11 UTC
see upstream:
http://bugzilla.gnome.org/show_bug.cgi?=308717
they applied the patch within 1 working day
Comment 18 John N. Laliberte (RETIRED) gentoo-dev 2005-09-18 19:18:56 UTC
this was applied upstream, resolved