Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: AIX: grep .gettext
Date: Wed, 11 Apr 2007 12:39:33
Message-Id: 1176295138.11181.59.camel@sapc154
In Reply to: Re: [gentoo-alt] Re: AIX: grep .gettext by Fabian Groffen
On Tue, 2007-04-10 at 21:00 +0200, Fabian Groffen wrote:
> On 30-03-2007 22:31:10 +0200, Michael Haubenwallner wrote: > > Don't know why it is there, but this is why grep has this problem. > > > > Anyway, I have a patch for grep now: > > http://prefix-launcher.svn.sourceforge.net/viewvc/*checkout*/prefix-launcher/prefix-launcher/trunk/grep/patches/nonlsable.patch > > This seems to be done in the main tree already, which looks the same: > http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/sys-apps/grep/files/grep-2.5.1a-nls.patch
As lib/getopt.c is required on aix, patching that is necessary too. And for lib/error.c one might prefer to not include libintl.h instead of doing that ENABLE_NLS-conditionally, because there _could_ be libintl.h's out there defining '_': see this lines in error.c: 59 #ifndef _ 60 # define _(String) String 61 #endif --- lib/error.c.orig 2007-04-11 14:33:05.571682000 +0200 +++ lib/error.c 2007-04-11 14:33:08.901567000 +0200 @@ -26,9 +26,6 @@ #endif #include <stdio.h> -#if HAVE_LIBINTL_H -# include <libintl.h> -#endif #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC # if __STDC__ /haubi/ Salomon Automation GmbH - Friesachstraße 15 - A-8114 Friesach bei Graz Sitz der Gesellschaft: Friesach bei Graz UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz -- gentoo-alt@g.o mailing list