Explorar o código

build: Set DEFAULT_TEXT_DOMAIN to @PACKAGE@ for libdpkg

This makes sure the gettext() calls in the library code get the correct
domain name, otherwise if the program is using a domain other than
@PACKAGE@ (in this case dpkg), then it will not be able to find the
correct translations.
Guillem Jover %!s(int64=13) %!d(string=hai) anos
pai
achega
fec5e3dee7
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 2 0
      debian/changelog
  2. 1 0
      lib/dpkg/Makefile.am

+ 2 - 0
debian/changelog

@@ -87,6 +87,8 @@ dpkg (1.17.2) UNRELEASED; urgency=low
   * Fix crashes in the first call to gettext() after fork() on Mac OS X, by
   * Fix crashes in the first call to gettext() after fork() on Mac OS X, by
     forcing the initialization at program start of the CoreFoundation cached
     forcing the initialization at program start of the CoreFoundation cached
     values in libintl.
     values in libintl.
+  * Set a default gettext domain for libdpkg code, so that other programs
+    using a different domain can still get correct translations, like dselect.
 
 
   [ Updated programs translations ]
   [ Updated programs translations ]
   * German (Sven Joachim).
   * German (Sven Joachim).

+ 1 - 0
lib/dpkg/Makefile.am

@@ -8,6 +8,7 @@ AM_CPPFLAGS = \
 	-DLOCALEDIR=\"$(localedir)\" \
 	-DLOCALEDIR=\"$(localedir)\" \
 	-DCONFIGDIR=\"$(pkgconfdir)\" \
 	-DCONFIGDIR=\"$(pkgconfdir)\" \
 	-DADMINDIR=\"$(admindir)\" \
 	-DADMINDIR=\"$(admindir)\" \
+	-DDEFAULT_TEXT_DOMAIN=\"@PACKAGE@\" \
 	-idirafter $(top_srcdir)/lib/compat \
 	-idirafter $(top_srcdir)/lib/compat \
 	-I$(top_builddir) \
 	-I$(top_builddir) \
 	-I$(top_srcdir)/lib
 	-I$(top_srcdir)/lib