[oe-commits] Robert Yang : gdbm 1.8.3: install ndbm.h and dbm.h

git at git.openembedded.org git at git.openembedded.org
Mon Jun 29 08:28:25 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 7372ca8c0e4d9a0d77dc417173fc5823b389d6fc
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7372ca8c0e4d9a0d77dc417173fc5823b389d6fc

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Sun Jun 28 21:42:29 2015 -0700

gdbm 1.8.3: install ndbm.h and dbm.h

There are gdbm 1.8.3 and gdbm 1.11, while 1.8.3 is GPLv2, it should
install ndbm.h and dbm.h as what 1.11 does, to make perl build OK when
non-gplv3 build.

Fixed when perl build: (non-gplv3 buld)
| NDBM_File.xs:18:60: fatal error: gdbm/ndbm.h: No such file or directory
|  #  include <gdbm/ndbm.h> /* RedHat compatibility version */
|                                                             ^
| compilation terminated.

And:
| ODBM_File.xs:8:19: fatal error: dbm.h: No such file or directory
|  #  include <dbm.h>
|                    ^
| compilation terminated.

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/gdbm/gdbm_1.8.3.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-support/gdbm/gdbm_1.8.3.bb b/meta/recipes-support/gdbm/gdbm_1.8.3.bb
index 2331d1d..af01b6c 100644
--- a/meta/recipes-support/gdbm/gdbm_1.8.3.bb
+++ b/meta/recipes-support/gdbm/gdbm_1.8.3.bb
@@ -17,3 +17,13 @@ SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a
 inherit autotools texinfo
 
 BBCLASSEXTEND = "native nativesdk"
+
+do_install_append () {
+    install -d ${D}${includedir}/gdbm
+    install -m 0644 ${S}/dbm.h ${D}${includedir}/
+    install -m 0644 ${S}/ndbm.h ${D}${includedir}/
+    # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
+    # these headers
+    ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
+    ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
+}



More information about the Openembedded-commits mailing list