Yocto: Install full set of python modules in Qt SDK toolchain
PATCH 1/1 Yocto: 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.
--- meta/recipes-qt/meta/meta-toolchain-qt.inc | 32 +++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-)
NOTE: This lets me build U-Boot git HEAD , which now has Kconfig in it
and that depends on the "subprocess" module. But instead of adding just one module, I want to fix this properly and future-proof this.
meta/recipes-qt/meta/meta-toolchain-qt.inc +31 -1
@@ -1,4 +1,34 @@ -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-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 \ + " TOOLCHAIN_TARGET_TASK = "packagegroup-${QTNAME}-toolchain-target" TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-${QTNAME}-${DISTRO_VERSION}"
Signature · 1 line
2.0.1
Since 'yocto' is a project like freedesktop.org your commit message doesn't make sense, it should be something like:
meta-toolchain-qt: Install full set of python modules
Op 7 aug. 2014, om 21:10 heeft Marek Vasut <[email protected]> het volgende geschreven:
Quoted 72 lines
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.
Signed-off-by Marek Vasut <[email protected]>---
meta/recipes-qt/meta/meta-toolchain-qt.inc | 32 +++++++++++++++++++++++++++++-1 file changed, 31 insertions(+), 1 deletion(-)NOTE: This lets me build U-Boot git HEAD , which now has
Kconfigin it
and that depends on the "subprocess" module. But instead of adding just one module, I want to fix this properly and future-proof this.meta/recipes-qt/meta/meta-toolchain-qt.inc +31
-1@@ -1,4 +1,34 @@ -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-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 \ + "
TOOLCHAIN_TARGET_TASK= "packagegroup-${QTNAME}-toolchain-target"TOOLCHAIN_OUTPUTNAME= "${SDK_NAME}-toolchain-${QTNAME}-${DISTRO_VERSION}"Signature · 7 lines
2.0.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 4 lines · Koen Kooi
Since 'yocto' is a project like freedesktop.org your commit message doesn't make sense, it should be something like:
meta-toolchain-qt: Install full set of python modules
Got it, Saul also told me so. I will wait a bit for some more feedback and repost with corrections, OK ? Is this approach I took here even correct please ?
Best regards,
Marek Vasut
Quoted 8 lines · Marek Vasut
Quoted 4 lines · Koen Kooi
Since 'yocto' is a project like freedesktop.org your commit message doesn't make sense, it should be something like:
meta-toolchain-qt: Install full set of python modules
Got it, Saul also told me so. I will wait a bit for some more feedback and repost with corrections, OK ? Is this approach I took here even correct please ?
I'd really like to see a packagegroup defined somewhere with this list of python modules which the various recipes can then reference...
Cheers,
Richard
Quoted 5 lines · Richard Purdie
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Koen Kooi
Since 'yocto' is a project like freedesktop.org your commit message doesn't make sense, it should be something like:
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
meta-toolchain-qt: Install full set of python modules
Got it, Saul also told me so. I will wait a bit for some more feedback and repost with corrections, OK ? Is this approach I took here even correct please ?
I'd really like to see a packagegroup defined somewhere with this list of python modules which the various recipes can then reference...
I agree, that makes sense. Is this approach I took here the correct one please ?
Best regards,
Marek Vasut
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
This is is slightly frustrating. We also face the same issue. :(
Quoted 24 lines · Marek Vasut
Quoted 5 lines · Richard Purdie
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Koen Kooi
Since 'yocto' is a project like freedesktop.org your commit message doesn't make sense, it should be something like:
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
meta-toolchain-qt: Install full set of python modules
Got it, Saul also told me so. I will wait a bit for some more feedback and repost with corrections, OK ? Is this approach I took here even correct please ?
I'd really like to see a packagegroup defined somewhere with this list of python modules which the various recipes can then reference...
I agree, that makes sense. Is this approach I took here the correct one please ?
Best regards,
Marek Vasut
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
I meant to write "Marek". I apologize for the spelling issue.
Quoted 34 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
This is is slightly frustrating. We also face the same issue. :(
Quoted 24 lines · Marek Vasut
Quoted 5 lines · Richard Purdie
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Koen Kooi
Since 'yocto' is a project like freedesktop.org your commit message doesn't make sense, it should be something like:
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
meta-toolchain-qt: Install full set of python modules
Got it, Saul also told me so. I will wait a bit for some more feedback and repost with corrections, OK ? Is this approach I took here even correct please ?
I'd really like to see a packagegroup defined somewhere with this list of python modules which the various recipes can then reference...
I agree, that makes sense. Is this approach I took here the correct one please ?
Best regards,
Marek Vasut
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 8 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
Best regards,
Marek Vasut
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
Quoted 4 lines
Quoted 1 line
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
I do not think this is an explicit Qt issue, and hence fixing on that layer sounds like a weird approach. It seems to be a generic python issue and so, I think it should be addressed in its core. I opened a new report for this:
Quoted 14 lines · Laszlo Papp
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
Quoted 4 lines
Quoted 1 line
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
Quoted 6 lines
I do not think this is an explicit Qt issue, and hence fixing on that layer sounds like a weird approach. It seems to be a generic python issue and so, I think it should be addressed in its core. I opened a new report for this:
Then you probably want to add nativesdk-packagegroup-python class into the other toolchain recipes as well . Or even better, into the base SDK toolchain class (is there one?)
Best regards,
Marek Vasut
Quoted 20 lines · Marek Vasut
Quoted 19 lines · Laszlo Papp
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
Quoted 4 lines
Quoted 1 line
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
I do not think this is an explicit Qt issue, and hence fixing on that layer sounds like a weird approach. It seems to be a generic python issue and so, I think it should be addressed in its core. I opened a new report for this:
Quoted 5 lines
Then you probably want to add nativesdk-packagegroup-python class into the other toolchain recipes as well . Or even better, into the base SDK toolchain class (is there one?)
See, I do not understand why this "feature" was integrated the way it was. IMHO, it lacks any kind of reality. Has the SDK been ever tested against python based host development systems? My assumption is no. I do not think there is any sanity in using a _that_ stripped down version of python on desktop. It just really hurts the python users for the SDK, since there is no simple workaround and we cannot get the SDK to let the system python take precedence. This situation is awful in my opinion. Who is up for fixing this in the core? Let us have a _standard_ python shipped with the SDK by default or do not ship any at all.
Quoted 27 lines · Laszlo Papp
Quoted 20 lines · Marek Vasut
Quoted 19 lines · Laszlo Papp
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
Quoted 4 lines
Quoted 1 line
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
I do not think this is an explicit Qt issue, and hence fixing on that layer sounds like a weird approach. It seems to be a generic python issue and so, I think it should be addressed in its core. I opened a new report for this:
Quoted 5 lines
Then you probably want to add nativesdk-packagegroup-python class into the other toolchain recipes as well . Or even better, into the base SDK toolchain class (is there one?)
Quoted 10 lines
See, I do not understand why this "feature" was integrated the way it was. IMHO, it lacks any kind of reality. Has the SDK been ever tested against python based host development systems? My assumption is no. I do not think there is any sanity in using a _that_ stripped down version of python on desktop. It just really hurts the python users for the SDK, since there is no simple workaround and we cannot get the SDK to let the system python take precedence. This situation is awful in my opinion. Who is up for fixing this in the core? Let us have a _standard_ python shipped with the SDK by default or do not ship any at all.
If you install nativesdk-python-modules into your SDK, you will get python *and* all its modules installed. If you just install the python core, you get a cut down python and need to install the modules you need.
The python SDK has been tested and used in a number of scenarios. Where a full set of modules is needed, nativesdk-python-modules gets installed and everyone is happy. If there is some problem with nativesdk-python-modules, please let us know.
Cheers,
Richard
Quoted 44 lines · Richard Purdie
Quoted 27 lines · Laszlo Papp
Quoted 20 lines · Marek Vasut
Quoted 19 lines · Laszlo Papp
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
Quoted 4 lines
Quoted 1 line
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
I do not think this is an explicit Qt issue, and hence fixing on that layer sounds like a weird approach. It seems to be a generic python issue and so, I think it should be addressed in its core. I opened a new report for this:
Quoted 5 lines
Then you probably want to add nativesdk-packagegroup-python class into the other toolchain recipes as well . Or even better, into the base SDK toolchain class (is there one?)
Quoted 10 lines
See, I do not understand why this "feature" was integrated the way it was. IMHO, it lacks any kind of reality. Has the SDK been ever tested against python based host development systems? My assumption is no. I do not think there is any sanity in using a _that_ stripped down version of python on desktop. It just really hurts the python users for the SDK, since there is no simple workaround and we cannot get the SDK to let the system python take precedence. This situation is awful in my opinion. Who is up for fixing this in the core? Let us have a _standard_ python shipped with the SDK by default or do not ship any at all.
If you install nativesdk-python-modules into your SDK, you will get python *and* all its modules installed. If you just install the python core, you get a cut down python and need to install the modules you need.
Quoted 4 lines
The python SDK has been tested and used in a number of scenarios. Where a full set of modules is needed, nativesdk-python-modules gets installed and everyone is happy. If there is some problem with nativesdk-python-modules, please let us know.
git grep nativesdk-python-modules doesn't show any matches ingit://git.yoctoproject.org/poky master . Do you mean the nativesdk-packagegroup- python I crafted or do you refer to something else please ?
Also, shouldn't full python be installed into all the SDK toolchains ? I am for example unable to compile U-Boot 2014.10rc with the Yocto SDK toolchain anymore. The SDK is missing python modules and I cannot easily override the usage of python from the SDK . So I agree with Laszlo here, the SDK toolchain is somewhat unusable as it is.
Best regards,
Marek Vasut
Quoted 54 lines · Marek Vasut
Quoted 44 lines · Richard Purdie
Quoted 27 lines · Laszlo Papp
Quoted 20 lines · Marek Vasut
Quoted 19 lines · Laszlo Papp
Quoted 8 lines · Marek Vasut
Quoted 7 lines · Laszlo Papp
Come on, Yocto maintainers, please...
Mark sent this change relatively long ago, and it is still in "new" state, sadly. The current SDK shipped _breaks_ any third-party software that uses standard python with regards to the libraries and all that.
Quoted 4 lines
Quoted 1 line
This is is slightly frustrating. We also face the same issue. :(
Thanks for the reminder, new version which should fix the issues with the previous one is on the ML now. You're all on CC.
I do not think this is an explicit Qt issue, and hence fixing on that layer sounds like a weird approach. It seems to be a generic python issue and so, I think it should be addressed in its core. I opened a new report for this:
Quoted 5 lines
Then you probably want to add nativesdk-packagegroup-python class into the other toolchain recipes as well . Or even better, into the base SDK toolchain class (is there one?)
Quoted 10 lines
See, I do not understand why this "feature" was integrated the way it was. IMHO, it lacks any kind of reality. Has the SDK been ever tested against python based host development systems? My assumption is no. I do not think there is any sanity in using a _that_ stripped down version of python on desktop. It just really hurts the python users for the SDK, since there is no simple workaround and we cannot get the SDK to let the system python take precedence. This situation is awful in my opinion. Who is up for fixing this in the core? Let us have a _standard_ python shipped with the SDK by default or do not ship any at all.
If you install nativesdk-python-modules into your SDK, you will get python *and* all its modules installed. If you just install the python core, you get a cut down python and need to install the modules you need.
Quoted 4 lines
The python SDK has been tested and used in a number of scenarios. Where a full set of modules is needed, nativesdk-python-modules gets installed and everyone is happy. If there is some problem with nativesdk-python-modules, please let us know.
git grep nativesdk-python-modules doesn't show any matches in
git://git.yoctoproject.org/pokymaster . Do you mean the nativesdk-packagegroup- python I crafted or do you refer to something else please ?
Quoted 5 lines
Also, shouldn't full python be installed into all the SDK toolchains ? I am for example unable to compile U-Boot 2014.10rc with the Yocto SDK toolchain anymore. The SDK is missing python modules and I cannot easily override the usage of python from the SDK . So I agree with Laszlo here, the SDK toolchain is somewhat unusable as it is.
I refer to the package I mentioned:
$ ls -la tmp/deploy/ipk/x86_64-nativesdk/nativesdk-python-modules* -rw-r--r-- 2 richard richard 1512 Sep 18 17:09 tmp/deploy/ipk/x86_64-nativesdk/nativesdk-python-modules_2.7.3-r0.3.24_x86_64-nativesdk.ipk
See ${PN}-modules defined in python-2.7-manifest.inc.
I agreed there is a problem, I disagree somewhat about how it should be fixed since you're just installing a set of modules which is defined as those needed to run bitbake and I don't think this is what you actually want. There is also the question of whether nativesdk-python should even be in there...
Cheers,
Richard
On Friday, September 19, 2014 at 09:25:12 AM, Richard Purdie wrote:
[...]
Quoted 11 lines
Quoted 10 lines
git grep nativesdk-python-modules doesn't show any matches in
git://git.yoctoproject.org/pokymaster . Do you mean the nativesdk-packagegroup- python I crafted or do you refer to something else please ?Also, shouldn't full python be installed into all the SDK toolchains ? I am for example unable to compile U-Boot 2014.10rc with the Yocto SDK toolchain anymore. The SDK is missing python modules and I cannot easily override the usage of python from the SDK . So I agree with Laszlo here, the SDK toolchain is somewhat unusable as it is.
Quoted 8 lines
I refer to the package I mentioned:
$ ls -la tmp/deploy/ipk/x86_64-nativesdk/nativesdk-python-modules* -rw-r--r-- 2 richard richard 1512 Sep 18 17:09 tmp/deploy/ipk/x86_64-nativesdk/nativesdk-python-modules_2.7.3-r0.3.24_x86 _64-nativesdk.ipkSee ${PN}-modules defined in python-2.7-manifest.inc.
Oh I see, sorry. Is there any way to look up packages with bitbake or Yocto please ?
Quoted 5 lines
I agreed there is a problem, I disagree somewhat about how it should be fixed since you're just installing a set of modules which is defined as those needed to run bitbake and I don't think this is what you actually want. There is also the question of whether nativesdk-python should even be in there...
So would this patch (paste below) work please ? If so, I would submit proper.
(quoted diff) +0 -0
b/meta/classes/populate_sdk_base.bbclass
index 10d04ed..7245d53 100644
meta/classes/populate_sdk_base.bbclass +0 -1
@@ -30,7 +30,11 @@ B_task-populate-sdk = "${SDK_DIR}" SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${REAL_MULTIMACH_TARGET_SYS}" -TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host packagegroup-cross-
canadian-${MACHINE}"
+TOOLCHAIN_HOST_TASK ?= " \
+ nativesdk-packagegroup-sdk-host \
+ packagegroup-cross-canadian-${MACHINE} \
+ nativesdk-python-modules \+ "
TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= ""
TOOLCHAIN_TARGET_TASK ?= "packagegroup-core-standalone-sdk-target packagegroup-
core-standalone-sdk-target-dbg"
TOOLCHAIN_TARGET_TASK_ATTEMPTONLY ?= ""
meta/recipes- renamed from meta/recipes-qt/meta/meta-toolchain-qt.inc +0 -0
qt/meta/meta-toolchain-qt.inc
index 6b162bd..473a123 100644
meta/recipes-qt/meta/meta-toolchain-qt.inc +0 -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-python-modules \
+ " TOOLCHAIN_TARGET_TASK = "packagegroup-${QTNAME}-toolchain-target" TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-${QTNAME}-${DISTRO_VERSION}"
Best regards,
Marek Vasut
What is the situation on this front?
Quoted 72 lines · Marek Vasut
On Friday, September 19, 2014 at 09:25:12 AM, Richard Purdie wrote:
[...]Quoted 11 lines
Quoted 10 lines
git grep nativesdk-python-modules doesn't show any matches in
git://git.yoctoproject.org/pokymaster . Do you mean the nativesdk-packagegroup- python I crafted or do you refer to something else please ?Also, shouldn't full python be installed into all the SDK toolchains ? I am for example unable to compile U-Boot 2014.10rc with the Yocto SDK toolchain anymore. The SDK is missing python modules and I cannot easily override the usage of python from the SDK . So I agree with Laszlo here, the SDK toolchain is somewhat unusable as it is.
Quoted 8 lines
I refer to the package I mentioned:
$ ls -la tmp/deploy/ipk/x86_64-nativesdk/nativesdk-python-modules* -rw-r--r-- 2 richard richard 1512 Sep 18 17:09 tmp/deploy/ipk/x86_64-nativesdk/nativesdk-python-modules_2.7.3-r0.3.24_x86 _64-nativesdk.ipkSee ${PN}-modules defined in python-2.7-manifest.inc.
Oh I see, sorry. Is there any way to look up packages with bitbake or Yocto please ?
Quoted 5 lines
I agreed there is a problem, I disagree somewhat about how it should be fixed since you're just installing a set of modules which is defined as those needed to run bitbake and I don't think this is what you actually want. There is also the question of whether nativesdk-python should even be in there...
So would this patch (paste below) work please ? If so, I would submit proper.
meta/classes/populate_sdk_base.bbclass +0
-1@@ -30,7 +30,11 @@ B_task-populate-sdk = "${SDK_DIR}" SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${REAL_MULTIMACH_TARGET_SYS}" -TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host packagegroup-cross-canadian-${MACHINE}"
meta/classes/populate_sdk_base.bbclass +5
-0+TOOLCHAIN_HOST_TASK ?= " \ + nativesdk-packagegroup-sdk-host \ + packagegroup-cross-canadian-${MACHINE} \ + nativesdk-python-modules \ + " TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= "" TOOLCHAIN_TARGET_TASK ?= "packagegroup-core-standalone-sdk-target packagegroup-core-standalone-sdk-target-dbg"
TOOLCHAIN_TARGET_TASK_ATTEMPTONLY?= ""meta/recipes- renamed from meta/recipes-qt/meta/meta-toolchain-qt.inc +0
-0qt/meta/meta-toolchain-qt.inc
index 6b162bd..473a123 100644meta/recipes-qt/meta/meta-toolchain-qt.inc +0
-1@@ -1,4 +1,8 @@ -TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-${QTNAME}-toolchain-hostpackagegroup-cross-canadian-${MACHINE}"
meta/recipes-qt/meta/meta-toolchain-qt.inc +5
-0+TOOLCHAIN_HOST_TASK = " \ + nativesdk-packagegroup-${QTNAME}-toolchain-host \ + packagegroup-cross-canadian-${MACHINE} \ + nativesdk-python-modules \ + " TOOLCHAIN_TARGET_TASK = "packagegroup-${QTNAME}-toolchain-target" TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-${QTNAME}-${DISTRO_VERSION}"Best regards,
Marek Vasut
Review
Quoted 8 lines · Marek Vasut
-TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host packagegroup-cross-
canadian-${MACHINE}"(quoted diff) +4
-0+TOOLCHAIN_HOST_TASK ?= " \ + nativesdk-packagegroup-sdk-host \ + packagegroup-cross-canadian-${MACHINE} \ + nativesdk-python-modules
Thanks to Laszlo for pinging this. We fixed a similar problem in the buildtools tarball by pulling in python-modules but the situation was different there - the buildtools tarball always contained some of Python so it's logical to make it pull in all of python.
It's nativesdk-packagegroup-sdk-host that's pulling in parts of Python via it's dependency on smartpm. This makes me think we need two changes here:
1) The toolchain should contain the packaging tools for the selected packaging format of the images, not just smartpm. So a SDK for a opkg-based image should be shipping opkg, not smartpm.
2) Toolchains should either ship no Python or all Python, because dropping a partial Python into $PATH breaks user's expectations (the same argument that was used for the buildtools). Not sure how to do this though, maybe the construction should inspect the installed package list and if anything Python was installed, ensure python-modules is also installed.
Comments?
Ross
Quoted 14 lines · Ross
On 21 September 2014 at 17:02, Marek Vasut <[email protected]> wrote:
-TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host packagegroup-cross-
canadian-${MACHINE}"
+TOOLCHAIN_HOST_TASK ?= " \
+ nativesdk-packagegroup-sdk-host \
+ packagegroup-cross-canadian-${MACHINE} \
+ nativesdk-python-modulesThanks to Laszlo for pinging this. We fixed a similar problem in the buildtools tarball by pulling in python-modules but the situation was different there - the buildtools tarball always contained some of Python so it's logical to make it pull in all of python.
Quoted 7 lines
It's nativesdk-packagegroup-sdk-host that's pulling in parts of Python via it's dependency on smartpm. This makes me think we need two changes here:
1) The toolchain should contain the packaging tools for the selected packaging format of the images, not just smartpm. So a SDK for a opkg-based image should be shipping opkg, not smartpm.
Agreed on smartpm, rpm is a bit of a different story due to where it gets used in the packaging process. As the SDK and build systems converge this gets a bit fuzzy :/.
Quoted 10 lines
2) Toolchains should either ship no Python or all Python, because dropping a partial Python into $PATH breaks user's expectations (the same argument that was used for the buildtools). Not sure how to do this though, maybe the construction should inspect the installed package list and if anything Python was installed, ensure python-modules is also installed.
Comments?
Make nativesdk-python-core RRECOMMEND python-modules?
Cheers,
Richard
Quoted 2 lines · Richard Purdie
Make nativesdk-python-core RRECOMMEND python-modules?
Makes sense, and is clean. Patch incoming.
Ross
Quoted 19 lines · On Monday 01 December 2014 15:13:30 Richard Purdie wrote:
Quoted 18 lines · Ross
On 21 September 2014 at 17:02, Marek Vasut <[email protected]> wrote:
-TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host packagegroup-cross-
canadian-${MACHINE}"
+TOOLCHAIN_HOST_TASK ?= " \
+ nativesdk-packagegroup-sdk-host \
+ packagegroup-cross-canadian-${MACHINE} \
+ nativesdk-python-modulesThanks to Laszlo for pinging this. We fixed a similar problem in the buildtools tarball by pulling in python-modules but the situation was different there - the buildtools tarball always contained some of Python so it's logical to make it pull in all of python.
It's nativesdk-packagegroup-sdk-host that's pulling in parts of Python via it's dependency on smartpm. This makes me think we need two changes here:
Quoted 7 lines
Quoted 3 lines
1) The toolchain should contain the packaging tools for the selected packaging format of the images, not just smartpm. So a SDK for a opkg-based image should be shipping opkg, not smartpm.
Agreed on smartpm, rpm is a bit of a different story due to where it gets used in the packaging process. As the SDK and build systems converge this gets a bit fuzzy :/.
I'm not entirely sure python-smartpm should have been added by default in the first place. I'd say having it there ought to be the choice of the person creating the SDK, just as with a lot of other tools one might want in the SDK. For most people I suspect it's superfluous.
Quoted 10 lines
Quoted 8 lines
2) Toolchains should either ship no Python or all Python, because dropping a partial Python into $PATH breaks user's expectations (the same argument that was used for the buildtools). Not sure how to do this though, maybe the construction should inspect the installed package list and if anything Python was installed, ensure python-modules is also installed.
Comments?
Make nativesdk-python-core RRECOMMEND python-modules?
This sounds like a reasonable option to me. The split as it is at the moment exists mainly for trimming the target; the SDK is perhaps less sensitive to size constraints.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 6 lines · Paul Eggleton
Quoted 1 line
Make nativesdk-python-core RRECOMMEND python-modules?
This sounds like a reasonable option to me. The split as it is at the moment
exists mainly for trimming the target; the SDK is perhaps less sensitive to size constraints.
Patch sent.
Ross
Quoted 6 lines · Ross
Quoted 3 lines · Paul Eggleton
Quoted 2 lines
Make nativesdk-python-core RRECOMMEND python-modules?
Quoted 8 lines
Quoted 5 lines
This sounds like a reasonable option to me. The split as it is at the moment
exists mainly for trimming the target; the SDK is perhaps less sensitive to
size constraints.Patch sent.
Thanks!
Quoted 9 lines
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core