From 7aab974f7f6b8d2ebba50a29bf98b58672d6330d Mon Sep 17 00:00:00 2001 From: wangmy Date: Tue, 8 Feb 2022 16:25:24 +0800 Subject: gdbm: upgrade 1.22 -> 1.23 refresh ptest.patch (From OE-Core rev: 38d0c34b6a1b44fcc41099936b534202111c3ef7) Signed-off-by: Wang Mingyu Signed-off-by: Richard Purdie --- meta/recipes-support/gdbm/files/ptest.patch | 16 ++++++---- meta/recipes-support/gdbm/gdbm_1.22.bb | 45 ----------------------------- meta/recipes-support/gdbm/gdbm_1.23.bb | 45 +++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 51 deletions(-) delete mode 100644 meta/recipes-support/gdbm/gdbm_1.22.bb create mode 100644 meta/recipes-support/gdbm/gdbm_1.23.bb diff --git a/meta/recipes-support/gdbm/files/ptest.patch b/meta/recipes-support/gdbm/files/ptest.patch index 187f09655d..25fb6bb2f4 100644 --- a/meta/recipes-support/gdbm/files/ptest.patch +++ b/meta/recipes-support/gdbm/files/ptest.patch @@ -9,11 +9,11 @@ Upstream-Status: Pending --- Makefile.am | 5 +++++ - tests/Makefile.am | 11 +++++++++++ - 2 files changed, 16 insertions(+) + tests/Makefile.am | 12 ++++++++++++ + 2 files changed, 17 insertions(+) diff --git a/Makefile.am b/Makefile.am -index 25e200d..03d5ef0 100644 +index 59e2643..5f3ceb0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -64,3 +64,8 @@ ChangeLog: @@ -26,13 +26,14 @@ index 25e200d..03d5ef0 100644 + $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \ + done diff --git a/tests/Makefile.am b/tests/Makefile.am -index 337cbed..92ec3be 100644 +index fac6826..5dc2091 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -139,3 +139,14 @@ d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la +@@ -143,3 +143,15 @@ d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la + t_wordwrap_LDADD = ../tools/libgdbmapp.a SUBDIRS = gdbmtool - ++ +buildtests: $(check_PROGRAMS) $(TESTSUITE) + +install-ptest: $(check_PROGRAMS) $(TESTSUITE) @@ -44,3 +45,6 @@ index 337cbed..92ec3be 100644 + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ + fi \ + done +-- +2.25.1 + diff --git a/meta/recipes-support/gdbm/gdbm_1.22.bb b/meta/recipes-support/gdbm/gdbm_1.22.bb deleted file mode 100644 index 5cb12cd57c..0000000000 --- a/meta/recipes-support/gdbm/gdbm_1.22.bb +++ /dev/null @@ -1,45 +0,0 @@ -SUMMARY = "Key/value database library with extensible hashing" -DESCRIPTION = "Library of database functions that use extensible hashing \ -and work similar to the standard UNIX dbm. These routines are provided \ -to a programmer needing to create and manipulate a hashed database." -HOMEPAGE = "http://www.gnu.org/software/gdbm/" -SECTION = "libs" -LICENSE = "GPLv3" -LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" - - -SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \ - file://run-ptest \ - file://ptest.patch \ - " - -SRC_URI[sha256sum] = "f366c823a6724af313b6bbe975b2809f9a157e5f6a43612a72949138d161d762" - -inherit autotools gettext texinfo lib_package ptest - -# Needed for dbm python module -EXTRA_OECONF = "--enable-libgdbm-compat --without-readline" - -# Stop presence of dbm/nbdm on the host contaminating builds -CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no" - -BBCLASSEXTEND = "native nativesdk" - -do_install:append () { - # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find - # these headers - install -d ${D}${includedir}/gdbm - ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h - ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h -} - -RDEPENDS:${PN}-ptest += "diffutils ${PN}-bin" - -do_compile_ptest() { - oe_runmake -C tests buildtests -} - -PACKAGES =+ "${PN}-compat \ - " -FILES:${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ - " diff --git a/meta/recipes-support/gdbm/gdbm_1.23.bb b/meta/recipes-support/gdbm/gdbm_1.23.bb new file mode 100644 index 0000000000..4ec80b5b7e --- /dev/null +++ b/meta/recipes-support/gdbm/gdbm_1.23.bb @@ -0,0 +1,45 @@ +SUMMARY = "Key/value database library with extensible hashing" +DESCRIPTION = "Library of database functions that use extensible hashing \ +and work similar to the standard UNIX dbm. These routines are provided \ +to a programmer needing to create and manipulate a hashed database." +HOMEPAGE = "http://www.gnu.org/software/gdbm/" +SECTION = "libs" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" + + +SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \ + file://run-ptest \ + file://ptest.patch \ + " + +SRC_URI[sha256sum] = "74b1081d21fff13ae4bd7c16e5d6e504a4c26f7cde1dca0d963a484174bbcacd" + +inherit autotools gettext texinfo lib_package ptest + +# Needed for dbm python module +EXTRA_OECONF = "--enable-libgdbm-compat --without-readline" + +# Stop presence of dbm/nbdm on the host contaminating builds +CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no" + +BBCLASSEXTEND = "native nativesdk" + +do_install:append () { + # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find + # these headers + install -d ${D}${includedir}/gdbm + ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h + ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h +} + +RDEPENDS:${PN}-ptest += "diffutils ${PN}-bin" + +do_compile_ptest() { + oe_runmake -C tests buildtests +} + +PACKAGES =+ "${PN}-compat \ + " +FILES:${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ + " -- cgit v1.2.3-54-g00ecf