sysprof-ui-4.pc missing dazzle dependency
To reproduce:
$ cat > trivial.c <<EOF
#include <sysprof-ui.h>
#undef _NDEBUG
#include <assert.h>
int main(void)
{
assert(SYSPROF_TYPE_NOTEBOOK != 0);
return 0;
}
EOF
$ gcc -otrivial trivial.c $(pkg-config --cflags --libs sysprof-ui-4)
$ ./trivial
Expected result: it compiles, it runs.
Actual result:
+ gcc -otrivial trivial.c -pthread -I/usr/include/sysprof-4 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lsysprof-ui-4 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
In file included from trivial.c:1:
/usr/include/sysprof-4/sysprof-ui.h:23:10: fatal error: dazzle.h: No such file or directory
23 | #include <dazzle.h>
| ^~~~~~~~~~
In a less contrived situation, the same compilation error would happen if you tried to link libsysprof-ui into a program that does not use libdazzle directly itself (only depends on libdazzle as a consequence of libsysprof-ui using it internally).