Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
@ 2019-06-23 19:03 James Hilliard
  2019-06-24  4:13 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: James Hilliard @ 2019-06-23 19:03 UTC (permalink / raw)
  To: buildroot

Fixes:
http://autobuild.buildroot.org/results/f6c0b85fa476e0f52cc06f0133d2e4f9920f7556
test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
   40 | #include <cairo-svg.h>
      |          ^~~~~~~~~~~~~

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 ...airo-svg-dependency-to-test-ot-color.patch | 38 +++++++++++++++++++
 package/harfbuzz/harfbuzz.mk                  |  2 +-
 2 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch

diff --git a/package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch b/package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch
new file mode 100644
index 0000000000..ea759e5afc
--- /dev/null
+++ b/package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch
@@ -0,0 +1,38 @@
+From c2d7dfc68ffcb389c9f73b5ef94da7b270bdcf9e Mon Sep 17 00:00:00 2001
+From: James Hilliard <james.hilliard1@gmail.com>
+Date: Sat, 22 Jun 2019 19:38:48 -0600
+Subject: [PATCH] Add missing cairo-svg dependency to test-ot-color
+
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+[james.hilliard1 at gmail.com: backport from upstream commit
+c2d7dfc68ffcb389c9f73b5ef94da7b270bdcf9e]
+---
+ src/test-ot-color.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/test-ot-color.cc b/src/test-ot-color.cc
+index 44bd2eb6..e9126c06 100644
+--- a/src/test-ot-color.cc
++++ b/src/test-ot-color.cc
+@@ -25,7 +25,9 @@
+ 
+ #include "hb.hh"
+ 
+-#ifndef HB_NO_COLOR
++#include <cairo.h>
++
++#if !defined(HB_NO_COLOR) && defined(CAIRO_HAS_SVG_SURFACE)
+ 
+ #include "hb-ot.h"
+ 
+@@ -35,7 +37,6 @@
+ #include FT_FREETYPE_H
+ #include FT_GLYPH_H
+ 
+-#include <cairo.h>
+ #include <cairo-ft.h>
+ #include <cairo-svg.h>
+ 
+-- 
+2.20.1
+
diff --git a/package/harfbuzz/harfbuzz.mk b/package/harfbuzz/harfbuzz.mk
index 1144133254..ded5e554e6 100644
--- a/package/harfbuzz/harfbuzz.mk
+++ b/package/harfbuzz/harfbuzz.mk
@@ -30,7 +30,7 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
 HARFBUZZ_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -pthread"
 endif
 
