summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-15 16:25:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-27 10:47:05 +0100
commitedbf8d3999126e3c271a47dada54d1724f59f573 (patch)
tree98f7ca63aba6fa135555406454a7d4fcb78f4159 /meta/recipes-devtools/python
parent706b623c12f4576805e999ece91acf89ea22e5ef (diff)
downloadpoky-edbf8d3999126e3c271a47dada54d1724f59f573.tar.gz
multilib/recipes: Use new RecipePostKeyExpansion event
There are issues with multilib due to the ordering of events where some functions see the remapped multilib dependencies and some do not. A significant problem is that the multilib class needs to make some changes before key expansion and some afterwards but by using existing event handlers, some code sees things in a partially translated state, leading to bugs. This patch changes things to use a new event handler from bitbake which makes the ordering of the changes explcit. The challenge in doing this is that it breaks some existing anonymous python and dyanmic assignments. In some cases these used to be translated and no longer are, meaning MLPREFIX has to be added. In some cases these are now translated and the MLPREFIX can be removed. This change does now make it very clear when MLPREFIX is required and when it is not, its just the migration path which is harder. The patch changes the small number of cases where fixes are needed. In particular, where a variable like RDEPENDS is conditionally extended (e.g. with an override), MLPREFIX is now required. This patch also reverts: base: Revert 'base.bbclass: considering multilib when setting LICENSE_EXCLUSION' This reverts 6597130256a1609c3e05ec5891aceaf549c37985 as the changes to multilib datastore handling mean its no longer necessary. (From OE-Core rev: b3fda056a674889cd9697e779de023d4f993d3ce) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3_3.8.2.bb14
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-devtools/python/python3_3.8.2.bb b/meta/recipes-devtools/python/python3_3.8.2.bb
index a4a16fd495..0474f07214 100644
--- a/meta/recipes-devtools/python/python3_3.8.2.bb
+++ b/meta/recipes-devtools/python/python3_3.8.2.bb
@@ -311,8 +311,8 @@ do_create_manifest[depends] += "${PN}:do_patch"
311 311
312# manual dependency additions 312# manual dependency additions
313RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules" 313RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules"
314RRECOMMENDS_${PN}-crypt_append_class-target = " openssl ca-certificates" 314RRECOMMENDS_${PN}-crypt_append_class-target = " ${MLPREFIX}openssl ${MLPREFIX}ca-certificates"
315RRECOMMENDS_${PN}-crypt_append_class-nativesdk = " openssl ca-certificates" 315RRECOMMENDS_${PN}-crypt_append_class-nativesdk = " ${MLPREFIX}openssl ${MLPREFIX}ca-certificates"
316 316
317# For historical reasons PN is empty and provided by python3-modules 317# For historical reasons PN is empty and provided by python3-modules
318FILES_${PN} = "" 318FILES_${PN} = ""
@@ -322,7 +322,7 @@ FILES_${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3"
322FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}" 322FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}"
323 323
324# provide python-pyvenv from python3-venv 324# provide python-pyvenv from python3-venv
325RPROVIDES_${PN}-venv += "python3-pyvenv" 325RPROVIDES_${PN}-venv += "${MLPREFIX}python3-pyvenv"
326 326
327# package libpython3 327# package libpython3
328PACKAGES =+ "libpython3 libpython3-staticdev" 328PACKAGES =+ "libpython3 libpython3-staticdev"
@@ -333,8 +333,8 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
333# catch all the rest (unsorted) 333# catch all the rest (unsorted)
334PACKAGES += "${PN}-misc" 334PACKAGES += "${PN}-misc"
335RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc python3-pickle python3-audio" 335RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc python3-pickle python3-audio"
336RDEPENDS_${PN}-modules_append_class-target = " python3-misc" 336RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
337RDEPENDS_${PN}-modules_append_class-nativesdk = " python3-misc" 337RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
338FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload" 338FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
339 339
340# catch manpage 340# catch manpage
@@ -348,5 +348,5 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = " locale-base-tr-tr.iso-8859-9"
348RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk tk-lib', '', d)}" 348RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk tk-lib', '', d)}"
349RDEPENDS_${PN}-dev = "" 349RDEPENDS_${PN}-dev = ""
350 350
351RDEPENDS_${PN}-tests_append_class-target = " bash" 351RDEPENDS_${PN}-tests_append_class-target = " ${MLPREFIX}bash"
352RDEPENDS_${PN}-tests_append_class-nativesdk = " bash" 352RDEPENDS_${PN}-tests_append_class-nativesdk = " ${MLPREFIX}bash"