summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-03-23 17:56:29 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-06 01:12:45 +0100
commit0dacda90b98b2e66055427e9dead08b40188b8a9 (patch)
tree00af7b8ee2a9b2eb4754ab298b0b6c9dff857976 /meta/recipes-support
parent98291b5ed212923f49090f406fb6bcf92ceed550 (diff)
downloadpoky-0dacda90b98b2e66055427e9dead08b40188b8a9.tar.gz
gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm
ndbm.h is needed by python for dbm module. This is why -enable-libgdbm-compat was added to configure. The second change is because python is looking for the gdbm headers in include/gdbm. The easiest way to solve this issue is to add symlinks in include/gdbm. [YOCTO #1937] (From OE-Core rev: e4d2ee00419f675ba8b7fb5d75256762253d8b32) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/gdbm/gdbm_1.10.bb13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-support/gdbm/gdbm_1.10.bb b/meta/recipes-support/gdbm/gdbm_1.10.bb
index 9b2fde4539..26b80093e7 100644
--- a/meta/recipes-support/gdbm/gdbm_1.10.bb
+++ b/meta/recipes-support/gdbm/gdbm_1.10.bb
@@ -4,7 +4,7 @@ SECTION = "libs"
4LICENSE = "GPLv3" 4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" 5LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
6 6
7PR = "r1" 7PR = "r2"
8 8
9SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz" 9SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
10 10
@@ -13,4 +13,15 @@ SRC_URI[sha256sum] = "23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db
13 13
14inherit autotools gettext lib_package 14inherit autotools gettext lib_package
15 15
16# Needed for dbm python module
17EXTRA_OECONF = "-enable-libgdbm-compat"
18
16BBCLASSEXTEND = "native nativesdk" 19BBCLASSEXTEND = "native nativesdk"
20
21do_install_append () {
22 # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
23 # these headers
24 install -d ${D}${includedir}/gdbm
25 ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
26 ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
27}