-ifeq ($(BR2_PACKAGE_CAIRO_SVG),y)
+ifeq ($(BR2_PACKAGE_CAIRO),y)
 HARFBUZZ_DEPENDENCIES += cairo
 HARFBUZZ_CONF_OPTS += --with-cairo=yes
 else
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-23 19:03 [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg James Hilliard
@ 2019-06-24  4:13 ` Thomas Petazzoni
  2019-06-24  6:43   ` Peter Korsgaard
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2019-06-24  4:13 UTC (permalink / raw)
  To: buildroot

On Sun, 23 Jun 2019 13:03:09 -0600
James Hilliard <james.hilliard1@gmail.com> wrote:

> Fixes:
> http://autobuild.buildroot.org/results/f6c0b85fa476e0f52cc06f0133d2e4f9920f7556
> test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
>    40 | #include <cairo-svg.h>
>       |          ^~~~~~~~~~~~~
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>  ...airo-svg-dependency-to-test-ot-color.patch | 38 +++++++++++++++++++
>  package/harfbuzz/harfbuzz.mk                  |  2 +-
>  2 files changed, 39 insertions(+), 1 deletion(-)
>  create mode 100644 package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-24  4:13 ` Thomas Petazzoni
@ 2019-06-24  6:43   ` Peter Korsgaard
  2019-06-24  6:50     ` Baruch Siach
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2019-06-24  6:43 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > On Sun, 23 Jun 2019 13:03:09 -0600
 > James Hilliard <james.hilliard1@gmail.com> wrote:

 >> Fixes:
 >> http://autobuild.buildroot.org/results/f6c0b85fa476e0f52cc06f0133d2e4f9920f7556
 >> test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
 >> 40 | #include <cairo-svg.h>
 >> |          ^~~~~~~~~~~~~
 >> 
 >> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
 >> ---
 >> ...airo-svg-dependency-to-test-ot-color.patch | 38 +++++++++++++++++++
 >> package/harfbuzz/harfbuzz.mk                  |  2 +-
 >> 2 files changed, 39 insertions(+), 1 deletion(-)
 >> create mode 100644 package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch

 > Applied to master, thanks.

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>?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-24  6:43   ` Peter Korsgaard
@ 2019-06-24  6:50     ` Baruch Siach
  2019-06-24  7:12       ` James Hilliard
  0 siblings, 1 reply; 8+ messages in thread
From: Baruch Siach @ 2019-06-24  6:50 UTC (permalink / raw)
  To: buildroot

Hi Peter,

On Mon, Jun 24, 2019 at 08:43:16AM +0200, Peter Korsgaard wrote:
> >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> 
>  > On Sun, 23 Jun 2019 13:03:09 -0600
>  > James Hilliard <james.hilliard1@gmail.com> wrote:
> 
>  >> Fixes:
>  >> http://autobuild.buildroot.org/results/f6c0b85fa476e0f52cc06f0133d2e4f9920f7556
>  >> test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
>  >> 40 | #include <cairo-svg.h>
>  >> |          ^~~~~~~~~~~~~
>  >> 
>  >> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
>  >> ---
>  >> ...airo-svg-dependency-to-test-ot-color.patch | 38 +++++++++++++++++++
>  >> package/harfbuzz/harfbuzz.mk                  |  2 +-
>  >> 2 files changed, 39 insertions(+), 1 deletion(-)
>  >> create mode 100644 package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch
> 
>  > Applied to master, thanks.
> 
> 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)'.

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 -

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-24  6:50     ` Baruch Siach
@ 2019-06-24  7:12       ` James Hilliard
  2019-06-24  7:30         ` Peter Korsgaard
  0 siblings, 1 reply; 8+ messages in thread
From: James Hilliard @ 2019-06-24  7:12 UTC (permalink / raw)
  To: buildroot

On Mon, Jun 24, 2019 at 12:50 AM Baruch Siach <baruch@tkos.co.il> wrote:
>
> Hi Peter,
>
> On Mon, Jun 24, 2019 at 08:43:16AM +0200, Peter Korsgaard wrote:
> > >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> >
> >  > On Sun, 23 Jun 2019 13:03:09 -0600
> >  > James Hilliard <james.hilliard1@gmail.com> wrote:
> >
> >  >> Fixes:
> >  >> http://autobuild.buildroot.org/results/f6c0b85fa476e0f52cc06f0133d2e4f9920f7556
> >  >> test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
> >  >> 40 | #include <cairo-svg.h>
> >  >> |          ^~~~~~~~~~~~~
> >  >>
> >  >> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> >  >> ---
> >  >> ...airo-svg-dependency-to-test-ot-color.patch | 38 +++++++++++++++++++
> >  >> package/harfbuzz/harfbuzz.mk                  |  2 +-
> >  >> 2 files changed, 39 insertions(+), 1 deletion(-)
> >  >> create mode 100644 package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch
> >
> >  > Applied to master, thanks.
> >
> > 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
>
> 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 -

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-24  7:12       ` James Hilliard
@ 2019-06-24  7:30         ` Peter Korsgaard
  2019-06-24  8:08           ` Baruch Siach
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2019-06-24  7:30 UTC (permalink / raw)
  To: buildroot

>>>>> "James" == James Hilliard <james.hilliard1@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-24  7:30         ` Peter Korsgaard
@ 2019-06-24  8:08           ` Baruch Siach
  2019-06-24  8:18             ` Peter Korsgaard
  0 siblings, 1 reply; 8+ messages in thread
From: Baruch Siach @ 2019-06-24  8:08 UTC (permalink / raw)
  To: buildroot

Hi Peter,

On Mon, Jun 24, 2019 at 09:30:01AM +0200, Peter Korsgaard wrote:
> >>>>> "James" == James Hilliard <james.hilliard1@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 -

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg
  2019-06-24  8:08           ` Baruch Siach
@ 2019-06-24  8:18             ` Peter Korsgaard
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2019-06-24  8:18 UTC (permalink / raw)
  To: buildroot

>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > Hi Peter,
 > On Mon, Jun 24, 2019 at 09:30:01AM +0200, Peter Korsgaard wrote:
 >> >>>>> "James" == James Hilliard <james.hilliard1@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.

Gaah, I really wonder how I missed that. Ok, it would have been great if
the commit message would have explained it, but oh well.

Sorry for the noise.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-06-24  8:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-23 19:03 [Buildroot] [PATCH v2 1/1] package/harfbuzz: fix build without cairo-svg James Hilliard
2019-06-24  4:13 ` Thomas Petazzoni
2019-06-24  6:43   ` Peter Korsgaard
2019-06-24  6:50     ` Baruch Siach
2019-06-24  7:12       ` James Hilliard
2019-06-24  7:30         ` Peter Korsgaard
2019-06-24  8:08           ` Baruch Siach
2019-06-24  8:18             ` Peter Korsgaard

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