summaryrefslogtreecommitdiffstats
path: root/poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch')
-rw-r--r--poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch b/poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch
new file mode 100644
index 000000000..98b6c96ca
--- /dev/null
+++ b/poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch
@@ -0,0 +1,28 @@
+Upstream-Status: Pending
+
+Index: apt-1.2.24/apt-pkg/deb/dpkgpm.cc
+===================================================================
+--- apt-1.2.24.orig/apt-pkg/deb/dpkgpm.cc
++++ apt-1.2.24/apt-pkg/deb/dpkgpm.cc
+@@ -54,6 +54,12 @@
+ #include <apti18n.h>
+ /*}}}*/
+
++#ifdef USE_NLS
++#define _dpkg(x) dgettext("dpkg", x)
++#else
++#define _dpkg(x) x
++#endif
++
+ using namespace std;
+
+ APT_PURE static string
+@@ -1703,7 +1709,7 @@ void pkgDPkgPM::WriteApportReport(const
+ }
+
+ // check if its not a follow up error
+- const char *needle = dgettext("dpkg", "dependency problems - leaving unconfigured");
++ const char *needle = _dpkg("dependency problems - leaving unconfigured");
+ if(strstr(errormsg, needle) != NULL) {
+ std::clog << _("No apport report written because the error message indicates its a followup error from a previous failure.") << std::endl;
+ return;
OpenPOWER on IntegriCloud