summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-06-20 10:43:02 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-21 00:33:23 +0100
commita5431f3b81ecc1095b4b916355d24ee0b0a307dd (patch)
treed5fc8ddae3893d7cb156270254f8dd6516b54b36
parentf384e39ad1ca1514fb7b5d7fa0d63e0c863761ca (diff)
downloadpoky-a5431f3b81ecc1095b4b916355d24ee0b0a307dd.tar.gz
python3: Disable PGO for reproducible builds
Enabling PGO for python current causes it to not be reproducible when building, so disable it for now. (From OE-Core rev: e53ebf297c86bba727e075c44c595beb061dbfc8) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3_3.7.3.bb10
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"
78python() {
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
79PACKAGECONFIG_class-target ??= "readline ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'pgo', '', d)}" 87PACKAGECONFIG_class-target ??= "readline ${PACKAGECONFIG_PGO}"
80PACKAGECONFIG_class-native ??= "readline" 88PACKAGECONFIG_class-native ??= "readline"
81PACKAGECONFIG_class-nativesdk ??= "readline" 89PACKAGECONFIG_class-nativesdk ??= "readline"
82PACKAGECONFIG[readline] = ",,readline" 90PACKAGECONFIG[readline] = ",,readline"