package/harfbuzz: fix build on m68k
PATCH 1/1 package/harfbuzz: fix build on m68k
Fixes:
http://autobuild.buildroot.net/results/b54/b54cf80fb8f09c6d4837e987657254d902a90ac1/
Signed-off-by Bernd Kuhls <[email protected]>
---
Another solution for the compile error would be to bump harfbuzz to 2.6.0, but this bump will add new features along with bugfixes:
https://github.com/harfbuzz/harfbuzz/releases
.../0001-pool-Fix-alignment-assertion.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/harfbuzz/0001-pool-Fix-alignment-assertion.patch
package/harfbuzz/0001-pool-Fix-alignment-assertion.patch new file +30 -0
@@ -0,0 +1,30 @@ +From aade9b70aabd8a97dd8a28cda2cf4d0694dd7350 Mon Sep 17 00:00:00 2001 +From: Behdad Esfahbod <[email protected]> +Date: Tue, 13 Aug 2019 16:09:20 -0700 +Subject: [PATCH] [pool] Fix alignment assertion + +I *think* it should fix https://github.com/harfbuzz/harfbuzz/issues/1901 + +Ie. if on a system, alignof(void*) < sizeof(void*)... + +Downloaded from upstream commit +https://github.com/harfbuzz/harfbuzz/commit/aade9b70aabd8a97dd8a28cda2cf4d0694dd7350 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/hb-pool.hh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/hb-pool.hh b/src/hb-pool.hh +index ff0ee194c..2dd84968e 100644 +--- a/src/hb-pool.hh ++++ b/src/hb-pool.hh +@@ -77,7 +77,7 @@ struct hb_pool_t + + static_assert (ChunkLen > 1, ""); + static_assert (sizeof (T) >= sizeof (void *), ""); +- static_assert (alignof (T) % sizeof (void *) == 0, ""); ++ static_assert (alignof (T) % alignof (void *) == 0, ""); + + struct chunk_t + {
Signature · 1 line
2.20.1
Thomas Petazzoni
AppliedPATCH 1/1 package/harfbuzz: fix build on m68k
Quoted 8 lines · On Wed, 14 Aug 2019 23:20:45 +0200 Bernd Kuhls <[email protected]> wrote:
Fixes:
http://autobuild.buildroot.net/results/b54/b54cf80fb8f09c6d4837e987657254d902a90ac1/Signed-off-by Bernd Kuhls <[email protected]>---
Another solution for the compile error would be to bump harfbuzz to 2.6.0, but this bump will add new features along with bugfixes:
https://github.com/harfbuzz/harfbuzz/releases
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com