Hi,

On Tue, 2008-02-12 at 11:17:45 +0100, Natanael Copa wrote:
> Package: dpkg
> Version: 1.14.16.6

> dpkg fails to compile if there are no gettext and libintl.h even with
> the --disable-nls compile flag.

> There are some nice defines in lib/dpkg.h that defines _() as gettext()
> but unfortunally gettext() is used many places. The attatched patch
> fixes the lib/dpkg.h header to only include libintl.h when ENABLE_NLS is
> defined and it replaces gettext() with _() all places.

The problem here (from reading the gentoo bug report), is that uclibc is
being used, which seems to be defining __GLIBC__, and then gettext.h
tries to include 'libintl.h' which fails.

> If you prefer the current style and mix gettext() and _() the please at
> least add some dummy defines of gettext() in lib/dpkh.h (See
> https://bugs.gentoo.org/attachment.cgi?id=143289 for example how this
> can be done)

gettext() and friends should already be defined as a noop in
lib/gettext.h in case of --disable-nls. Also gettext() is used
explicitely when one does not want the xgettext command to extract its
strings (most of the time because those are variables instead).

I've just applied this patch instead, would be nice if you could test
it on your environment:

  <http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=8f8e9d9a>

regards,
guillem



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to