summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gdbm
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gdbm')
-rw-r--r--meta/recipes-support/gdbm/files/ptest.patch26
-rwxr-xr-xmeta/recipes-support/gdbm/files/run-ptest2
-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 @@
1From 41448708e163c8ec1f980464e7dd6741db427c8a Mon Sep 17 00:00:00 2001 1From 8bea84a598b51a7ac7e50aa8f0f20857a9b6b07b Mon Sep 17 00:00:00 2001
2From: Josep Puigdemont <josep.puigdemont@enea.com> 2From: Josep Puigdemont <josep.puigdemont@enea.com>
3Date: Sun, 4 May 2014 16:02:07 +0200 3Date: Sun, 4 May 2014 16:02:07 +0200
4Subject: [PATCH] Add install-ptest rules. 4Subject: [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
15diff --git a/Makefile.am b/Makefile.am 15diff --git a/Makefile.am b/Makefile.am
16index ecc03df..9fbbda5 100644 16index 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
28diff --git a/tests/Makefile.am b/tests/Makefile.am 28diff --git a/tests/Makefile.am b/tests/Makefile.am
29index dbe17dd..06f537f 100644 29index 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--
492.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
5cd tests 5cd 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 @@
1SUMMARY = "Key/value database library with extensible hashing" 1SUMMARY = "Key/value database library with extensible hashing"
2DESCRIPTION = "Library of database functions that use extensible hashing \
3and work similar to the standard UNIX dbm. These routines are provided \
4to a programmer needing to create and manipulate a hashed database."
2HOMEPAGE = "http://www.gnu.org/software/gdbm/" 5HOMEPAGE = "http://www.gnu.org/software/gdbm/"
3SECTION = "libs" 6SECTION = "libs"
4LICENSE = "GPLv3" 7LICENSE = "GPL-3.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" 8LIC_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
13SRC_URI[md5sum] = "aeb29c6a90350a4c959cd1df38cd0a7e" 16SRC_URI[sha256sum] = "74b1081d21fff13ae4bd7c16e5d6e504a4c26f7cde1dca0d963a484174bbcacd"
14SRC_URI[sha256sum] = "37ed12214122b972e18a0d94995039e57748191939ef74115b1d41d8811364bc"
15 17
16inherit autotools gettext texinfo lib_package ptest 18inherit 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
24BBCLASSEXTEND = "native nativesdk" 26BBCLASSEXTEND = "native nativesdk"
25 27
26do_install_append () { 28do_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
34RDEPENDS_${PN}-ptest += "diffutils ${PN}-bin" 36RDEPENDS:${PN}-ptest += "diffutils ${PN}-bin"
35 37
36do_compile_ptest() { 38do_compile_ptest() {
37 oe_runmake -C tests buildtests 39 oe_runmake -C tests buildtests
@@ -39,5 +41,5 @@ do_compile_ptest() {
39 41
40PACKAGES =+ "${PN}-compat \ 42PACKAGES =+ "${PN}-compat \
41 " 43 "
42FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ 44FILES:${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \
43 " 45 "