summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@ovgu.de>2022-11-06 20:34:43 +0100
committerGitHub <noreply@github.com>2022-11-06 19:34:43 +0000
commit258edf7dac07710ea6c50316dc53e5154d9cb3b7 (patch)
tree605d576f3bc54bf8d567571543ee109275d2fc36
parentd4b45605c875c5c6a3578cd8dab2a5c54e4779c5 (diff)
downloadspack-258edf7dac07710ea6c50316dc53e5154d9cb3b7.tar.gz
spack-258edf7dac07710ea6c50316dc53e5154d9cb3b7.tar.bz2
spack-258edf7dac07710ea6c50316dc53e5154d9cb3b7.tar.xz
spack-258edf7dac07710ea6c50316dc53e5154d9cb3b7.zip
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.
-rw-r--r--lib/spack/spack/build_systems/meson.py6
1 files changed, 4 insertions, 2 deletions
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