Fails to configure with meson >= 0.51
a6530135 fails like this
meson --prefix /home/rico/jhbuild/install --libdir lib --buildtype=debugoptimized -Ddebug=false /home/rico/jhbuild/checkout/libsecret
The Meson build system
Version: 0.51.2
Source dir: /home/rico/jhbuild/checkout/libsecret
Build dir: /home/rico/jhbuild/checkout/libsecret/build
Build type: native build
Project name: libsecret
Project version: 0.19.1
Appending LDFLAGS from environment: '-L/home/rico/jhbuild/install/lib -L/usr/local/lib '
Appending LDFLAGS from environment: '-L/home/rico/jhbuild/install/lib -L/usr/local/lib '
C compiler for the host machine: ccache cc (gcc 9.2.1 "cc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency glib-2.0 found: YES 2.63.0
Run-time dependency gio-2.0 found: YES 2.63.0
Run-time dependency gio-unix-2.0 found: YES 2.63.0
libgcrypt-config found: YES (/usr/bin/libgcrypt-config) 1.8.4
Run-time dependency libgcrypt found: YES 1.8.4
Library m found: YES
Checking for function "mlock" : YES
Configuring config.h using configuration
Configuring secret-version.h using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.1)
libsecret/meson.build:166:4: ERROR: requires argument not a string, library with pkgconfig-generated file or pkgconfig-dependency object, got <LibgcryptDependency libgcrypt: True>
A full log can be found at /home/rico/jhbuild/checkout/libsecret/build/meson-logs/meson-log.txt