diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 12:49:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 22:32:50 +0100 |
commit | 5d11fecd3f7b89040a5d3ea1b7c25eef6536e8c2 (patch) | |
tree | 742ab626c6e13e68e5e0d16636162d87491ed5e4 | |
parent | 59d990ad09339c9ef2dd57876e9802791d60e39e (diff) | |
download | poky-5d11fecd3f7b89040a5d3ea1b7c25eef6536e8c2.tar.gz |
python: Update now reproducibile builds are the default
Now reproducible builds are the default move the qemu-usermode check to anon
python code so that invalid configurations are detected.
(From OE-Core rev: 6c195acb400efeeebdacdd8d081b35f7417a694c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 |