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
1 On Tue, 2007-04-10 at 21:00 +0200, Fabian Groffen wrote:
2 > On 30-03-2007 22:31:10 +0200, Michael Haubenwallner wrote:
3 > > Don't know why it is there, but this is why grep has this problem.
4 > >
5 > > Anyway, I have a patch for grep now:
6 > > http://prefix-launcher.svn.sourceforge.net/viewvc/*checkout*/prefix-launcher/prefix-launcher/trunk/grep/patches/nonlsable.patch
7 >
8 > This seems to be done in the main tree already, which looks the same:
9 > http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/sys-apps/grep/files/grep-2.5.1a-nls.patch
10
11 As lib/getopt.c is required on aix, patching that is necessary too.
12
13 And for lib/error.c one might prefer to not include libintl.h instead of
14 doing that ENABLE_NLS-conditionally, because there _could_ be
15 libintl.h's out there defining '_': see this lines in error.c:
16
17 59 #ifndef _
18 60 # define _(String) String
19 61 #endif
20
21 --- lib/error.c.orig 2007-04-11 14:33:05.571682000 +0200
22 +++ lib/error.c 2007-04-11 14:33:08.901567000 +0200
23 @@ -26,9 +26,6 @@
24 #endif
25
26 #include <stdio.h>
27 -#if HAVE_LIBINTL_H
28 -# include <libintl.h>
29 -#endif
30
31 #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
32 # if __STDC__
33
34
35 /haubi/
36
37
38 Salomon Automation GmbH - Friesachstraße 15 - A-8114 Friesach bei Graz
39 Sitz der Gesellschaft: Friesach bei Graz
40 UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
41 Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz
42
43 --
44 gentoo-alt@g.o mailing list