[Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg

Peter Korsgaard peter at korsgaard.com
Mon Jun 24 07:30:01 UTC 2019


>>>>> "James" == James Hilliard <james.hilliard1 at gmail.com> writes:

 >> > This confuses me. We recently changed harfbuzz to only enable cairo
 >> > support if cairo-svg is enabled, and now this patch adds an
 >> > unconditional include of <cairo.h>?
 >> 
 >> As I understand cairo has already been an optional dependency of harfbuzz, so
 >> the unconditional cairo.h include should not be a problem. This patch makes
 >> cairo-svg.h include depend on '!defined(HB_NO_COLOR) &&
 >> defined(CAIRO_HAS_SVG_SURFACE)'.
 > Yeah, that sounds right, more details here:
 > https://github.com/harfbuzz/harfbuzz/pull/1788

Sorry, I still don't get it.

test-ot-color.cc only gets built if cairo support is enabled:

if HAVE_FREETYPE
if HAVE_CAIRO_FT
noinst_PROGRAMS += test-ot-color

So with the two harfbuzz patches we only end up here if cairo +
cairo-svg is enabled, so I don't see what this patch fixes.

Unless the intention is to drop commit ced273e4f1 (package/harfbuzz: fix
build with cairo)?

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list