Skip to contentSkip to conversation

Add recipe for python bindings of Berkeley DB

PATCH Superseded Shantanu 2 participants 4 messages Jan 19, 2019 – Jan 20, 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

---
 .../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..81baf98fd
@@ -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_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

This does not address the build problem that I mentioned, please send a fix the dep should be converted into rdep

RDEPENDS_${PN} = "python3-core"

Quoted 43 lines · Shantanu

Included correction suggested from Khem of using STAGING_EXECPREFIXDIR

---
 .../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 -1
new file mode 100644
index 000000000..81baf98fd
@@ -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_EXECPREFIXDIR}"
+DISTUTILS_INSTALL_ARGS = "--berkeley-db=${STAGING_EXECPREFIXDIR}"
+
+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

#2 lore raw

Hello Khem,

Thanks for the review and suggesting the fix,

Quoted 5 lines · Khem Raj

This does not address the build problem that I mentioned, please send a fix the dep should be converted into rdep

RDEPENDS_${PN} = "python3-core"

When I move python3-core to RDEPENDS_${PN} I start getting following error:

FileNotFoundError: [Errno 2] No such file or directory:
'[clipped]/python3-bsddb3/6.2.6-r0/recipe-sysroot/usr/lib/python3.5/config-3.5m/Makefile'

We are currently using Rocko 2.4 branch and that's where I am testing the changes before submitting the patch.

Quoted 50 lines · Shantanu
Quoted 8 lines

Included correction suggested from Khem of using STAGING_EXECPREFIXDIR

---
 .../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

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb

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

Quoted 10 lines

new file mode 100644
index 000000000..81baf98fd

meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +5 -0
@@ -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"

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

Quoted 1 line
meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +1 -0
+SRC_URI[sha256sum] =

"42d621f4037425afcb16b67d5600c4556271a071a9a7f7f2c2b1ba65bc582d05"

Quoted 22 lines
meta-python/recipes-devtools/python/python3-bsddb3_6.2.6.bb new file +13 -1
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "bsddb3"
+
+DEPENDS = "db \
+  python3-core \
+"
+
+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

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

Signature · 14 lines
*Shantanu *

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

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
<https://maps.google.com/?q=Pfuelstr.+5+10997+Berlin+Germany&entry=gmail&source=g>
10997 Berlin
<https://maps.google.com/?q=Pfuelstr.+5+10997+Berlin+Germany&entry=gmail&source=g>
Germany
<https://maps.google.com/?q=Pfuelstr.+5+10997+Berlin+Germany&entry=gmail&source=g>
#3 lore raw
Quoted 10 lines · Shantanu Choudhary

Hello Khem,

Thanks for the review and suggesting the fix,

Quoted 4 lines · Khem Raj

This does not address the build problem that I mentioned, please send a fix the dep should be converted into rdep

Quoted 9 lines
Quoted 1 line

RDEPENDS_${PN} = "python3-core"

When I move python3-core to RDEPENDS_${PN} I start getting following error:

FileNotFoundError: [Errno 2] No such file or directory: '[clipped]/python3-bsddb3/6.2.6-r0/recipe-sysroot/usr/lib/python3.5/config-3.5m/Makefile'

We are currently using Rocko 2.4 branch and that's where I am testing the changes before submitting the patch.

Then add DEPENDS += "python3"

test it on master if you want to upstream it.

Quoted 62 lines
Quoted 41 lines · Shantanu
Quoted 38 lines

Included correction suggested from Khem of using STAGING_EXECPREFIXDIR

---
 .../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 -1
new file mode 100644
index 000000000..81baf98fd
@@ -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_EXECPREFIXDIR}"
+DISTUTILS_INSTALL_ARGS = "--berkeley-db=${STAGING_EXECPREFIXDIR}"
+
+RDEPENDS_${PN} = "db"
\ No newline at end of file
--

2.17.1

Quoted 5 lines
Quoted 5 lines

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

--

Shantanu

Software Developer at Senic

Join Newsletter · We're hiring · In the News

SENIC GmbH
Pfuelstr. 5
10997 Berlin
Germany