All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Armin Kuster" <akuster808@gmail.com>
To: Sakib Sajal <sakib.sajal@windriver.com>,
	openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][hardknott][PATCH 1/2] lmdb: add recipe
Date: Mon, 13 Sep 2021 14:50:16 -0700	[thread overview]
Message-ID: <7883cdd3-28f7-d3e8-146d-4b2d612af1b5@gmail.com> (raw)
In-Reply-To: <20210913212141.353383-1-sakib.sajal@windriver.com>



On 9/13/21 2:21 PM, Sakib Sajal wrote:
> lmdb provides a high-performance embedded transactional
> database in the form of a key-value store.
Thanks for the patch but  adding a new packages is outside the scope of
stable branch maintenance.

- armin


>
> Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> (cherry picked from commit f658a3b40ba0491aab2da3bd9b0d2ae7123a6f90)
> Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
> ---
>  meta-oe/recipes-dbs/lmdb/files/run-ptest | 25 +++++++++++++++
>  meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb  | 39 ++++++++++++++++++++++++
>  2 files changed, 64 insertions(+)
>  create mode 100644 meta-oe/recipes-dbs/lmdb/files/run-ptest
>  create mode 100644 meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb
>
> diff --git a/meta-oe/recipes-dbs/lmdb/files/run-ptest b/meta-oe/recipes-dbs/lmdb/files/run-ptest
> new file mode 100644
> index 000000000..a6a7549b9
> --- /dev/null
> +++ b/meta-oe/recipes-dbs/lmdb/files/run-ptest
> @@ -0,0 +1,25 @@
> +#!/bin/sh
> +
> +cd tests
> +
> +retval=0
> +for t in mtest*
> +do
> +    mkdir testdb
> +    ./$t > /dev/null && ./mdb_stat testdb > /dev/null
> +    if [ $? -ne 0 ]; then
> +            echo "FAIL: $t"
> +            retval=$(( ${retval} + 1))
> +    else
> +            echo "PASS: $t"
> +    fi
> +    rm -rf testdb
> +done
> +
> +if [ $retval -eq 0 ] ; then
> +    echo "PASS: lmdb"
> +else
> +    echo "FAIL: lmdb"
> +fi
> +
> +exit $retval
> \ No newline at end of file
> diff --git a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb
> new file mode 100644
> index 000000000..0746da141
> --- /dev/null
> +++ b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb
> @@ -0,0 +1,39 @@
> +# SPDX-FileCopyrightText: 2017-2019 Volker Krause <vkrause@kde.org>
> +# SPDX-FileCopyrightText: 2019 Hannah Kiekens <hannahkiekens@gmail.com>
> +#
> +# SPDX-License-Identifier: MIT
> +
> +SUMMARY = "Lightning Memory-Mapped Database (LMDB)"
> +HOMEPAGE = "https://symas.com/lightning-memory-mapped-database/"
> +LICENSE = "OLDAP-2.8"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972"
> +
> +SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1 \
> +           file://run-ptest \
> +"
> +
> +SRCREV = "LMDB_${PV}"
> +
> +inherit base ptest
> +
> +S = "${WORKDIR}/git/libraries/liblmdb"
> +
> +LDFLAGS += "-Wl,-soname,lib${PN}.so.${PV}"
> +
> +do_compile() {
> +    oe_runmake CC="${CC}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}"
> +}
> +
> +do_install() {
> +    oe_runmake CC="${CC}" DESTDIR="${D}" prefix="${prefix}" libprefix="${libdir}" manprefix="${mandir}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}" install
> +    cd ${D}/${libdir}
> +    ln -s liblmdb.so.${PV} liblmdb.so
> +    rm liblmdb.a
> +}
> +
> +do_install_ptest() {
> +    install -d ${D}${PTEST_PATH}/tests
> +    for test in mtest mtest2 mtest3 mtest4 mtest5 mdb_stat; do
> +        install -m 755 ${S}/$test ${D}${PTEST_PATH}/tests
> +    done
> +}
>
> 
>


  parent reply	other threads:[~2021-09-13 21:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-13 21:21 [meta-oe][hardknott][PATCH 1/2] lmdb: add recipe Sakib Sajal
2021-09-13 21:21 ` [meta-oe][hardknott][PATCH 2/2] lmdb: use libprefix in Makefile to install libraries Sakib Sajal
2021-09-13 21:50 ` Armin Kuster [this message]
2021-09-14 17:00   ` [oe] [meta-oe][hardknott][PATCH 1/2] lmdb: add recipe Sakib Sajal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7883cdd3-28f7-d3e8-146d-4b2d612af1b5@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=sakib.sajal@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.