<div class="gmail_quote">On Wed, Apr 11, 2012 at 17:25, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wed, Apr 11, 2012 at 4:18 PM, Andrei Gherzan <<a href="mailto:andrei@gherzan.ro">andrei@gherzan.ro</a>> wrote:<br>
> ndbm.h is needed by python for dbm module. This is why -enable-libgdbm-compat was added<br>
> to configure.<br>
> The second change is because python is looking for the gdbm headers in include/gdbm.<br>
> The easiest way to solve this issue is to add symlinks in include/gdbm.<br>
><br>
> In order to avoid breaking packages which depend on old package name libgdbm4 (>= 1.10),<br>
> compat libs are packaged into a separate package named gdbm-compat.<br>
><br>
> [YOCTO #1937]<br>
><br>
> Signed-off-by: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro">andrei@gherzan.ro</a>><br>
> ---<br>
> meta/recipes-support/gdbm/<a href="http://gdbm_1.10.bb" target="_blank">gdbm_1.10.bb</a> | 18 +++++++++++++++++-<br>
> 1 files changed, 17 insertions(+), 1 deletions(-)<br>
><br>
> diff --git a/meta/recipes-support/gdbm/<a href="http://gdbm_1.10.bb" target="_blank">gdbm_1.10.bb</a> b/meta/recipes-support/gdbm/<a href="http://gdbm_1.10.bb" target="_blank">gdbm_1.10.bb</a><br>
> index 9b2fde4..40bdd86 100644<br>
> --- a/meta/recipes-support/gdbm/<a href="http://gdbm_1.10.bb" target="_blank">gdbm_1.10.bb</a><br>
> +++ b/meta/recipes-support/gdbm/<a href="http://gdbm_1.10.bb" target="_blank">gdbm_1.10.bb</a><br>
> @@ -4,7 +4,7 @@ SECTION = "libs"<br>
> LICENSE = "GPLv3"<br>
> LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"<br>
><br>
> -PR = "r1"<br>
> +PR = "r2"<br>
><br>
> SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"<br>
><br>
> @@ -13,4 +13,20 @@ SRC_URI[sha256sum] = "23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db<br>
><br>
> inherit autotools gettext lib_package<br>
><br>
> +# Needed for dbm python module<br>
> +EXTRA_OECONF = "-enable-libgdbm-compat"<br>
> +<br>
> BBCLASSEXTEND = "native nativesdk"<br>
> +<br>
> +do_install_append () {<br>
> + # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find<br>
> + # these headers<br>
> + install -d ${D}${includedir}/gdbm<br>
> + ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h<br>
> + ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h<br>
> +}<br>
> +<br>
<br>
</div></div>^^ whole part above was already applied in<br>
<a href="http://git.openembedded.org/openembedded-core/commit/?id=e4d2ee00419f675ba8b7fb5d75256762253d8b32" target="_blank">http://git.openembedded.org/openembedded-core/commit/?id=e4d2ee00419f675ba8b7fb5d75256762253d8b32</a><br>
<br><br></blockquote><div> </div><div>Thanks. Didn't see that. Rebased. </div></div>@g