summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2013-03-01 17:06:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-05 13:14:54 +0000
commit9199c3391380f9ac56a33409c25194486062d7d4 (patch)
treef9331ca0f403b90bff695433058c3346df888324 /meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
parent7e2e2cf50855cd3f3546f0ec33d88075156011a0 (diff)
downloadpoky-9199c3391380f9ac56a33409c25194486062d7d4.tar.gz
apt: upgrade to 0.9.7.7
bb files: remove invalid config.sub/config.guess files (autotools will generate the correct files) allocate-larger-memory.patch: not needed anymore fix-gcc-4.6-null-not-defined.patch: added - include header that defines NULL includes-fix.patch: not needed anymore localefixes.patch: removed - not necessary anymore (no compiling errors) makerace.patch: adapted to the new version no-ko-translation.patch: adapted to the new version no-nls-dpkg.patch: added - fix build without nls noconfigure.patch: adapted to the new version nodoc.patch: adapted to the new version (apply patch on all cases because the doc generation needs docbook-xsl) remove-redeclaration.patch: not needed anymore truncate-filename.patch: moved use-host.patch: adapted to the new version no-curl.patch: adapted to the new version disable-configure-in-makefile.patch: added - do not run configure at do_compile (From OE-Core rev: 97403b14765331c8c48bb570c6b98f2809214a9a) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch')
-rw-r--r--meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch b/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
deleted file mode 100644
index 8d7c891545..0000000000
--- a/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
+++ /dev/null
@@ -1,63 +0,0 @@
1Fix build errors on gcc 4.7:
2
3deb/deblistparser.cc: In member function 'virtual short unsigned int debListParser::VersionHash()':
4deb/deblistparser.cc:212:13: error: redeclaration of 'char* I'
5deb/deblistparser.cc:202:22: error: 'const char** I' previously declared here
6
7Upstream-Status: Backport
8Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9---
10 apt-pkg/deb/deblistparser.cc | 10 +++++-----
11 cmdline/apt-get.cc | 8 ++++----
12 2 files changed, 9 insertions(+), 9 deletions(-)
13
14diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
15--- a/apt-pkg/deb/deblistparser.cc
16+++ b/apt-pkg/deb/deblistparser.cc
17@@ -209,18 +209,18 @@ unsigned short debListParser::VersionHash()
18 /* Strip out any spaces from the text, this undoes dpkgs reformatting
19 of certain fields. dpkg also has the rather interesting notion of
20 reformatting depends operators < -> <= */
21- char *I = S;
22+ char *J = S;
23 for (; Start != End; Start++)
24 {
25 if (isspace(*Start) == 0)
26- *I++ = tolower(*Start);
27+ *J++ = tolower(*Start);
28 if (*Start == '<' && Start[1] != '<' && Start[1] != '=')
29- *I++ = '=';
30+ *J++ = '=';
31 if (*Start == '>' && Start[1] != '>' && Start[1] != '=')
32- *I++ = '=';
33+ *J++ = '=';
34 }
35
36- Result = AddCRC16(Result,S,I - S);
37+ Result = AddCRC16(Result,S,J - S);
38 }
39
40 return Result;
41diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
42--- a/cmdline/apt-get.cc
43+++ b/cmdline/apt-get.cc
44@@ -1752,12 +1752,12 @@ bool DoInstall(CommandLine &CmdL)
45 if ((*Cache)[I].Install() == false)
46 continue;
47
48- const char **J;
49- for (J = CmdL.FileList + 1; *J != 0; J++)
50- if (strcmp(*J,I.Name()) == 0)
51+ const char **K;
52+ for (K = CmdL.FileList + 1; *K != 0; K++)
53+ if (strcmp(*K,I.Name()) == 0)
54 break;
55
56- if (*J == 0) {
57+ if (*K == 0) {
58 List += string(I.Name()) + " ";
59 VersionsList += string(Cache[I].CandVersion) + "\n";
60 }
61--
621.7.1
63