diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.8.3.bb')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.8.3.bb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb b/meta/recipes-devtools/python/python3_3.8.3.bb index 997308dc75..2eb2a422e6 100644 --- a/meta/recipes-devtools/python/python3_3.8.3.bb +++ b/meta/recipes-devtools/python/python3_3.8.3.bb | |||
@@ -82,16 +82,16 @@ CACHED_CONFIGUREVARS = " \ | |||
82 | ac_cv_file__dev_ptc=no \ | 82 | ac_cv_file__dev_ptc=no \ |
83 | ac_cv_working_tzset=yes \ | 83 | ac_cv_working_tzset=yes \ |
84 | " | 84 | " |
85 | python() { | 85 | |
86 | def possibly_include_pgo(d): | ||
86 | # PGO currently causes builds to not be reproducible, so disable it for | 87 | # PGO currently causes builds to not be reproducible, so disable it for |
87 | # now. See YOCTO #13407 | 88 | # now. See YOCTO #13407 |
88 | if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) and d.getVar('BUILD_REPRODUCIBLE_BINARIES') != '1': | 89 | if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) and d.getVar('BUILD_REPRODUCIBLE_BINARIES') != '1': |
89 | d.setVar('PACKAGECONFIG_PGO', 'pgo') | 90 | return 'pgo' |
90 | else: | 91 | |
91 | d.setVar('PACKAGECONFIG_PGO', '') | 92 | return '' |
92 | } | ||
93 | 93 | ||
94 | PACKAGECONFIG_class-target ??= "readline ${PACKAGECONFIG_PGO} gdbm" | 94 | PACKAGECONFIG_class-target ??= "readline ${@possibly_include_pgo(d)} gdbm" |
95 | PACKAGECONFIG_class-native ??= "readline gdbm" | 95 | PACKAGECONFIG_class-native ??= "readline gdbm" |
96 | PACKAGECONFIG_class-nativesdk ??= "readline gdbm" | 96 | PACKAGECONFIG_class-nativesdk ??= "readline gdbm" |
97 | PACKAGECONFIG[readline] = ",,readline" | 97 | PACKAGECONFIG[readline] = ",,readline" |