[Buildroot] [git commit branch/2021.08.x] package/meson: disable meson wrap downloads

Peter Korsgaard peter at korsgaard.com
Wed Nov 17 15:24:58 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=e3bec374c9c3d08445eed7e680f22b0ba39e7156
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.08.x

We don't want to allow meson to download wrap dependencies as this
bypasses buildroot's dependency resolution.

This is badly documented in the meson manual, but there is at least
an FAQ that refers to it:

    https://mesonbuild.com/FAQ.html#does-wrap-download-sources-behind-my-back

    Meson has a option called wrap-mode which can be used to disable
    wrap downloads altogether with --wrap-mode=nodownload.

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
[yann.morin.1998 at free.fr: add pointer to FAQ]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 12ba3563655e3ebab252e52daa6c710864fa869f)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/meson/cross-compilation.conf.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/meson/cross-compilation.conf.in b/package/meson/cross-compilation.conf.in
index 37b49eea3b..7a7ece97ae 100644
--- a/package/meson/cross-compilation.conf.in
+++ b/package/meson/cross-compilation.conf.in
@@ -17,6 +17,7 @@ c_args = [@TARGET_CFLAGS@]
 c_link_args = [@TARGET_LDFLAGS@]
 cpp_args = [@TARGET_CXXFLAGS@]
 cpp_link_args = [@TARGET_LDFLAGS@]
+wrap_mode = 'nodownload'
 
 [properties]
 needs_exe_wrapper = true


More information about the buildroot mailing list