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:26:09 +0100
commite53ebf297c86bba727e075c44c595beb061dbfc8 (patch)
treecf330e5d47b06a000678085fb125c5dbf47bd491
parent778a6b4bf6aa9d0941d52ee05e14b061b659b3df (diff)
downloadopenembedded-core-contrib-e53ebf297c86bba727e075c44c595beb061dbfc8.tar.gz
openembedded-core-contrib-e53ebf297c86bba727e075c44c595beb061dbfc8.tar.bz2
openembedded-core-contrib-e53ebf297c86bba727e075c44c595beb061dbfc8.zip
python3: Disable PGO for reproducible builds
Enabling PGO for python current causes it to not be reproducible when building, so disable it for now. 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 = " \
ac_cv_file__dev_ptc=no \
ac_cv_working_tzset=yes \
"
+python() {
+ # PGO currently causes builds to not be reproducible, so disable it for
+ # now. See YOCTO #13407
+ if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) and d.getVar('BUILD_REPRODUCIBLE_BINARIES') != '1':
+ d.setVar('PACKAGECONFIG_PGO', 'pgo')
+ else:
+ d.setVar('PACKAGECONFIG_PGO', '')
+}
-PACKAGECONFIG_class-target ??= "readline ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'pgo', '', d)}"
+PACKAGECONFIG_class-target ??= "readline ${PACKAGECONFIG_PGO}"
PACKAGECONFIG_class-native ??= "readline"
PACKAGECONFIG_class-nativesdk ??= "readline"
PACKAGECONFIG[readline] = ",,readline"