diff options
author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2022-06-22 18:05:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-25 00:06:08 +0100 |
commit | 1bb927e6b370017c30d855817358a93e5b05b969 (patch) | |
tree | b76f45a37d89347f073aa4d94bc410cfd9eab2ff /meta/recipes-devtools/llvm | |
parent | e13a057812ec639544c321db0aedf9c7c203953e (diff) | |
download | poky-1bb927e6b370017c30d855817358a93e5b05b969.tar.gz |
llvm: add PACKAGECONFIG[optviewer]
Currently the CMake configuration for llvm finds the python pygments and
pyyaml if they are installed on the host. This makes builds
non-reproducible across different machines, some having those modules
installed and some others not.
This has been causing a 'reproducible' failure on one of the autobuilders:
AssertionError: The following deb packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/deb/./core2-64/llvm-dev_14.0.4-r0_amd64.deb
The following ipk packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/ipk/./core2-64/llvm-dev_14.0.4-r0_core2-64.ipk
The following rpm packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/rpm/./core2_64/llvm-dev-14.0.4-r0.core2_64.rpm
Fix by adding an explicit PACKAGECONFIG to control the
LLVM_HAVE_OPT_VIEWER_MODULES option in CMake. If unset, it forces CMake to
ignore pygments and pyyaml, no matter it they are available on the host. If
set, it DEPENDS on the pygments and pyyaml modules so that CMake will find
and use them.
Based on suggestions from Stefan and Markus -- thanks.
Proposed-by: "Stefan Herbrechtsmeier" <stefan.herbrechtsmeier-oss@weidmueller.com>
Proposed-by: "Markus Volk" <f_l_k@t-online.de>
(From OE-Core rev: 78b6a08db4e8eb3b4e1d52fcdb39a5b3415f5a3f)
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/llvm')
-rw-r--r-- | meta/recipes-devtools/llvm/llvm_git.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index 67ed1eab00..2ec5c1e1c0 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb | |||
@@ -56,6 +56,10 @@ def get_llvm_arch(bb, d, arch_var): | |||
56 | def get_llvm_host_arch(bb, d): | 56 | def get_llvm_host_arch(bb, d): |
57 | return get_llvm_arch(bb, d, 'HOST_ARCH') | 57 | return get_llvm_arch(bb, d, 'HOST_ARCH') |
58 | 58 | ||
59 | PACKAGECONFIG ??= "" | ||
60 | # if optviewer OFF, force the modules to be not found or the ones on the host would be found | ||
61 | PACKAGECONFIG[optviewer] = ",-DPY_PYGMENTS_FOUND=OFF -DPY_PYGMENTS_LEXERS_C_CPP_FOUND=OFF -DPY_YAML_FOUND=OFF,python3-pygments python3-pyyaml,python3-pygments python3-pyyaml" | ||
62 | |||
59 | # | 63 | # |
60 | # Default to build all OE-Core supported target arches (user overridable). | 64 | # Default to build all OE-Core supported target arches (user overridable). |
61 | # | 65 | # |