summaryrefslogtreecommitdiff
path: root/meta/packages/apt/apt-0.7.14
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-07-23 17:33:31 +0100
committerJoshua Lock <josh@linux.intel.com>2010-08-02 18:08:30 +0100
commit29b4c2945f50e94a444303241b638ad5a54c0dbc (patch)
tree006e338ced99e33806f6224ac3ec80e773f394ec /meta/packages/apt/apt-0.7.14
parentfa8c028fd005b87ad2e64c5b93221412355d94a6 (diff)
downloadopenembedded-core-29b4c2945f50e94a444303241b638ad5a54c0dbc.tar.gz
openembedded-core-29b4c2945f50e94a444303241b638ad5a54c0dbc.tar.bz2
openembedded-core-29b4c2945f50e94a444303241b638ad5a54c0dbc.tar.xz
openembedded-core-29b4c2945f50e94a444303241b638ad5a54c0dbc.zip
apt: fix builds with modern GCC
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/apt/apt-0.7.14')
-rw-r--r--meta/packages/apt/apt-0.7.14/includes-fix.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/packages/apt/apt-0.7.14/includes-fix.patch b/meta/packages/apt/apt-0.7.14/includes-fix.patch
new file mode 100644
index 000000000..f4661648e
--- /dev/null
+++ b/meta/packages/apt/apt-0.7.14/includes-fix.patch
@@ -0,0 +1,42 @@
+Add missing includes required when building with modern toolchain, based on
+patch from Debian bugzilla:
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505954
+
+Should no longer be required once upgraded to 0.7.22 or later.
+
+Index: apt-0.7.14/apt-pkg/acquire.cc
+===================================================================
+--- apt-0.7.14.orig/apt-pkg/acquire.cc 2008-05-28 14:22:13.000000000 +0100
++++ apt-0.7.14/apt-pkg/acquire.cc 2010-07-23 17:30:11.494883936 +0100
+@@ -22,6 +22,7 @@
+
+ #include <apti18n.h>
+
++#include <cstdio>
+ #include <iostream>
+ #include <sstream>
+
+Index: apt-0.7.14/apt-pkg/contrib/sha256.h
+===================================================================
+--- apt-0.7.14.orig/apt-pkg/contrib/sha256.h 2008-05-28 14:22:14.000000000 +0100
++++ apt-0.7.14/apt-pkg/contrib/sha256.h 2010-07-23 17:30:11.494883936 +0100
+@@ -14,6 +14,7 @@
+ #ifndef APTPKG_SHA256_H
+ #define APTPKG_SHA256_H
+
++#include <stdint.h>
+ #include <string>
+ #include <cstring>
+ #include <algorithm>
+Index: apt-0.7.14/apt-pkg/deb/dpkgpm.cc
+===================================================================
+--- apt-0.7.14.orig/apt-pkg/deb/dpkgpm.cc 2008-05-28 14:22:14.000000000 +0100
++++ apt-0.7.14/apt-pkg/deb/dpkgpm.cc 2010-07-23 17:30:36.960856870 +0100
+@@ -20,6 +20,7 @@
+ #include <stdlib.h>
+ #include <fcntl.h>
+ #include <sys/select.h>
++#include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <signal.h>