diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.7.3.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3_3.7.3.bb b/meta/recipes-devtools/python/python3_3.7.3.bb index 2444296142..8e77dbe959 100644 --- a/meta/recipes-devtools/python/python3_3.7.3.bb +++ b/meta/recipes-devtools/python/python3_3.7.3.bb | |||
@@ -75,8 +75,16 @@ CACHED_CONFIGUREVARS = " \ | |||
75 | ac_cv_file__dev_ptc=no \ | 75 | ac_cv_file__dev_ptc=no \ |
76 | ac_cv_working_tzset=yes \ | 76 | ac_cv_working_tzset=yes \ |
77 | " | 77 | " |
78 | python() { | ||
79 | # PGO currently causes builds to not be reproducible, so disable it for | ||
80 | # now. See YOCTO #13407 | ||
81 | if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) and d.getVar('BUILD_REPRODUCIBLE_BINARIES') != '1': | ||
82 | d.setVar('PACKAGECONFIG_PGO', 'pgo') | ||
83 | else: | ||
84 | d.setVar('PACKAGECONFIG_PGO', '') | ||
85 | } | ||
78 | 86 | ||
79 | PACKAGECONFIG_class-target ??= "readline ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'pgo', '', d)}" | 87 | PACKAGECONFIG_class-target ??= "readline ${PACKAGECONFIG_PGO}" |
80 | PACKAGECONFIG_class-native ??= "readline" | 88 | PACKAGECONFIG_class-native ??= "readline" |
81 | PACKAGECONFIG_class-nativesdk ??= "readline" | 89 | PACKAGECONFIG_class-nativesdk ??= "readline" |
82 | PACKAGECONFIG[readline] = ",,readline" | 90 | PACKAGECONFIG[readline] = ",,readline" |