1
0
Fork 0

dependencies/pkgconfig: Log pkg-config exceptions

This means that when either cflags or libs lookup fails, this will be
logged always in the log, leading to much easier to debug messages
like:

  Called `/usr/local/bin/pkg-config --cflags gnutls` -> 1

  pkg-config error with 'gnutls': Could not generate cargs for gnutls:
  Package nettle was not found in the pkg-config search path.
  Perhaps you should add the directory containing `nettle.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'nettle', required by 'gnutls', not found

  Run-time dependency gnutls found: NO (tried pkgconfig)
pull/5713/merge
Marvin Scholz 5 anos atrás commit de Nirbheek Chauhan
commit 2fe75ab31d
  1. 1
      mesonbuild/dependencies/base.py

@ -657,6 +657,7 @@ class PkgConfigDependency(ExternalDependency):
# Fetch the libraries and library paths needed for using this
self._set_libs()
except DependencyException as e:
mlog.debug("pkg-config error with '%s': %s" % (name, e))
if self.required:
raise
else:

Carregando…
Cancelar
Salvar