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

Baruch Siach baruch at tkos.co.il
Mon Jun 24 08:08:43 UTC 2019


Hi Peter,

On Mon, Jun 24, 2019 at 09:30:01AM +0200, Peter Korsgaard wrote:
> >>>>> "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)?

Yes. Commit de8094925ee reverts commit ced273e4f1a0, and adds the patch.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list