Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Remove cairo dependency from gobject-introspection
@ 2023-02-08 14:23 Thomas Petazzoni via buildroot
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni via buildroot @ 2023-02-08 14:23 UTC (permalink / raw)
  To: James Hilliard; +Cc: buildroot@buildroot.org

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
else
GOBJECT_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
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-08 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 14:23 [Buildroot] Remove cairo dependency from gobject-introspection Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox