diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-08-12 11:49:56 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-08-12 11:49:56 +0800 |
commit | 9ad66e6c36f591c795e3573f1984e7b95d022960 (patch) | |
tree | 07e2a20d78871c70a304e9b49affe2557924eb85 /www/firefox | |
parent | 44059eda431a245fb9a8bcc7bab0d9dcb9fcef70 (diff) | |
download | freebsd-ports-gnome-9ad66e6c36f591c795e3573f1984e7b95d022960.tar.gz freebsd-ports-gnome-9ad66e6c36f591c795e3573f1984e7b95d022960.tar.zst freebsd-ports-gnome-9ad66e6c36f591c795e3573f1984e7b95d022960.zip |
www/firefox: unbreak on big-endians (e.g. powerpc*, sparc64)
ERROR: --disable-skia is not supported anymore
In file included from objdir/gfx/2d/Unified_cpp_gfx_2d1.cpp:101:
gfx/2d/ScaledFontBase.cpp:217:39: error: use of undeclared identifier 'PathSkia'
RefPtr<Path> path = MakeAndAddRef<PathSkia>(skPath, FillRule::FILL_WINDING);
^
Diffstat (limited to 'www/firefox')
-rw-r--r-- | www/firefox/files/patch-bug1144632 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www/firefox/files/patch-bug1144632 b/www/firefox/files/patch-bug1144632 new file mode 100644 index 000000000000..f6416f85589e --- /dev/null +++ b/www/firefox/files/patch-bug1144632 @@ -0,0 +1,41 @@ +Revert bug 1323303 to unbreak build on big-endian architectures. + +--- toolkit/moz.configure.orig 2017-07-31 16:20:54 UTC ++++ toolkit/moz.configure +@@ -771,11 +771,11 @@ + # ============================================================== + option('--disable-skia', help='Disable use of Skia') + +-@depends('--disable-skia') +-def skia(value): +- if not value: +- die('--disable-skia is not supported anymore') +- else: ++@depends('--disable-skia', target) ++def skia(value, target): ++ if value.origin == 'default' and target.endianness == 'big': ++ return None ++ if value: + return True + + set_config('MOZ_ENABLE_SKIA', skia) +--- gfx/2d/ScaledFontBase.cpp.orig 2017-07-31 16:20:54 UTC ++++ gfx/2d/ScaledFontBase.cpp +@@ -212,14 +212,16 @@ ScaledFontBase::CopyGlyphsToBuilder(const GlyphBuffer + cairoPath->AppendPathToBuilder(builder); + return; + } ++#endif ++#ifdef USE_SKIA + if (backendType == BackendType::RECORDING) { + SkPath skPath = GetSkiaPathForGlyphs(aBuffer); + RefPtr<Path> path = MakeAndAddRef<PathSkia>(skPath, FillRule::FILL_WINDING); + path->StreamToSink(aBuilder); + return; + } +- MOZ_ASSERT(false, "Path not being copied"); + #endif ++ MOZ_ASSERT(false, "Path not being copied"); + } + + void |