summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2019-02-21 17:26:38 -0600
committerGitHub <noreply@github.com>2019-02-21 17:26:38 -0600
commit98f1c9a291e2267cc0e8c5460fe8a1fed5781ee8 (patch)
tree3e5bf6d73c3b2e94710b294a89f2e6d56ac7d4b5
parent4f5be841d4dfa403978763cc555e35324d68fdd8 (diff)
downloadspack-98f1c9a291e2267cc0e8c5460fe8a1fed5781ee8.tar.gz
spack-98f1c9a291e2267cc0e8c5460fe8a1fed5781ee8.tar.bz2
spack-98f1c9a291e2267cc0e8c5460fe8a1fed5781ee8.tar.xz
spack-98f1c9a291e2267cc0e8c5460fe8a1fed5781ee8.zip
CPATH warning: downgrade to debug message (#10675)
Spack warns users when a dependency package updates CPATH. This warning message is generating bug reports and alarm in cases where there is no problem. For now this downgrades the warning message to the debug level, so it only shows up if something goes wrong for the user and they ask for more information from Spack.
-rw-r--r--lib/spack/spack/build_environment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index ae93d10d7b..68f1a11481 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -691,9 +691,9 @@ def setup_package(pkg, dirty):
dpkg.setup_dependent_environment(spack_env, run_env, spec)
if (not dirty) and (not spack_env.is_unset('CPATH')):
- tty.warn("A dependency has updated CPATH, this may lead pkg-config"
- " to assume that the package is part of the system"
- " includes and omit it when invoked with '--cflags'.")
+ tty.debug("A dependency has updated CPATH, this may lead pkg-config"
+ " to assume that the package is part of the system"
+ " includes and omit it when invoked with '--cflags'.")
set_module_variables_for_package(pkg)
pkg.setup_environment(spack_env, run_env)