pyparted: Add recipe
PATCH 1/1 pyparted: Add recipe
From: Sujith H <[email protected]>
This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.
--- meta-python/recipes-extended/pyparted/pyparted_3.9.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-python/recipes-extended/pyparted/pyparted_3.9.bb
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +19 -0
@@ -0,0 +1,19 @@ +DESCRIPTION = "pyparted is a set of Python modules that provide Python programmers \ +an interface to libparted, the GNU parted library for disk partitioning and \ +filesystem manipulation." +SUMMARY = "Python bindings for libparted" +HOMEPAGE = "https://fedorahosted.org/pyparted/" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ + file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571a9f08ea46 \ +" +DEPENDS += "parted" + +SRC_URI = "https://fedorahosted.org/releases/p/y/pyparted/pyparted-${PV}.tar.gz" +SRC_URI[md5sum] = "f16c7ef7f5fa4a43fcb2a4654b487e39" +SRC_URI[sha256sum] = "a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb" + +inherit distutils + +BBCLASSEXTEND += "native"
Signature · 1 line
1.8.4
Quoted 7 lines · Sujith H
From: Sujith H <[email protected]>
This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.
Quoted 8 lines
Signed-off-by Christopher Larson <[email protected]>Signed-off-by Sujith H <[email protected]>--- meta-python/recipes-extended/pyparted/pyparted_3.9.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-python/recipes-extended/pyparted/pyparted_3.9.bb
You should be following Debian naming policy (see
http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html
section 3.3), which means the name should be python-pyparted_3.9.bb ... the ONLY recipe that breaks this naming scheme in oe-core or meta-oe is pyrtm...and that is only because of legacy. I came >< this close to changing it during the layer creation.
Quoted 20 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +1
-0@@ -0,0 +1,19 @@ +DESCRIPTION = "pyparted is a set of Python modules that provide Pythonprogrammers \
+an interface to libparted, the GNU parted library for disk partitioning and \meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +7
-0+filesystem manipulation." +SUMMARY = "Python bindings for libparted" +HOMEPAGE = "https://fedorahosted.org/pyparted/" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ + file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571a9f08ea46
Quoted 4 lines
\
+"
+DEPENDS += "parted"
During testing on qemuarm with core-image-sato, import fails for "string" , "locale", "math"... You need:
RDEPENDS_${PN} += " python-stringold python-codecs python-math"
I stopped testing at that point and went to bed :)
Quoted 11 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +2
-0+ +SRC_URI = "https://fedorahosted.org/releases/p/y/pyparted/pyparted-${PV}.tar.gz"
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +2
-0+SRC_URI[md5sum] = "f16c7ef7f5fa4a43fcb2a4654b487e39" +SRC_URI[sha256sum] ="
a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb"meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +4
-1+ +inherit distutils + +BBCLASSEXTEND += "native" --
Quoted 2 lines
1.8.4
Regards,
--Tim
Quoted 2 lines
Hi Tim,
Quoted 19 lines · Tim Orling
Quoted 7 lines · Sujith H
From: Sujith H <[email protected]>
This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.
Quoted 7 lines
Signed-off-by Christopher Larson <[email protected]>Signed-off-by Sujith H <[email protected]>--- meta-python/recipes-extended/pyparted/pyparted_3.9.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-python/recipes-extended/pyparted/pyparted_3.9.bb
Quoted 1 line
Quoted 9 lines
You should be following Debian naming policy (see
http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html
section 3.3), which means the name should be python-pyparted_3.9.bb ... the
ONLY recipe that breaks this naming scheme in oe-core or meta-oe is pyrtm...and that is only because of legacy. I came >< this close to changing it during the layer creation.
Ok. I will change it.
Quoted 26 lines
Quoted 14 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +1
-0@@ -0,0 +1,19 @@ +DESCRIPTION = "pyparted is a set of Python modules that provide Pythonprogrammers \
+an interface to libparted, the GNU parted library for disk partitioning and \meta-python/recipes-extended/pyparted/pyparted_3.9.bb line 12
Quoted 7 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +7
-0+filesystem manipulation." +SUMMARY = "Python bindings for libparted" +HOMEPAGE = "https://fedorahosted.org/pyparted/" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ +file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571a9f08ea46
Quoted 4 lines
\
+"
+DEPENDS += "parted"
Quoted 7 lines
During testing on qemuarm with core-image-sato, import fails for "string" , "locale", "math"... You need:
RDEPENDS_${PN} += " python-stringold python-codecs python-math"I stopped testing at that point and went to bed :)
When I tried to build core-image-sato with meta-python layer included in the bblayers, I had to add:
S="${WORKDIR}/pyparted-${PV}" ( as the name I changed to python-pyarted). And the build went fine for me.
I was testing on qemuarm. I can add the RDEPENDS_${PN} += in the recipe. Because of curiosity let me know
how you got import failure. I am building on the master branch.
Quoted 28 lines
Quoted 12 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +2
-0+ +SRC_URI = "https://fedorahosted.org/releases/p/y/pyparted/pyparted-${PV}.tar.gz"
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +2
-0+SRC_URI[md5sum] = "f16c7ef7f5fa4a43fcb2a4654b487e39" +SRC_URI[sha256sum] ="
a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb"meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +4
-1+ +inherit distutils + +BBCLASSEXTEND += "native" --Quoted 2 lines
1.8.4
Regards,
--Tim
Quoted 2 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 5 lines
സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info
Quoted 81 lines · sujith h
Hi Tim,
Quoted 16 lines · Tim Orling
Quoted 7 lines · Sujith H
From: Sujith H <[email protected]>
This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.
Quoted 7 lines
Signed-off-by Christopher Larson <[email protected]>Signed-off-by Sujith H <[email protected]>--- meta-python/recipes-extended/pyparted/pyparted_3.9.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-python/recipes-extended/pyparted/Quoted 6 lines
pyparted_3.9.bb
Quoted 1 line
You should be following Debian naming policy (see
http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html
Quoted 6 lines
section 3.3), which means the name should be python-pyparted_3.9.bb ... the
ONLY recipe that breaks this naming scheme in oe-core or meta-oe is pyrtm...and that is only because of legacy. I came >< this close to changing it during the layer creation.Ok. I will change it.
Quoted 12 lines
Quoted 10 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +1
-0@@ -0,0 +1,19 @@ +DESCRIPTION = "pyparted is a set of Python modules that provide PythonQuoted 2 lines
programmers \
+an interface to libparted, the GNU parted library for diskpartitioning
Quoted 10 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb line 12
Quoted 9 lines
and \
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +7
-0+filesystem manipulation." +SUMMARY = "Python bindings for libparted" +HOMEPAGE = "https://fedorahosted.org/pyparted/" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "\ + file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ +file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571a9f08ea46
Quoted 5 lines
Quoted 4 lines
\
+"
+DEPENDS += "parted"During testing on qemuarm with core-image-sato, import fails for
"string" ,
Quoted 6 lines
"locale", "math"... You need:
RDEPENDS_${PN} += " python-stringold python-codecs python-math"I stopped testing at that point and went to bed :)
When I tried to build core-image-sato with meta-python layer included in the bblayers, I had to add:
S="${WORKDIR}/pyparted-${PV}" ( as the name I changed to python-pyarted). And the build went fine for me.
I was testing on qemuarm. I can add the RDEPENDS_${PN} += in the recipe. Because of curiosity let me know
how you got import failure. I am building on the master branch.
Quoted 1 line
I am also using master branch (for both openembedded-core and
meta-openembedded). I am building "distroless", with nothing added to core-image-sato except the following added to conf/local.conf:IMAGE_INSTALL_append = " python-pyparted"
After the build completes, "runqemu core-image-sato". Launch the terminal application. At the prompt, "python"
Quoted 1 line
Quoted 1 line
Quoted 1 line
import parted
This reports, for instance, cannot import "string". Then an iterative process of adding packages to RDEPENDS_${PN} as it only checks for the first missing python module...
I would have done a capture of the output, but qemu doesn't copy/paste?
Regards,
Tim
Quoted 24 lines
Quoted 22 lines
Quoted 12 lines
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +2
-0+ +SRC_URI = "https://fedorahosted.org/releases/p/y/pyparted/pyparted-${PV}.tar.gz"
meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +2
-0+SRC_URI[md5sum] = "f16c7ef7f5fa4a43fcb2a4654b487e39" +SRC_URI[sha256sum] ="
a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb"meta-python/recipes-extended/pyparted/pyparted_3.9.bb new file +4
-1+ +inherit distutils + +BBCLASSEXTEND += "native" --Quoted 2 lines
1.8.4
Regards,
--Tim
Quoted 2 lines