mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
98291b5ed2
commit
0dacda90b9
@@ -4,7 +4,7 @@ SECTION = "libs"
|
|||||||
LICENSE = "GPLv3"
|
LICENSE = "GPLv3"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
|
||||||
|
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
|
|
||||||
SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
|
SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
|
||||||
|
|
||||||
@@ -13,4 +13,15 @@ SRC_URI[sha256sum] = "23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db
|
|||||||
|
|
||||||
inherit autotools gettext lib_package
|
inherit autotools gettext lib_package
|
||||||
|
|
||||||
|
# Needed for dbm python module
|
||||||
|
EXTRA_OECONF = "-enable-libgdbm-compat"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|
||||||
|
do_install_append () {
|
||||||
|
# Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
|
||||||
|
# these headers
|
||||||
|
install -d ${D}${includedir}/gdbm
|
||||||
|
ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
|
||||||
|
ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user