From 98f1c9a291e2267cc0e8c5460fe8a1fed5781ee8 Mon Sep 17 00:00:00 2001 From: Peter Scheibel Date: Thu, 21 Feb 2019 17:26:38 -0600 Subject: 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. --- lib/spack/spack/build_environment.py | 6 +++--- 1 file 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) -- cgit v1.2.3-70-g09d2