Incositency pkg-config build vs system
When adding avahi-client
as dependency there is an inconsistency between system and build output of pkg-config
that results in a failing build.
Meson build log:
Determining dependency 'avahi-client' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
Called `/usr/bin/pkg-config --modversion avahi-client` -> 1
System output:
/usr/bin/pkg-config --modversion avahi-client
0.8
Weirdly, it does work for other libraries e.g. libsoup-2.4
Meson build log:
Determining dependency 'libsoup-2.4' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: /app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
Called `/usr/bin/pkg-config --modversion libsoup-2.4` -> 0
2.72.0
System output:
/usr/bin/pkg-config --modversion libsoup-2.4
2.72.0
Happens on Ubuntu 21.04, gnome-builder 3.38.2 (installed via apt)