diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-06-28 21:42:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:39:59 +0100 |
commit | dcd361f9ebadf1319bfcf8fe41e38a569c47da0b (patch) | |
tree | e62287fa4451e7404570d54bd6fc994531e2d6f7 /meta/recipes-support/gdbm | |
parent | 2d65e23f2d86726f5e6957f275821cd296e05ca2 (diff) | |
download | poky-dcd361f9ebadf1319bfcf8fe41e38a569c47da0b.tar.gz |
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.
(From OE-Core rev: f2abe18d2a3c9c4ff2b6b442bc496fd3b2203598)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gdbm')
-rw-r--r-- | meta/recipes-support/gdbm/gdbm_1.8.3.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-support/gdbm/gdbm_1.8.3.bb b/meta/recipes-support/gdbm/gdbm_1.8.3.bb index 2331d1df3a..af01b6c407 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 | |||
17 | inherit autotools texinfo | 17 | inherit autotools texinfo |
18 | 18 | ||
19 | BBCLASSEXTEND = "native nativesdk" | 19 | BBCLASSEXTEND = "native nativesdk" |
20 | |||
21 | do_install_append () { | ||
22 | install -d ${D}${includedir}/gdbm | ||
23 | install -m 0644 ${S}/dbm.h ${D}${includedir}/ | ||
24 | install -m 0644 ${S}/ndbm.h ${D}${includedir}/ | ||
25 | # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find | ||
26 | # these headers | ||
27 | ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h | ||
28 | ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h | ||
29 | } | ||