summaryrefslogtreecommitdiffstats
path: root/meta
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
parentfa8c028fd005b87ad2e64c5b93221412355d94a6 (diff)
downloadpoky-29b4c2945f50e94a444303241b638ad5a54c0dbc.tar.gz
apt: fix builds with modern GCC
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/apt/apt-0.7.14/includes-fix.patch42
-rw-r--r--meta/packages/apt/apt-native.inc2
-rw-r--r--meta/packages/apt/apt-native_0.7.14.bb9
-rw-r--r--meta/packages/apt/apt.inc4
-rw-r--r--meta/packages/apt/apt_0.7.14.bb5
5 files changed, 53 insertions, 9 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 0000000000..f4661648ea
--- /dev/null
+++ b/meta/packages/apt/apt-0.7.14/includes-fix.patch
@@ -0,0 +1,42 @@
1Add missing includes required when building with modern toolchain, based on
2patch from Debian bugzilla:
3http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505954
4
5Should no longer be required once upgraded to 0.7.22 or later.
6
7Index: apt-0.7.14/apt-pkg/acquire.cc
8===================================================================
9--- apt-0.7.14.orig/apt-pkg/acquire.cc 2008-05-28 14:22:13.000000000 +0100
10+++ apt-0.7.14/apt-pkg/acquire.cc 2010-07-23 17:30:11.494883936 +0100
11@@ -22,6 +22,7 @@
12
13 #include <apti18n.h>
14
15+#include <cstdio>
16 #include <iostream>
17 #include <sstream>
18
19Index: apt-0.7.14/apt-pkg/contrib/sha256.h
20===================================================================
21--- apt-0.7.14.orig/apt-pkg/contrib/sha256.h 2008-05-28 14:22:14.000000000 +0100
22+++ apt-0.7.14/apt-pkg/contrib/sha256.h 2010-07-23 17:30:11.494883936 +0100
23@@ -14,6 +14,7 @@
24 #ifndef APTPKG_SHA256_H
25 #define APTPKG_SHA256_H
26
27+#include <stdint.h>
28 #include <string>
29 #include <cstring>
30 #include <algorithm>
31Index: apt-0.7.14/apt-pkg/deb/dpkgpm.cc
32===================================================================
33--- apt-0.7.14.orig/apt-pkg/deb/dpkgpm.cc 2008-05-28 14:22:14.000000000 +0100
34+++ apt-0.7.14/apt-pkg/deb/dpkgpm.cc 2010-07-23 17:30:36.960856870 +0100
35@@ -20,6 +20,7 @@
36 #include <stdlib.h>
37 #include <fcntl.h>
38 #include <sys/select.h>
39+#include <sys/stat.h>
40 #include <sys/types.h>
41 #include <sys/wait.h>
42 #include <signal.h>
diff --git a/meta/packages/apt/apt-native.inc b/meta/packages/apt/apt-native.inc
index 554ae078fe..b16f99e93c 100644
--- a/meta/packages/apt/apt-native.inc
+++ b/meta/packages/apt/apt-native.inc
@@ -5,7 +5,7 @@ DEPENDS += "dpkg-native gettext-native"
5PACKAGES = "" 5PACKAGES = ""
6USE_NLS = "yes" 6USE_NLS = "yes"
7 7
8SRC_URI += "file://db_linking_hack.patch;patch=1" 8SRC_URI += "file://db_linking_hack.patch"
9 9
10python do_install () { 10python do_install () {
11 bb.build.exec_func('do_install_base', d) 11 bb.build.exec_func('do_install_base', d)
diff --git a/meta/packages/apt/apt-native_0.7.14.bb b/meta/packages/apt/apt-native_0.7.14.bb
index 268e9df720..2f04b72cab 100644
--- a/meta/packages/apt/apt-native_0.7.14.bb
+++ b/meta/packages/apt/apt-native_0.7.14.bb
@@ -1,7 +1,8 @@
1require apt-native.inc 1require apt-native.inc
2 2
3PR = "r2" 3PR = "r3"
4 4
5SRC_URI += "file://nodoc.patch;patch=1 \ 5SRC_URI += "file://nodoc.patch \
6 file://noconfigure.patch;patch=1 \ 6 file://noconfigure.patch \
7 file://no-curl.patch;patch=1" 7 file://no-curl.patch \
8 file://includes-fix.patch"
diff --git a/meta/packages/apt/apt.inc b/meta/packages/apt/apt.inc
index 0913a7fcb4..546683f9bc 100644
--- a/meta/packages/apt/apt.inc
+++ b/meta/packages/apt/apt.inc
@@ -3,8 +3,8 @@ LICENSE = "GPL"
3SECTION = "base" 3SECTION = "base"
4 4
5SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz \ 5SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz \
6 file://no-ko-translation.patch;patch=1 \ 6 file://no-ko-translation.patch \
7 file://use-host.patch;patch=1 \ 7 file://use-host.patch \
8 " 8 "
9 9
10inherit autotools gettext 10inherit autotools gettext
diff --git a/meta/packages/apt/apt_0.7.14.bb b/meta/packages/apt/apt_0.7.14.bb
index 1a9cf3602d..0ea9b48142 100644
--- a/meta/packages/apt/apt_0.7.14.bb
+++ b/meta/packages/apt/apt_0.7.14.bb
@@ -3,9 +3,10 @@ RDEPENDS = "dpkg"
3 3
4require apt.inc 4require apt.inc
5 5
6PR = "r2" 6PR = "r3"
7 7
8SRC_URI += "file://nodoc.patch;patch=1" 8SRC_URI += "file://nodoc.patch \
9 file://includes-fix.patch"
9 10
10require apt-package.inc 11require apt-package.inc
11 12