Skip to contentSkip to conversation

package/harfbuzz: fix build without cairo-svg

PATCH Superseded James Hilliard 2 participants 3 messages Jun 23, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/harfbuzz: fix build without cairo-svg

Fixes:
test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
40 | #include <cairo-svg.h>

      |          ^~~~~~~~~~~~~
---
 ...airo-svg-dependency-to-test-ot-color.patch | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch
package/harfbuzz/0001-Add-missing-cairo-svg-dependency-to-test-ot-color.patch new file +38 -0
new file mode 100644
index 0000000000..ea759e5afc
@@ -0,0 +1,38 @@
+From c2d7dfc68ffcb389c9f73b5ef94da7b270bdcf9e Mon Sep 17 00:00:00 2001
+From: James Hilliard <[email protected]>
+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 <[email protected]>
+[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
+
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/harfbuzz: fix build without cairo-svg

Quoted 6 lines · On Sun, 23 Jun 2019 12:52:32 -0600 James Hilliard <[email protected]>…

Fixes:
test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
40 | #include <cairo-svg.h>

      |          ^~~~~~~~~~~~~

Hum, we fixed the same build issue with:

https://git.buildroot.org/buildroot/commit/?id=ced273e4f1a0048319441a01be367c0bb65f6a2d

But probably your change is better, if the SVG dependency is in fact not really needed ?

Fabrice, could you look at James patch and tell what you think ?

James: such patches should contain a reference to the autobuilder failure it's fixing, like this:

Fixes:

http://autobuild.buildroot.org/results/.../

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/harfbuzz: fix build without cairo-svg

Quoted 9 lines · Thomas Petazzoni
Quoted 5 lines · On Sun, 23 Jun 2019 12:52:32 -0600 James Hilliard <[email protected]>…

Fixes:
test-ot-color.cc:40:10: fatal error: cairo-svg.h: No such file or directory
40 | #include <cairo-svg.h>

      |          ^~~~~~~~~~~~~
Quoted 8 lines
Quoted 1 line

Hum, we fixed the same build issue with:

https://git.buildroot.org/buildroot/commit/?id=ced273e4f1a0048319441a01be367c0bb65f6a2d

But probably your change is better, if the SVG dependency is in fact not really needed ?

yeah, it shouldn't be needed

Quoted 5 lines

Fabrice, could you look at James patch and tell what you think ?

James: such patches should contain a reference to the autobuilder failure it's fixing, like this:

ah, I had only caught this in my local build

Quoted 12 lines

Fixes:

http://autobuild.buildroot.org/results/.../

Thanks,

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