summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
diff options
context:
space:
mode:
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.patch57
1 files changed, 0 insertions, 57 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 68cb0b0265..0000000000
--- a/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1Fix build errors
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: Khem Raj <raj.khem@gmail.com>
9Index: apt-0.7.14/apt-pkg/deb/deblistparser.cc
10===================================================================
11--- apt-0.7.14.orig/apt-pkg/deb/deblistparser.cc 2012-03-30 11:17:09.112456632 -0700
12+++ apt-0.7.14/apt-pkg/deb/deblistparser.cc 2012-03-30 11:25:40.484481643 -0700
13@@ -209,18 +209,18 @@
14 /* Strip out any spaces from the text, this undoes dpkgs reformatting
15 of certain fields. dpkg also has the rather interesting notion of
16 reformatting depends operators < -> <= */
17- char *I = S;
18+ char *J = S;
19 for (; Start != End; Start++)
20 {
21 if (isspace(*Start) == 0)
22- *I++ = tolower(*Start);
23+ *J++ = tolower(*Start);
24 if (*Start == '<' && Start[1] != '<' && Start[1] != '=')
25- *I++ = '=';
26+ *J++ = '=';
27 if (*Start == '>' && Start[1] != '>' && Start[1] != '=')
28- *I++ = '=';
29+ *J++ = '=';
30 }
31
32- Result = AddCRC16(Result,S,I - S);
33+ Result = AddCRC16(Result,S,J - S);
34 }
35
36 return Result;
37Index: apt-0.7.14/cmdline/apt-get.cc
38===================================================================
39--- apt-0.7.14.orig/cmdline/apt-get.cc 2012-03-30 11:28:56.048490824 -0700
40+++ apt-0.7.14/cmdline/apt-get.cc 2012-03-30 11:32:00.248499740 -0700
41@@ -1752,12 +1752,12 @@
42 if ((*Cache)[I].Install() == false)
43 continue;
44
45- const char **J;
46- for (J = CmdL.FileList + 1; *J != 0; J++)
47- if (strcmp(*J,I.Name()) == 0)
48+ const char **K;
49+ for (K = CmdL.FileList + 1; *K != 0; J++)
50+ if (strcmp(*K,I.Name()) == 0)
51 break;
52
53- if (*J == 0) {
54+ if (*K == 0) {
55 List += string(I.Name()) + " ";
56 VersionsList += string(Cache[I].CandVersion) + "\n";
57 }