]> git.pld-linux.org Git - packages/iceweasel.git/commitdiff
- fix building with freetypr 2.6
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jun 2015 09:24:28 +0000 (11:24 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jun 2015 09:24:28 +0000 (11:24 +0200)
freetype-2.6.patch [new file with mode: 0644]
iceweasel.spec

diff --git a/freetype-2.6.patch b/freetype-2.6.patch
new file mode 100644 (file)
index 0000000..6cd43bb
--- /dev/null
@@ -0,0 +1,31 @@
+--- mozilla/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp~  2015-05-25 23:28:39.000000000 +0200
++++ mozilla/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp   2015-06-14 11:20:11.673675291 +0200
+@@ -39,7 +39,7 @@
+ #include FT_BITMAP_H
+ // In the past, FT_GlyphSlot_Own_Bitmap was defined in this header file.
+ #include FT_SYNTHESIS_H
+-#include FT_XFREE86_H
++#include FT_FONT_FORMATS_H
+ #ifdef FT_LCD_FILTER_H
+ #include FT_LCD_FILTER_H
+ #endif
+@@ -557,7 +557,7 @@
+     info->fEmSize = 1000;
+     bool cid = false;
+-    const char* fontType = FT_Get_X11_Font_Format(face);
++    const char* fontType = FT_Get_Font_Format(face);
+     if (strcmp(fontType, "Type 1") == 0) {
+         info->fType = SkAdvancedTypefaceMetrics::kType1_Font;
+     } else if (strcmp(fontType, "CID Type 1") == 0) {
+--- mozilla/gfx/cairo/cairo/src/cairo-ft-font.c~       2015-05-25 23:28:55.000000000 +0200
++++ mozilla/gfx/cairo/cairo/src/cairo-ft-font.c        2015-06-14 11:21:19.521750404 +0200
+@@ -1252,7 +1252,7 @@
+           align = cairo_format_stride_for_width (format, bitmap->width);
+-          FT_Bitmap_New( &tmp );
++          FT_Bitmap_Init( &tmp );
+           if (FT_Bitmap_Convert( library, bitmap, &tmp, align ))
+               return _cairo_error (CAIRO_STATUS_NO_MEMORY);
index 1ee1c855c5da97f9c9b00938343b005c2a07af8a..1f474a228331c54ba422fc68b93d84348a3d2283 100644 (file)
@@ -48,6 +48,7 @@ Patch9:               %{name}-middle_click_paste.patch
 Patch10:       %{name}-packaging.patch
 Patch11:       system-virtualenv.patch
 Patch12:       Disable-Firefox-Health-Report.patch
+Patch13:       freetype-2.6.patch
 URL:           http://www.pld-linux.org/Packages/Iceweasel
 BuildRequires: OpenGL-devel
 BuildRequires: ImageMagick
@@ -57,7 +58,7 @@ BuildRequires:        automake
 BuildRequires: bzip2-devel
 BuildRequires: cairo-devel >= 1.10.2-5
 BuildRequires: dbus-glib-devel >= 0.60
-BuildRequires: freetype-devel >= 1:2.1.8
+BuildRequires: freetype-devel >= 1:2.6
 BuildRequires: gcc-c++ >= 6:4.4
 BuildRequires: glib2-devel >= 1:2.22
 BuildRequires: gstreamer-devel >= 1.0
@@ -217,6 +218,7 @@ echo 'LOCAL_INCLUDES += $(MOZ_HUNSPELL_CFLAGS)' >> extensions/spellcheck/src/Mak
 %patch10 -p1
 %patch11 -p2
 %patch12 -p1
+%patch13 -p1
 
 cp -a xulrunner/installer/*.pc.in browser/installer/
 
This page took 0.113833 seconds and 4 git commands to generate.