Skip to contentSkip to conversation

Add recipe for python bindings of Berkeley DB

PATCH Superseded Shantanu 2 participants 2 messages Jan 19, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Shantanu

author
#0 lore raw

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

From: Shantanu <[email protected]>

---
 .../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..4697f0070
@@ -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-core \
+"
+
+DISTUTILS_BUILD_ARGS = "--berkeley-db=${STAGING_DIR_HOST}/usr"
+DISTUTILS_INSTALL_ARGS = "--berkeley-db=${STAGING_DIR_HOST}/usr"
+
+RDEPENDS_${PN} = "db"
\ No newline at end of file
Signature · 1 line
2.17.1
#1 lore raw

Thanks for your contributionIt fails to buildERROR: Nothing PROVIDES 'python3-core' (but /mnt/a/yoe/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb DEPENDS on or otherwise requires it). Close matches: python3-nose python3-chardet python3-redis python3 RPROVIDES python3-coreERROR:
Nothing RPROVIDES 'python3-bsddb3' (but /mnt/a/yoe/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb RDEPENDS on or otherwise requires it)No eligible RPROVIDERs exist for 'python3-bsddb3'NOTE: Runtime target 'python3-bsddb3' is unbuildable, removing...Missing or unbuildable dependency chain was:
['python3-bsddb3']ERROR: Nothing RPROVIDES 'python3-bsddb3-dev' (but /mnt/a/yoe/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb RDEPENDS on or otherwise requires it)No eligible RPROVIDERs exist for 'python3-bsddb3-dev'NOTE: Runtime target 'python3-bsddb3-dev' is
unbuildable, removing...Missing or unbuildable dependency chain was:
['python3-bsddb3-dev']

Quoted 23 lines · Shantanu

From: Shantanu <[email protected]>

---
 .../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 +8 -0
new file mode 100644
index 000000000..4697f0070
@@ -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

meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb line 18

Quoted 10 lines
meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +10 -0
+
+PYPI_PACKAGE = "bsddb3"
+
+DEPENDS = "db \
+  python3-core \
+"
+
+DISTUTILS_BUILD_ARGS = "--berkeley-db=${STAGING_DIR_HOST}/usr"
+DISTUTILS_INSTALL_ARGS = "--berkeley-db=${STAGING_DIR_HOST}/usr"
+

Perhaps we can use STAGING_EXECPREFIXDIR instead of ${STAGING_DIR_HOST}/usr

Quoted 10 lines
meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +1 -1
+RDEPENDS_${PN} = "db"
\ No newline at end of file
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel