summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.7.14
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-06-07 16:37:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-08 11:43:22 +0100
commit9e7c9151147363a2ebc30612fc87d667a96af0f8 (patch)
tree908822127aad5256ee7bb06387938175836812a7 /meta/recipes-devtools/apt/apt-0.7.14
parent9a519998f4e64dc067882c9fcd4416db49fccccd (diff)
downloadast2050-yocto-poky-9e7c9151147363a2ebc30612fc87d667a96af0f8.zip
ast2050-yocto-poky-9e7c9151147363a2ebc30612fc87d667a96af0f8.tar.gz
apt-get 0.7.14: hangs at runtime
This patch had a little problem, it made a infinite loop: for (K = CmdL.FileList + 1; *K != 0; J++) But the value of "K" will nerver change, so the apt-get hangs, revert this patch first, and will fix the problem in another patch. Note: Increment the PR from 11 to 12 Revert "apt: Fix a latent bug exposed by gcc 4.7" This reverts commit 9d526462fe97564652771812ad1d363e9962b1e3. [YOCTO #2488] (From OE-Core rev: 1e381c83396a65c6c93b8fc1f4e35564c52bd042) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt/apt-0.7.14')
-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 68cb0b0..0000000
--- a/meta/recipes-devtools/apt/apt-0.7.14/remove-redeclaration.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-Fix build errors
-
-deb/deblistparser.cc: In member function 'virtual short unsigned int debListParser::VersionHash()':
-deb/deblistparser.cc:212:13: error: redeclaration of 'char* I'
-deb/deblistparser.cc:202:22: error: 'const char** I' previously declared here
-
-Upstream-Status: Backport
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-Index: apt-0.7.14/apt-pkg/deb/deblistparser.cc
-===================================================================
---- apt-0.7.14.orig/apt-pkg/deb/deblistparser.cc 2012-03-30 11:17:09.112456632 -0700
-+++ apt-0.7.14/apt-pkg/deb/deblistparser.cc 2012-03-30 11:25:40.484481643 -0700
-@@ -209,18 +209,18 @@
- /* Strip out any spaces from the text, this undoes dpkgs reformatting
- of certain fields. dpkg also has the rather interesting notion of
- reformatting depends operators < -> <= */
-- char *I = S;
-+ char *J = S;
- for (; Start != End; Start++)
- {
- if (isspace(*Start) == 0)
-- *I++ = tolower(*Start);
-+ *J++ = tolower(*Start);
- if (*Start == '<' && Start[1] != '<' && Start[1] != '=')
-- *I++ = '=';
-+ *J++ = '=';
- if (*Start == '>' && Start[1] != '>' && Start[1] != '=')
-- *I++ = '=';
-+ *J++ = '=';
- }
-
-- Result = AddCRC16(Result,S,I - S);
-+ Result = AddCRC16(Result,S,J - S);
- }
-
- return Result;
-Index: apt-0.7.14/cmdline/apt-get.cc
-===================================================================
---- apt-0.7.14.orig/cmdline/apt-get.cc 2012-03-30 11:28:56.048490824 -0700
-+++ apt-0.7.14/cmdline/apt-get.cc 2012-03-30 11:32:00.248499740 -0700
-@@ -1752,12 +1752,12 @@
- if ((*Cache)[I].Install() == false)
- continue;
-
-- const char **J;
-- for (J = CmdL.FileList + 1; *J != 0; J++)
-- if (strcmp(*J,I.Name()) == 0)
-+ const char **K;
-+ for (K = CmdL.FileList + 1; *K != 0; J++)
-+ if (strcmp(*K,I.Name()) == 0)
- break;
-
-- if (*J == 0) {
-+ if (*K == 0) {
- List += string(I.Name()) + " ";
- VersionsList += string(Cache[I].CandVersion) + "\n";
- }
OpenPOWER on IntegriCloud