Remove cairo dependency from gobject-introspection
Hello James,
Here at the Buildroot Developers Meeting, we ended up looking at where util-linux-libs gets used, and we found out it's used in fontconfig. Since util-linux-libs was originally introduced to break a circular dependency involving systemd and util-linux, we found it strange that fontconfig was involved in that.
Turns out that there is a possible circular dependency like this:
util-linux -> udev -> systemd -> polkit -> gobject-introspection -> cairo -> fontconfig -> util-linux
What is obviously strange in there is the dependency of gobject-introspection on cairo, which comes from:
ifeq ($(BR2_PACKAGE_CAIRO),y) GOBJECT_INTROSPECTION_DEPENDENCIES += cairo GOBJECT_INTROSPECTION_CONF_OPTS += -Dcairo=enabled elseGOBJECT_INTROSPECTION_CONF_OPTS += -Dcairo=disabled endif
However, according to gobject-introspection's meson_options.txt:
option('cairo', type: 'feature', value : 'auto',
description: 'Use cairo for tests'
)
it seems like cairo is only used for tests, which we really don't care about.
If that's indeed true, do you think you could drop that optional dependency in gobject-instrospection, pass -Dcairo=disabled unconditionally, and cleanup fontconfig to not need util-linux-libs (see commit eb058222596d83bbdc96c80c5d0cdecb572a4ac3) ?
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot