Skip to contentSkip to conversation

Add recipe for python bindings of Berkeley DB

PATCH In review Shantanu 1 participant 2 messages Jul 22, 2019

lore
Share & tools
lore

Shantanu

author
#0 lore raw

PATCH v2 1/1 Add recipe for python bindings of Berkeley DB

Included correction suggested from Khem of using STAGING_EXECPREFIXDIR and including python3 with DEPENDS.

---
 .../python/python3-bsddb3_6.2.6.bb            | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb
meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +19 -0
new file mode 100644
index 000000000..7a298014b
@@ -0,0 +1,19 @@
+SUMMARY = "pybsddb is the Python binding for the Oracle Berkeley DB"
+HOMEPAGE = "https://www.jcea.es/programacion/pybsddb.htm"
+SECTION = "devel/python"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b3c8796b7e1f8eda0aef7e242e18ed43"
+SRC_URI[sha256sum] = "42d621f4037425afcb16b67d5600c4556271a071a9a7f7f2c2b1ba65bc582d05"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "bsddb3"
+
+DEPENDS = "db \
+  python3 \
+"
+
+DISTUTILS_BUILD_ARGS = "--berkeley-db=${STAGING_EXECPREFIXDIR}"
+DISTUTILS_INSTALL_ARGS = "--berkeley-db=${STAGING_EXECPREFIXDIR}"
+
+RDEPENDS_${PN} = "db"
\ No newline at end of file
Signature · 1 line
2.17.1
#1 lore raw
Quoted 3 lines · Shantanu

Included correction suggested from Khem of using STAGING_EXECPREFIXDIR and including python3 with DEPENDS.

I don't have access to the master branch to test the suggestions, could someone help me out and confirm if this recipe works okay on the master, please?

Quoted 41 lines
---
 .../python/python3-bsddb3_6.2.6.bb            | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-bsddb3_6.2.6.bb

meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +5 -0
new file mode 100644
index 000000000..7a298014b
@@ -0,0 +1,19 @@
+SUMMARY = "pybsddb is the Python binding for the Oracle Berkeley DB"
+HOMEPAGE = "https://www.jcea.es/programacion/pybsddb.htm"
+SECTION = "devel/python"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://LICENSE.txt;md5=b3c8796b7e1f8eda0aef7e242e18ed43" +SRC_URI[sha256sum] = "42d621f4037425afcb16b67d5600c4556271a071a9a7f7f2c2b1ba65bc582d05"

meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +13 -1
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "bsddb3"
+
+DEPENDS = "db \
+  python3 \
+"
+
+DISTUTILS_BUILD_ARGS = "--berkeley-db=${STAGING_EXECPREFIXDIR}"
+DISTUTILS_INSTALL_ARGS = "--berkeley-db=${STAGING_EXECPREFIXDIR}"
+
+RDEPENDS_${PN} = "db"
\ No newline at end of file
--

2.17.1

Signature · 21 lines
*Shantanu *

Software Developer at Senic <https://www.senic.com>


Buy Nuimo Click
<http://www.senic.com/en/nuimo-click?utm_source=emailsignature&utm_medium=organic>
 · Buy Nuimo Control
<http://www.senic.com/en/nuimo-control?utm_source=emailsignature&utm_medium=organic>

Join Newsletter <https://senic.co/join-newsletter> · We're hiring
<https://senic.co/about-senic> · In the News <https://senic.co/in-the-news>

SENIC GmbH
Pfuelstr. 5
10997 Berlin
Germany

Amtsgericht Charlottenburg, HRB160913, Ust-Ident.Nr.: DE294820161

IBAN: DE 77 59070070 0026919100 BIC: DEUTDEDB595 Deutsche Bank