From owner-cvs-ports@FreeBSD.ORG Tue Mar 2 13:16:47 2004 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C919316A4CE; Tue, 2 Mar 2004 13:16:47 -0800 (PST) Received: from mtaw6.prodigy.net (mtaw6.prodigy.net [64.164.98.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97AA943D1D; Tue, 2 Mar 2004 13:16:47 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (134b21ff2efaa222022b1843e0beba79@adsl-67-119-53-203.dsl.lsan03.pacbell.net [67.119.53.203]) by mtaw6.prodigy.net (8.12.10/8.12.10) with ESMTP id i22LFmEn021855; Tue, 2 Mar 2004 13:15:49 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 53AD253498; Tue, 2 Mar 2004 13:16:46 -0800 (PST) Date: Tue, 2 Mar 2004 13:16:46 -0800 From: Kris Kennaway To: Eivind Eklund Message-ID: <20040302211646.GA6887@xor.obsecurity.org> References: <200402040638.i146cVAi035977@repoman.freebsd.org> <20040229233524.GA48293@dragon.nuxi.com> <1078098236.62463.50.camel@shumai.marcuscom.com> <20040301104026.GC27008@FreeBSD.org> <20040301115006.GA64348@xor.obsecurity.org> <20040301154440.GC71640@dragon.nuxi.com> <20040301162624.GE27008@FreeBSD.org> <20040302035808.GA1535@xor.obsecurity.org> <20040302131749.GG27008@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20040302131749.GG27008@FreeBSD.org> User-Agent: Mutt/1.4.2.1i cc: cvs-all@FreeBSD.org cc: ports-committers@FreeBSD.org cc: Joe Marcus Clarke cc: David O'Brien cc: Kris Kennaway cc: cvs-ports@FreeBSD.org Subject: Re: Gettext issues (was Re: cvs commit: ports CHANGES) X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 21:16:47 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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 * 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. >=20 > Below is an implementation (not tested) which should compliant with the b= asic > 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 --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFARPm9Wry0BWjoQKURAl2UAJkBfKTI5577WNJllA4WHNKoXDwJlACbBXxV N8c1auWO1cjmf2+R8xuatlw= =Pwlg -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--