summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-23 23:24:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-23 23:41:09 +0000
commitdc2d701207435b0dbd521a11d152f11d0f18d11e (patch)
tree906e611cc0d2fc042a9a380596e08ba8a7a3306a /meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch
parentbb9dc861b724a620ad60e6e7e71eb54e4ec61589 (diff)
downloadpoky-dc2d701207435b0dbd521a11d152f11d0f18d11e.tar.gz
apt: Fix locale header and hardcoded libname issues
apt wasn't building on modern libc/compiler combinations due to missing header includes. The libcpp version was also being hardcoded, this patch generates it dynamically to work on different host systems which no longer have this. (From OE-Core rev: ca8237ee51053d70b5e7579c224a824db2be76b2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch')
-rw-r--r--meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch91
1 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch b/meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch
new file mode 100644
index 0000000000..80252732e2
--- /dev/null
+++ b/meta/recipes-devtools/apt/apt-0.7.14/localefixes.patch
@@ -0,0 +1,91 @@
1Add in missing header includes to resolve compile failures with recent
2compiler/glibc combinations.
3
4Upstream-Status: Inappropriate [Resolved upstream]
5
6RP 2011/11/23
7
8Index: apt-0.7.14/apt-pkg/init.cc
9===================================================================
10--- apt-0.7.14.orig/apt-pkg/init.cc 2011-11-23 22:48:53.544637868 +0000
11+++ apt-0.7.14/apt-pkg/init.cc 2011-11-23 22:48:59.456638260 +0000
12@@ -16,6 +16,7 @@
13 #include <config.h>
14 #include <cstdlib>
15 #include <sys/stat.h>
16+#include <locale>
17 /*}}}*/
18
19 #define Stringfy_(x) # x
20Index: apt-0.7.14/cmdline/apt-cache.cc
21===================================================================
22--- apt-0.7.14.orig/cmdline/apt-cache.cc 2011-11-23 22:53:29.048631067 +0000
23+++ apt-0.7.14/cmdline/apt-cache.cc 2011-11-23 22:54:15.784616212 +0000
24@@ -32,6 +32,7 @@
25 #include <apti18n.h>
26
27 #include <locale.h>
28+#include <locale>
29 #include <iostream>
30 #include <unistd.h>
31 #include <errno.h>
32Index: apt-0.7.14/cmdline/apt-cdrom.cc
33===================================================================
34--- apt-0.7.14.orig/cmdline/apt-cdrom.cc 2011-11-23 22:53:29.064631096 +0000
35+++ apt-0.7.14/cmdline/apt-cdrom.cc 2011-11-23 22:53:57.616630261 +0000
36@@ -27,6 +27,7 @@
37 //#include "indexcopy.h"
38
39 #include <locale.h>
40+#include <locale>
41 #include <iostream>
42 #include <fstream>
43 #include <vector>
44Index: apt-0.7.14/cmdline/apt-config.cc
45===================================================================
46--- apt-0.7.14.orig/cmdline/apt-config.cc 2011-11-23 22:50:16.796635352 +0000
47+++ apt-0.7.14/cmdline/apt-config.cc 2011-11-23 22:50:25.640633906 +0000
48@@ -27,6 +27,7 @@
49 #include <locale.h>
50 #include <iostream>
51 #include <string>
52+#include <locale>
53 /*}}}*/
54 using namespace std;
55
56Index: apt-0.7.14/cmdline/apt-extracttemplates.cc
57===================================================================
58--- apt-0.7.14.orig/cmdline/apt-extracttemplates.cc 2011-11-23 22:53:29.080631084 +0000
59+++ apt-0.7.14/cmdline/apt-extracttemplates.cc 2011-11-23 22:53:38.304630439 +0000
60@@ -39,6 +39,7 @@
61 #include <config.h>
62 #include <apti18n.h>
63 #include "apt-extracttemplates.h"
64+#include <locale>
65 /*}}}*/
66
67 using namespace std;
68Index: apt-0.7.14/cmdline/apt-get.cc
69===================================================================
70--- apt-0.7.14.orig/cmdline/apt-get.cc 2011-11-23 22:53:29.096631090 +0000
71+++ apt-0.7.14/cmdline/apt-get.cc 2011-11-23 22:53:49.368629452 +0000
72@@ -48,6 +48,7 @@
73
74 #include <set>
75 #include <locale.h>
76+#include <locale>
77 #include <langinfo.h>
78 #include <fstream>
79 #include <termios.h>
80Index: apt-0.7.14/cmdline/apt-sortpkgs.cc
81===================================================================
82--- apt-0.7.14.orig/cmdline/apt-sortpkgs.cc 2011-11-23 22:52:03.872640247 +0000
83+++ apt-0.7.14/cmdline/apt-sortpkgs.cc 2011-11-23 22:52:10.880638611 +0000
84@@ -27,6 +27,7 @@
85
86 #include <locale.h>
87 #include <unistd.h>
88+#include <locale>
89 /*}}}*/
90
91 using namespace std;