meson: pkgconfig file contains arch-specific libdir
- Ubuntu 19.04 Alpha
- gsettings-desktop-schemas 3.31.0.2
The pkgconfig file is installed to an architecture-independent directory (/usr/share/pkgconfig
instead of $libdir/pkgconfig
) but contains libdir
in its file when built with meson. The libdir line is architecture-dependent on systems that have multi-arch like Debian and Fedora.
I guess you either need to install to $libdir/pkgconfig
or you'll have to use a custom target instead of meson's pkgconfig module.
See https://github.com/mesonbuild/meson/issues/2253 or https://github.com/mesonbuild/meson/issues/4011
build with autotools
$ cat /usr/share/pkgconfig/gsettings-desktop-schemas.pc
prefix=/usr
Name: gsettings-desktop-schemas
Description: Shared GSettings schemas for the desktop, including helper headers
Version: 3.31.0.2
Cflags: -I${prefix}/include/gsettings-desktop-schemas
build with meson
$ cat /usr/share/pkgconfig/gsettings-desktop-schemas.pc
prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include
Name: gsettings-desktop-schemas
Description: Shared GSettings schemas for the desktop, including helper headers
Version: 3.31.0.2
Cflags: -I${includedir}/gsettings-desktop-schemas
Edited by Jeremy Bicha