Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2017 03:49:56 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447814 - head/www/firefox/files
Message-ID:  <201708120349.v7C3nuXS052281@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Aug 12 03:49:56 2017
New Revision: 447814
URL: https://svnweb.freebsd.org/changeset/ports/447814

Log:
  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);
                                        ^

Added:
  head/www/firefox/files/patch-bug1144632   (contents, props changed)

Added: head/www/firefox/files/patch-bug1144632
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/firefox/files/patch-bug1144632	Sat Aug 12 03:49:56 2017	(r447814)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708120349.v7C3nuXS052281>