summaryrefslogtreecommitdiffstats
path: root/meta/packages/apt/files
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-21 14:00:13 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-21 14:00:13 +0000
commit2075cb72ac072d658f68c15e1f0e1e41b1e96233 (patch)
treee13c6591b132cf6ed3faedff79ed4717a1d0767d /meta/packages/apt/files
parenta4b8304b62d6bf4b522769d5d9283050a5e63f3c (diff)
downloadpoky-2075cb72ac072d658f68c15e1f0e1e41b1e96233.tar.gz
apt: Add db/db-native as a DEPENDS so apt-ftparchive gets built (needed by deb rootfs creation
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2531 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/apt/files')
-rw-r--r--meta/packages/apt/files/db_linking_hack.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/packages/apt/files/db_linking_hack.patch b/meta/packages/apt/files/db_linking_hack.patch
new file mode 100644
index 0000000000..3c8368b1ed
--- /dev/null
+++ b/meta/packages/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