diff options
Diffstat (limited to 'meta/recipes-support/gdbm')
-rw-r--r-- | meta/recipes-support/gdbm/files/ptest.patch | 26 | ||||
-rwxr-xr-x | meta/recipes-support/gdbm/files/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-support/gdbm/gdbm_1.23.bb (renamed from meta/recipes-support/gdbm/gdbm_1.19.bb) | 14 |
3 files changed, 24 insertions, 18 deletions
diff --git a/meta/recipes-support/gdbm/files/ptest.patch b/meta/recipes-support/gdbm/files/ptest.patch index 1e67dbd554..25fb6bb2f4 100644 --- a/meta/recipes-support/gdbm/files/ptest.patch +++ b/meta/recipes-support/gdbm/files/ptest.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 41448708e163c8ec1f980464e7dd6741db427c8a Mon Sep 17 00:00:00 2001 | 1 | From 8bea84a598b51a7ac7e50aa8f0f20857a9b6b07b Mon Sep 17 00:00:00 2001 |
2 | From: Josep Puigdemont <josep.puigdemont@enea.com> | 2 | From: Josep Puigdemont <josep.puigdemont@enea.com> |
3 | Date: Sun, 4 May 2014 16:02:07 +0200 | 3 | Date: Sun, 4 May 2014 16:02:07 +0200 |
4 | Subject: [PATCH] Add install-ptest rules. | 4 | Subject: [PATCH] Add install-ptest rules. |
@@ -9,16 +9,16 @@ Upstream-Status: Pending | |||
9 | 9 | ||
10 | --- | 10 | --- |
11 | Makefile.am | 5 +++++ | 11 | Makefile.am | 5 +++++ |
12 | tests/Makefile.am | 11 +++++++++++ | 12 | tests/Makefile.am | 12 ++++++++++++ |
13 | 2 files changed, 16 insertions(+) | 13 | 2 files changed, 17 insertions(+) |
14 | 14 | ||
15 | diff --git a/Makefile.am b/Makefile.am | 15 | diff --git a/Makefile.am b/Makefile.am |
16 | index ecc03df..9fbbda5 100644 | 16 | index 59e2643..5f3ceb0 100644 |
17 | --- a/Makefile.am | 17 | --- a/Makefile.am |
18 | +++ b/Makefile.am | 18 | +++ b/Makefile.am |
19 | @@ -55,3 +55,8 @@ ChangeLog: | 19 | @@ -64,3 +64,8 @@ ChangeLog: |
20 | awk -f $(top_srcdir)/git2chg.awk \ | 20 | mv ChangeLog.tmp ChangeLog; \ |
21 | -v append=$(top_srcdir)/$(prev_change_log) > ChangeLog; \ | 21 | rm -f ChangeLog.tmp; \ |
22 | fi | 22 | fi |
23 | + | 23 | + |
24 | +install-ptest: | 24 | +install-ptest: |
@@ -26,13 +26,14 @@ index ecc03df..9fbbda5 100644 | |||
26 | + $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \ | 26 | + $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \ |
27 | + done | 27 | + done |
28 | diff --git a/tests/Makefile.am b/tests/Makefile.am | 28 | diff --git a/tests/Makefile.am b/tests/Makefile.am |
29 | index dbe17dd..06f537f 100644 | 29 | index fac6826..5dc2091 100644 |
30 | --- a/tests/Makefile.am | 30 | --- a/tests/Makefile.am |
31 | +++ b/tests/Makefile.am | 31 | +++ b/tests/Makefile.am |
32 | @@ -169,3 +169,14 @@ EXTRA_DIST += \ | 32 | @@ -143,3 +143,15 @@ d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
33 | gdbmtool/base.exp\ | 33 | t_wordwrap_LDADD = ../tools/libgdbmapp.a |
34 | config/default.exp | ||
35 | 34 | ||
35 | SUBDIRS = gdbmtool | ||
36 | + | ||
36 | +buildtests: $(check_PROGRAMS) $(TESTSUITE) | 37 | +buildtests: $(check_PROGRAMS) $(TESTSUITE) |
37 | + | 38 | + |
38 | +install-ptest: $(check_PROGRAMS) $(TESTSUITE) | 39 | +install-ptest: $(check_PROGRAMS) $(TESTSUITE) |
@@ -44,3 +45,6 @@ index dbe17dd..06f537f 100644 | |||
44 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ | 45 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ |
45 | + fi \ | 46 | + fi \ |
46 | + done | 47 | + done |
48 | -- | ||
49 | 2.25.1 | ||
50 | |||
diff --git a/meta/recipes-support/gdbm/files/run-ptest b/meta/recipes-support/gdbm/files/run-ptest index 615da8444b..8d6481185d 100755 --- a/meta/recipes-support/gdbm/files/run-ptest +++ b/meta/recipes-support/gdbm/files/run-ptest | |||
@@ -4,4 +4,4 @@ | |||
4 | 4 | ||
5 | cd tests | 5 | cd tests |
6 | 6 | ||
7 | ./testsuite AUTOTEST_PATH=$PWD abs_builddir=$PWD COMPAT=1 | sed 's/^[^0-9]*\([0-9]\+\): \(.*\)\(ok\|pass\|skipped\|fail\|FAILED\)\(.*\)$/\3: \2 \4/;s/ \+/ /g;s/^ok/PASS/;s/^skipped/SKIP/;s/^fail/FAIL/;s/^FAILED/FAIL/' | 7 | ./testsuite --am-fmt AUTOTEST_PATH=$PWD abs_builddir=$PWD COMPAT=1 |
diff --git a/meta/recipes-support/gdbm/gdbm_1.19.bb b/meta/recipes-support/gdbm/gdbm_1.23.bb index 1f390a4aa2..a08079741d 100644 --- a/meta/recipes-support/gdbm/gdbm_1.19.bb +++ b/meta/recipes-support/gdbm/gdbm_1.23.bb | |||
@@ -1,7 +1,10 @@ | |||
1 | SUMMARY = "Key/value database library with extensible hashing" | 1 | SUMMARY = "Key/value database library with extensible hashing" |
2 | DESCRIPTION = "Library of database functions that use extensible hashing \ | ||
3 | and work similar to the standard UNIX dbm. These routines are provided \ | ||
4 | to a programmer needing to create and manipulate a hashed database." | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdbm/" | 5 | HOMEPAGE = "http://www.gnu.org/software/gdbm/" |
3 | SECTION = "libs" | 6 | SECTION = "libs" |
4 | LICENSE = "GPLv3" | 7 | LICENSE = "GPL-3.0-only" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" |
6 | 9 | ||
7 | 10 | ||
@@ -10,8 +13,7 @@ SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \ | |||
10 | file://ptest.patch \ | 13 | file://ptest.patch \ |
11 | " | 14 | " |
12 | 15 | ||
13 | SRC_URI[md5sum] = "aeb29c6a90350a4c959cd1df38cd0a7e" | 16 | SRC_URI[sha256sum] = "74b1081d21fff13ae4bd7c16e5d6e504a4c26f7cde1dca0d963a484174bbcacd" |
14 | SRC_URI[sha256sum] = "37ed12214122b972e18a0d94995039e57748191939ef74115b1d41d8811364bc" | ||
15 | 17 | ||
16 | inherit autotools gettext texinfo lib_package ptest | 18 | inherit autotools gettext texinfo lib_package ptest |
17 | 19 | ||
@@ -23,7 +25,7 @@ CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no" | |||
23 | 25 | ||
24 | BBCLASSEXTEND = "native nativesdk" | 26 | BBCLASSEXTEND = "native nativesdk" |
25 | 27 | ||
26 | do_install_append () { | 28 | do_install:append () { |
27 | # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find | 29 | # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find |
28 | # these headers | 30 | # these headers |
29 | install -d ${D}${includedir}/gdbm | 31 | install -d ${D}${includedir}/gdbm |
@@ -31,7 +33,7 @@ do_install_append () { | |||
31 | ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h | 33 | ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h |
32 | } | 34 | } |
33 | 35 | ||
34 | RDEPENDS_${PN}-ptest += "diffutils ${PN}-bin" | 36 | RDEPENDS:${PN}-ptest += "diffutils ${PN}-bin" |
35 | 37 | ||
36 | do_compile_ptest() { | 38 | do_compile_ptest() { |
37 | oe_runmake -C tests buildtests | 39 | oe_runmake -C tests buildtests |
@@ -39,5 +41,5 @@ do_compile_ptest() { | |||
39 | 41 | ||
40 | PACKAGES =+ "${PN}-compat \ | 42 | PACKAGES =+ "${PN}-compat \ |
41 | " | 43 | " |
42 | FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ | 44 | FILES:${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ |
43 | " | 45 | " |