summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/apt/files')
-rw-r--r--meta/recipes-devtools/apt/files/apt.conf43
-rw-r--r--meta/recipes-devtools/apt/files/db_linking_hack.patch27
-rw-r--r--meta/recipes-devtools/apt/files/environment.patch13
-rw-r--r--meta/recipes-devtools/apt/files/no-curl.patch44
4 files changed, 127 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/files/apt.conf b/meta/recipes-devtools/apt/files/apt.conf
new file mode 100644
index 0000000000..2bd9ddbfaf
--- /dev/null
+++ b/meta/recipes-devtools/apt/files/apt.conf
@@ -0,0 +1,43 @@
1Dir "${STAGING_DIR_NATIVE}/"
2{
3 State "var/lib/apt/"
4 {
5 Lists "lists/";
6 status "${IMAGE_ROOTFS}/var/dpkg/status";
7 };
8 Cache "var/cache/apt/"
9 {
10 Archives "archives/";
11 pkgcache "";
12 srcpkgcache "";
13 };
14 Bin "${STAGING_BINDIR_NATIVE}/"
15 {
16 methods "${STAGING_LIBDIR}/apt/methods/";
17 gzip "/bin/gzip";
18 dpkg "dpkg";
19 dpkg-source "dpkg-source";
20 dpkg-buildpackage "dpkg-buildpackage";
21 apt-get "apt-get";
22 apt-cache "apt-cache";
23 };
24 Etc "etc/apt/"
25 {
26 Preferences "preferences";
27 };
28};
29
30APT
31{
32 Install-Recommends "true";
33 Immediate-Configure "false";
34 Architecture "i586";
35 Get
36 {
37 Assume-Yes "true";
38 Force-Yes "true"
39 };
40};
41
42DPkg::Options {"--root=${IMAGE_ROOTFS}";"--admindir=${IMAGE_ROOTFS}/var/dpkg";"--force-all";"--no-debsig"};
43};
diff --git a/meta/recipes-devtools/apt/files/db_linking_hack.patch b/meta/recipes-devtools/apt/files/db_linking_hack.patch
new file mode 100644
index 0000000000..3c8368b1ed
--- /dev/null
+++ b/meta/recipes-devtools/apt/files/db_linking_hack.patch
@@ -0,0 +1,27 @@
1Index: apt-0.7.3/configure.in
2===================================================================
3--- apt-0.7.3.orig/configure.in 2007-07-01 10:38:45.000000000 +0000
4+++ apt-0.7.3/configure.in 2007-08-21 13:39:26.000000000 +0000
5@@ -67,8 +67,20 @@
6 [AC_DEFINE(HAVE_BDB)
7 BDBLIB="-ldb"
8 AC_MSG_RESULT(yes)],
9- [BDBLIB=""
10- AC_MSG_RESULT(no)]
11+
12+ LIBS="$LIBS -lpthread"
13+ [AC_MSG_CHECKING(if we can link against BerkeleyDB with pthread)
14+ AC_LINK_IFELSE(
15+ [AC_LANG_PROGRAM(
16+ [#include <db.h>],
17+ [int r, s, t; db_version(&r, &s, &t);]
18+ )],
19+ [AC_DEFINE(HAVE_BDB)
20+ BDBLIB="-ldb -lpthread"
21+ AC_MSG_RESULT(yes)],
22+ [BDBLIB=""
23+ AC_MSG_RESULT(no)]
24+ )]
25 )]
26 )
27
diff --git a/meta/recipes-devtools/apt/files/environment.patch b/meta/recipes-devtools/apt/files/environment.patch
new file mode 100644
index 0000000000..5bea1a0130
--- /dev/null
+++ b/meta/recipes-devtools/apt/files/environment.patch
@@ -0,0 +1,13 @@
1Index: apt-0.6.46.2/buildlib/environment.mak.in
2===================================================================
3--- apt-0.6.46.2.orig/buildlib/environment.mak.in 2007-03-29 11:38:58.000000000 +0100
4+++ apt-0.6.46.2/buildlib/environment.mak.in 2007-03-29 11:39:12.000000000 +0100
5@@ -62,7 +62,7 @@
6
7 # Shared library things
8 HOST_OS = @host_os@
9-ifneq ($(words $(filter linux-gnu gnu% %gnu,$(HOST_OS))),0)
10+ifneq ($(words $(filter linux-gnu linux-gnueabi gnu% %gnu,$(HOST_OS))),0)
11 SONAME_MAGIC=-Wl,-soname -Wl,
12 LFLAGS_SO=
13 else
diff --git a/meta/recipes-devtools/apt/files/no-curl.patch b/meta/recipes-devtools/apt/files/no-curl.patch
new file mode 100644
index 0000000000..4e07c8f2dc
--- /dev/null
+++ b/meta/recipes-devtools/apt/files/no-curl.patch
@@ -0,0 +1,44 @@
1---
2 configure.in | 6 ------
3 methods/makefile | 7 -------
4 2 files changed, 13 deletions(-)
5
6--- apt-0.7.14.orig/configure.in
7+++ apt-0.7.14/configure.in
8@@ -84,16 +84,10 @@ AC_CHECK_HEADER(db.h,
9 )]
10 )
11
12 LIBS="$saveLIBS"
13
14-AC_CHECK_LIB(curl, curl_easy_init,
15- [AC_CHECK_HEADER(curl/curl.h,
16- curl_ok=yes,
17- curl_ok=no)],
18- AC_MSG_ERROR([failed: I need CURL due https support]),
19-)
20
21 AC_SUBST(BDBLIB)
22
23 dnl Converts the ARCH to be something singular for this general CPU family
24 dnl This is often the dpkg architecture string.
25--- apt-0.7.14.orig/methods/makefile
26+++ apt-0.7.14/methods/makefile
27@@ -50,17 +50,10 @@ PROGRAM=http
28 SLIBS = -lapt-pkg $(SOCKETLIBS)
29 LIB_MAKES = apt-pkg/makefile
30 SOURCE = http.cc rfc2553emu.cc connect.cc
31 include $(PROGRAM_H)
32
33-# The https method
34-PROGRAM=https
35-SLIBS = -lapt-pkg -lcurl
36-LIB_MAKES = apt-pkg/makefile
37-SOURCE = https.cc
38-include $(PROGRAM_H)
39-
40 # The ftp method
41 PROGRAM=ftp
42 SLIBS = -lapt-pkg $(SOCKETLIBS)
43 LIB_MAKES = apt-pkg/makefile
44 SOURCE = ftp.cc rfc2553emu.cc connect.cc