diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.10.0.bb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/meta/recipes-devtools/python/python3_3.10.0.bb b/meta/recipes-devtools/python/python3_3.10.0.bb index 2e850710b6..e3300b6495 100644 --- a/meta/recipes-devtools/python/python3_3.10.0.bb +++ b/meta/recipes-devtools/python/python3_3.10.0.bb | |||
@@ -95,15 +95,8 @@ CACHED_CONFIGUREVARS = " \ | |||
95 | ac_cv_working_tzset=yes \ | 95 | ac_cv_working_tzset=yes \ |
96 | " | 96 | " |
97 | 97 | ||
98 | def possibly_include_pgo(d): | 98 | # PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407 |
99 | # PGO currently causes builds to not be reproducible, so disable it for | 99 | PACKAGECONFIG:class-target ??= "readline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" |
100 | # now. See YOCTO #13407 | ||
101 | if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) and d.getVar('BUILD_REPRODUCIBLE_BINARIES') != '1': | ||
102 | return 'pgo' | ||
103 | |||
104 | return '' | ||
105 | |||
106 | PACKAGECONFIG:class-target ??= "readline ${@possibly_include_pgo(d)} gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" | ||
107 | PACKAGECONFIG:class-native ??= "readline gdbm" | 100 | PACKAGECONFIG:class-native ??= "readline gdbm" |
108 | PACKAGECONFIG:class-nativesdk ??= "readline gdbm" | 101 | PACKAGECONFIG:class-nativesdk ??= "readline gdbm" |
109 | PACKAGECONFIG[readline] = ",,readline" | 102 | PACKAGECONFIG[readline] = ",,readline" |
@@ -320,6 +313,9 @@ python(){ | |||
320 | d.setVar('PACKAGES', ' '.join(packages)) | 313 | d.setVar('PACKAGES', ' '.join(packages)) |
321 | d.setVar('ALLOW_EMPTY:${PN}-modules', '1') | 314 | d.setVar('ALLOW_EMPTY:${PN}-modules', '1') |
322 | d.setVar('ALLOW_EMPTY:${PN}-pkgutil', '1') | 315 | d.setVar('ALLOW_EMPTY:${PN}-pkgutil', '1') |
316 | |||
317 | if "pgo" in d.getVar("PACKAGECONFIG").split() and not bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d): | ||
318 | bb.fatal("pgo cannot be enabled as there is no qemu-usermode support for this architecture/machine") | ||
323 | } | 319 | } |
324 | 320 | ||
325 | # Files needed to create a new manifest | 321 | # Files needed to create a new manifest |