diff options
-rw-r--r-- | recipes/harfbuzz.recipe | 5 | ||||
-rw-r--r-- | recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch | 34 |
2 files changed, 38 insertions, 1 deletions
diff --git a/recipes/harfbuzz.recipe b/recipes/harfbuzz.recipe index 73b6b0cb..e8db6ee5 100644 --- a/recipes/harfbuzz.recipe +++ b/recipes/harfbuzz.recipe @@ -20,7 +20,10 @@ class Recipe(recipe.Recipe): 'tests': 'disabled'} # https://github.com/harfbuzz/harfbuzz/pull/2458 - patches = ['harfbuzz/0001-meson-Export-symbols-for-a-DLL-when-not-building-sta.patch'] + patches = [ + 'harfbuzz/0001-meson-Export-symbols-for-a-DLL-when-not-building-sta.patch', + 'harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch', + ] files_bins = ['hb-ot-shape-closure', 'hb-view', 'hb-shape'] files_libs = ['libharfbuzz'] diff --git a/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch b/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch new file mode 100644 index 00000000..1846b8f4 --- /dev/null +++ b/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch @@ -0,0 +1,34 @@ +From 358b876830d4e93ab1822681254ba81548d9383b Mon Sep 17 00:00:00 2001 +From: Matthew Waters <matthew@centricular.com> +Date: Sun, 27 Mar 2022 14:39:11 +1100 +Subject: [PATCH] harfbuzz: disable werror from pragmas + +Currently fails building on macOS 12.3 and should actually be controlled +by the build system. +--- + src/hb.hh | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/hb.hh b/src/hb.hh +index 3adca88..aa07101 100644 +--- a/src/hb.hh ++++ b/src/hb.hh +@@ -62,6 +62,7 @@ + + /* Error. Should never happen. */ + #ifndef HB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR ++#if 0 + #pragma GCC diagnostic error "-Wc++11-narrowing" + #pragma GCC diagnostic error "-Wcast-align" + #pragma GCC diagnostic error "-Wcast-function-type" +@@ -93,6 +94,7 @@ + #pragma GCC diagnostic error "-Wvla" + #pragma GCC diagnostic error "-Wwrite-strings" + #endif ++#endif + + /* Warning. To be investigated if happens. */ + #ifndef HB_NO_PRAGMA_GCC_DIAGNOSTIC_WARNING +-- +2.32.0 (Apple Git-132) + |