Build fails if profiler found at a different prefix
To reproduce:
meson . build
ninja -C build
Which immediately fails:
ninja: error: '/usr/local/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml', needed by 'src/meta-dbus-sysprof3-profiler.h', missing and no known rule to make it
The interface file is actually at /usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml
.
The issue is that the installation datadir
is used to find Sysprof's interface file. However, it should be using the interfaces_dir
from dbus-1
:
dbus_interfaces_dir = dependency('dbus-1').get_pkgconfig_variable('interfaces_dir')
I don't know in which D-Bus version this variable was added to dbus-1.pc
, though, so this might need some fallback logic.
Mutter from gnome-3-34
, Arch Linux.
Edited by Jan Alexander Steffens