[packages/ParaView] - fix building with current freetype - rel 13

baggins baggins at pld-linux.org
Sat Jul 18 16:35:30 CEST 2015


commit 9a84e8aa1e40caf2ee2d7af589abb7359921bca4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 18 14:35:05 2015 +0000

    - fix building with current freetype
    - rel 13

 ParaView.spec  |  4 +++-
 freetype.patch | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/ParaView.spec b/ParaView.spec
index e643426..fb4af0d 100644
--- a/ParaView.spec
+++ b/ParaView.spec
@@ -5,7 +5,7 @@
 Summary:	Parallel visualization application
 Name:		ParaView
 Version:	4.0.1
-Release:	12
+Release:	13
 License:	BSD
 Group:		Applications/Engineering
 URL:		http://www.paraview.org/
@@ -19,6 +19,7 @@ Patch2:		%{name}-system-Protobuf.patch
 Patch3:		%{name}-system-netcdf.patch
 Patch4:		disable-broken-tests.patch
 Patch5:		protobuf.patch
+Patch6:		freetype.patch
 BuildRequires:	Mesa-libOSMesa-devel
 BuildRequires:	QtDesigner-devel
 BuildRequires:	QtHelp-devel
@@ -98,6 +99,7 @@ developing applications that use %{name}.
 %patch1 -p1
 %patch3 -p0
 %patch4 -p1
+%patch6 -p1
 
 %if %{with system_protobuf}
 %patch2 -p1
diff --git a/freetype.patch b/freetype.patch
new file mode 100644
index 0000000..8ebb711
--- /dev/null
+++ b/freetype.patch
@@ -0,0 +1,22 @@
+--- ParaView-v4.0.1-source/VTK/Rendering/FreeType/vtkFreeTypeTools.cxx.orig	2015-07-18 13:23:54.368978722 +0000
++++ ParaView-v4.0.1-source/VTK/Rendering/FreeType/vtkFreeTypeTools.cxx	2015-07-18 13:23:47.992170735 +0000
+@@ -1165,7 +1165,7 @@
+     if (bitmap)
+       {
+       metaData.ascent = std::max(bitmapGlyph->top - 1, metaData.ascent);
+-      metaData.descent = std::min(-(bitmap->rows - (bitmapGlyph->top - 1)),
++      metaData.descent = std::min(-((int)bitmap->rows - (bitmapGlyph->top - 1)),
+                                   metaData.descent);
+       }
+     ++heightString;
+@@ -1930,8 +1930,8 @@
+     if (bitmap)
+       {
+       bbox[0] = std::min(bbox[0], pen[0] + bitmapGlyph->left);
+-      bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width);
+-      bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows);
++      bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + (int)bitmap->width);
++      bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - (int)bitmap->rows);
+       bbox[3] = std::max(bbox[3], pen[1] + bitmapGlyph->top - 1);
+       }
+     else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ParaView.git/commitdiff/9a84e8aa1e40caf2ee2d7af589abb7359921bca4



More information about the pld-cvs-commit mailing list