Gettext issues (was Re: cvs commit: ports CHANGES)

Kris Kennaway kris at obsecurity.org
Tue Mar 2 13:16:47 PST 2004


On Tue, Mar 02, 2004 at 01:17:49PM +0000, Eivind Eklund wrote:

> > I successfully removed gettext from a number of my installed ports,
> > but it looks like glib20 and everything that depends on it absolutely
> > requires gettext (there's a note in the ChangeLog suggesting that it
> > was a design decision).  That means pretty much everything GNOME and
> > KDE requires it, but it's still a step forward to proceed with other
> > ports.
> 
> Looking at the code, I think you're wrong - it just autodetect.  Or at
> least the code autodetect and contain ifdef's on ENABLE_NLS to
> enable/disable code sections based on whether NLS is available or not.

The --disable-nls switch was removed from configure, according to
ChangeLog.Pre-2-0

2002-01-16  Sven Neumann  <sven at gimp.org>

        * acinclude.m4
        * m4macros/glib-gettext.m4: removed the --disable-nls option. You
        can't disable Native Language Support since we rely on it.

> For the more general case: I think we can use a dummy gettext library to
> get around things needing gettext.  The gettext calls generally index on
> the english string, making a dummy implementation very easy.
> 
> Below is an implementation (not tested) which should compliant with the basic
> interface, and hopefully work.  A better variant might be actually have
> all of this defined as inline functions in a header.

Interesting..I'll take a look at this if I have time.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-ports/attachments/20040302/b21c437e/attachment.bin


More information about the cvs-ports mailing list