nativesdk-packagegroup-python: buildtools-tarball: Introduce NativeSDK package group
PATCH 1/2 nativesdk-packagegroup-python: buildtools-tarball: Introduce NativeSDK package group
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
--- meta/recipes-core/meta/buildtools-tarball.bb | 28 +---------------- .../python/nativesdk-packagegroup-python.bb | 36 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 meta/recipes-devtools/python/nativesdk-packagegroup-python.bb
meta/recipes-core/meta/buildtools-tarball.bb +1 -27
@@ -8,33 +8,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d TOOLCHAIN_TARGET_TASK ?= "" TOOLCHAIN_HOST_TASK ?= "\ - nativesdk-python-core \ - nativesdk-python-textutils \ - nativesdk-python-sqlite3 \ - nativesdk-python-pickle \ - nativesdk-python-logging \ - nativesdk-python-elementtree \ - nativesdk-python-curses \ - nativesdk-python-compile \ - nativesdk-python-compiler \ - nativesdk-python-fcntl \ - nativesdk-python-shell \ - nativesdk-python-misc \ - nativesdk-python-multiprocessing \ - nativesdk-python-subprocess \ - nativesdk-python-xmlrpc \ - nativesdk-python-netclient \ - nativesdk-python-netserver \ - nativesdk-python-distutils \ - nativesdk-python-unixadmin \ - nativesdk-python-compression \ - nativesdk-python-json \ - nativesdk-python-unittest \ - nativesdk-python-mmap \ - nativesdk-python-difflib \ - nativesdk-python-pprint \ - nativesdk-python-git \ - nativesdk-python-pkgutil \ + nativesdk-packagegroup-python \ nativesdk-ncurses-terminfo-base \ nativesdk-chrpath \ nativesdk-tar \
meta/recipes-devtools/python/nativesdk-packagegroup-python.bb new file +36 -0
@@ -0,0 +1,36 @@ +SUMMARY = "NativeSDK Python package group" +DESCRIPTION = "NativeSDK Python package group" +PR = "r0" +LICENSE = "MIT" + +inherit packagegroup + +RDEPENDS_${PN} = " \ + nativesdk-python-core \ + nativesdk-python-textutils \ + nativesdk-python-sqlite3 \ + nativesdk-python-pickle \ + nativesdk-python-logging \ + nativesdk-python-elementtree \ + nativesdk-python-curses \ + nativesdk-python-compile \ + nativesdk-python-compiler \ + nativesdk-python-fcntl \ + nativesdk-python-shell \ + nativesdk-python-misc \ + nativesdk-python-multiprocessing \ + nativesdk-python-subprocess \ + nativesdk-python-xmlrpc \ + nativesdk-python-netclient \ + nativesdk-python-netserver \ + nativesdk-python-distutils \ + nativesdk-python-unixadmin \ + nativesdk-python-compression \ + nativesdk-python-json \ + nativesdk-python-unittest \ + nativesdk-python-mmap \ + nativesdk-python-difflib \ + nativesdk-python-pprint \ + nativesdk-python-git \ + nativesdk-python-pkgutil \ + "
Signature · 1 line
2.0.0
PATCH 2/2 meta-toolchain-qt: Install full set of python modules in Qt SDK toolchain
The Qt SDK toolchain pulls in python via packagegroup-cross-canadian-${MACHINE} and ships it. But the python is missing many modules and is rather incomplete.
The environment-setup-* script configures the PATH variable to point into it's own sysroot first, it means the python from the SDK is used as well when the environment is configured. It actually does make sense to use the python from the SDK, since the SDK should provide the tools needed to build additional software.
The problem is, the python in the SDK image is stripped to a bare minimum of modules, which prevents some software from being built with the SDK as is. Add the same python modules as the buildtools-tarball.bb adds to make the python shipped with the SDK complete via nativesdk-packagegroup-python.
--- meta/recipes-qt/meta/meta-toolchain-qt.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-qt/meta/meta-toolchain-qt.inc +5 -1
@@ -1,4 +1,8 @@ -TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-${QTNAME}-toolchain-host packagegroup-cross-canadian-${MACHINE}" +TOOLCHAIN_HOST_TASK = " \ + nativesdk-packagegroup-${QTNAME}-toolchain-host \ + packagegroup-cross-canadian-${MACHINE} \ + nativesdk-packagegroup-python \ + " TOOLCHAIN_TARGET_TASK = "packagegroup-${QTNAME}-toolchain-target" TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-${QTNAME}-${DISTRO_VERSION}"
Signature · 1 line
2.0.0
Quoted 3 lines · Marek Vasut
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
Specifically, isn't this the list of packages needed to run bitbake and its associated utils? "python" isn't therefore a particularly good description of this package?
Cheers,
Richard
Quoted 88 lines
Signed-off-by Marek Vasut <[email protected]>--- meta/recipes-core/meta/buildtools-tarball.bb | 28 +---------------- .../python/nativesdk-packagegroup-python.bb | 36 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 meta/recipes-devtools/python/nativesdk-packagegroup-python.bbmeta/recipes-core/meta/buildtools-tarball.bb +1
-27@@ -8,33 +8,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d TOOLCHAIN_TARGET_TASK ?= "" TOOLCHAIN_HOST_TASK ?= "\ - nativesdk-python-core \ - nativesdk-python-textutils \ - nativesdk-python-sqlite3 \ - nativesdk-python-pickle \ - nativesdk-python-logging \ - nativesdk-python-elementtree \ - nativesdk-python-curses \ - nativesdk-python-compile \ - nativesdk-python-compiler \ - nativesdk-python-fcntl \ - nativesdk-python-shell \ - nativesdk-python-misc \ - nativesdk-python-multiprocessing \ - nativesdk-python-subprocess \ - nativesdk-python-xmlrpc \ - nativesdk-python-netclient \ - nativesdk-python-netserver \ - nativesdk-python-distutils \ - nativesdk-python-unixadmin \ - nativesdk-python-compression \ - nativesdk-python-json \ - nativesdk-python-unittest \ - nativesdk-python-mmap \ - nativesdk-python-difflib \ - nativesdk-python-pprint \ - nativesdk-python-git \ - nativesdk-python-pkgutil \ + nativesdk-packagegroup-python \ nativesdk-ncurses-terminfo-base \ nativesdk-chrpath \ nativesdk-tar \meta/recipes-devtools/python/nativesdk-packagegroup-python.bb new file +36
-0@@ -0,0 +1,36 @@ +SUMMARY = "NativeSDK Python package group" +DESCRIPTION = "NativeSDK Python package group" +PR = "r0" +LICENSE = "MIT" + +inherit packagegroup + +RDEPENDS_${PN} = " \ + nativesdk-python-core \ + nativesdk-python-textutils \ + nativesdk-python-sqlite3 \ + nativesdk-python-pickle \ + nativesdk-python-logging \ + nativesdk-python-elementtree \ + nativesdk-python-curses \ + nativesdk-python-compile \ + nativesdk-python-compiler \ + nativesdk-python-fcntl \ + nativesdk-python-shell \ + nativesdk-python-misc \ + nativesdk-python-multiprocessing \ + nativesdk-python-subprocess \ + nativesdk-python-xmlrpc \ + nativesdk-python-netclient \ + nativesdk-python-netserver \ + nativesdk-python-distutils \ + nativesdk-python-unixadmin \ + nativesdk-python-compression \ + nativesdk-python-json \ + nativesdk-python-unittest \ + nativesdk-python-mmap \ + nativesdk-python-difflib \ + nativesdk-python-pprint \ + nativesdk-python-git \ + nativesdk-python-pkgutil \ + "
Quoted 8 lines · Richard Purdie
Quoted 3 lines · Marek Vasut
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
Specifically, isn't this the list of packages needed to run bitbake and its associated utils? "python" isn't therefore a particularly good description of this package?
This is really just and only python packages, nothing else.
Best regards,
Marek Vasut
Quoted 11 lines · Marek Vasut
Quoted 8 lines · Richard Purdie
Quoted 3 lines · Marek Vasut
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
Specifically, isn't this the list of packages needed to run bitbake and its associated utils? "python" isn't therefore a particularly good description of this package?
This is really just and only python packages, nothing else.
The fact that it only contains python packages doesn't mean it contains all python packages, or is somehow generic. It's a specific subset of python modules used by bitbake.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 11 lines · Christopher Larson
Quoted 10 lines · Marek Vasut
Quoted 8 lines · Richard Purdie
Quoted 3 lines · Marek Vasut
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
Specifically, isn't this the list of packages needed to run bitbake and its associated utils? "python" isn't therefore a particularly good description of this package?
Quoted 5 lines
Quoted 1 line
This is really just and only python packages, nothing else.
The fact that it only contains python packages doesn't mean it contains all python packages, or is somehow generic. It's a specific subset of python modules used by bitbake.
OK, so uh, what would be the right solution here to make the toolchain usable? As I am no expert, I really don't know what to do now. Can you help please ?
Best regards,
Marek Vasut
Hi Marek,
Quoted 15 lines · On Friday 19 September 2014 18:27:30 Marek Vasut wrote:
Quoted 14 lines · Christopher Larson
Quoted 12 lines · Marek Vasut
Quoted 9 lines · Richard Purdie
Quoted 3 lines · Marek Vasut
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
Specifically, isn't this the list of packages needed to run bitbake and
its associated utils? "python" isn't therefore a particularly good description of this package?This is really just and only python packages, nothing else.
Quoted 8 lines
Quoted 4 lines
The fact that it only contains python packages doesn't mean it contains all
python packages, or is somehow generic. It's a specific subset of python modules used by bitbake.OK, so uh, what would be the right solution here to make the toolchain usable? As I am no expert, I really don't know what to do now. Can you help please ?
There's clearly a bug here, adding a Python-using component does not mean you should have python in the SDK but that's what currently happens. There is a bug open now covering this, we will do our best to address it in a timely manner. (FWIW, I would have thought this issue has been present for some time rather than being a recent regression.)
In the mean time however you can work around it by adding nativesdk-python-modules (an existing meta-package) to your SDK via TOOLCHAIN_HOST_TASK.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 8 lines · Paul Eggleton
There's clearly a bug here, adding a Python-using component does not mean you
should have python in the SDK but that's what currently happens. There is a bug open now covering this, we will do our best to address it in a timely manner. (FWIW, I would have thought this issue has been present for some time
rather than being a recent regression.)
Ah, we've hit something similar. We had a need to add the git perl tools to the buildtools-tarball to support the gitsm:// fetcher (git-submodule is perl, iirc), which sucked in nativesdk-perl. At the moment we're doing a horrible hack and just rm'ing perl itself after it gets installed, do you have the yocto bug # for the python one?
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 12 lines · On Friday 19 September 2014 10:02:29 Christopher Larson wrote:
On Fri, Sep 19, 2014 at 9:42 AM, Paul Eggleton <
Quoted 8 lines · [email protected]> wrote:
There's clearly a bug here, adding a Python-using component does not mean you
should have python in the SDK but that's what currently happens. There is a
bug open now covering this, we will do our best to address it in a timely manner. (FWIW, I would have thought this issue has been present for some time
rather than being a recent regression.)
Quoted 5 lines
Ah, we've hit something similar. We had a need to add the git perl tools to the buildtools-tarball to support the gitsm:// fetcher (git-submodule is perl, iirc), which sucked in nativesdk-perl. At the moment we're doing a horrible hack and just rm'ing perl itself after it gets installed, do you have the yocto bug # for the python one?
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6735
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 1 line · Paul Eggleton
Hi Marek,
Hi Paul,
Quoted 21 lines · On Friday 19 September 2014 18:27:30 Marek Vasut wrote:
Quoted 20 lines · Christopher Larson
Quoted 18 lines · Marek Vasut
Quoted 6 lines · Richard Purdie
Quoted 5 lines · Marek Vasut
Quoted 3 lines
Introduce and use nativesdk-packagegroup-python , which contains all necessary python components for the native SDK. Make use of this package group in buildtools-tarball.bb immediatelly.
Quoted 6 lines
Quoted 4 lines
Specifically, isn't this the list of packages needed to run bitbake and
its associated utils? "python" isn't therefore a particularly good description of this package?This is really just and only python packages, nothing else.
The fact that it only contains python packages doesn't mean it contains all
python packages, or is somehow generic. It's a specific subset of python modules used by bitbake.
Quoted 8 lines
Quoted 3 lines
OK, so uh, what would be the right solution here to make the toolchain usable? As I am no expert, I really don't know what to do now. Can you help please ?
There's clearly a bug here, adding a Python-using component does not mean you should have python in the SDK but that's what currently happens. There is a bug open now covering this, we will do our best to address it in a timely manner.
Thank you, I really appreciate it !
Quoted 2 lines
(FWIW, I would have thought this issue has been present for some time rather than being a recent regression.)
Yes, it was. It only hit me recently when U-Boot switched to Kconfig, which needs a python module, which is missing from the SDK toolchain though.
Quoted 3 lines
In the mean time however you can work around it by adding nativesdk-python-modules (an existing meta-package) to your SDK via
TOOLCHAIN_HOST_TASK.
Ah, thank you for the hint!
Best regards,
Marek Vasut