From 258edf7dac07710ea6c50316dc53e5154d9cb3b7 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Sun, 6 Nov 2022 20:34:43 +0100 Subject: MesonPackage: disable automatic download and install of dependencies (#33717) Without this, Meson will use its Wraps to automatically download and install dependencies. We want to manage dependencies explicitly, therefore disable this functionality. --- lib/spack/spack/build_systems/meson.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/meson.py b/lib/spack/spack/build_systems/meson.py index 6ab760cfb9..710eecc080 100644 --- a/lib/spack/spack/build_systems/meson.py +++ b/lib/spack/spack/build_systems/meson.py @@ -142,15 +142,17 @@ class MesonBuilder(BaseBuilder): default_library = "shared" args = [ - "--prefix={0}".format(pkg.prefix), + "-Dprefix={0}".format(pkg.prefix), # If we do not specify libdir explicitly, Meson chooses something # like lib/x86_64-linux-gnu, which causes problems when trying to # find libraries and pkg-config files. # See https://github.com/mesonbuild/meson/issues/2197 - "--libdir={0}".format(pkg.prefix.lib), + "-Dlibdir={0}".format(pkg.prefix.lib), "-Dbuildtype={0}".format(build_type), "-Dstrip={0}".format(strip), "-Ddefault_library={0}".format(default_library), + # Do not automatically download and install dependencies + "-Dwrap_mode=nodownload", ] return args -- cgit v1.2.3-60-g2f50