[kate] try to fix arm build

Rex Dieter rdieter at fedoraproject.org
Sat Sep 28 10:36:42 UTC 2013


commit 39bd66286a18b81b4205681bf0dc2df097837ec3
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Sat Sep 28 05:36:17 2013 -0500

    try to fix arm build

 kate-4.11.2-arm_qreal.patch |   12 ++++++++++++
 kate.spec                   |    5 +++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/kate-4.11.2-arm_qreal.patch b/kate-4.11.2-arm_qreal.patch
new file mode 100644
index 0000000..27d824a
--- /dev/null
+++ b/kate-4.11.2-arm_qreal.patch
@@ -0,0 +1,12 @@
+diff -up kate-4.11.2/part/view/kateviewhelpers.cpp.arm_qreal kate-4.11.2/part/view/kateviewhelpers.cpp
+--- kate-4.11.2/part/view/kateviewhelpers.cpp.arm_qreal	2013-09-26 14:18:55.616737800 -0500
++++ kate-4.11.2/part/view/kateviewhelpers.cpp	2013-09-28 05:35:00.496903155 -0500
+@@ -1487,7 +1487,7 @@ void KateIconBorder::updateFont()
+   // Loop to determine the widest numeric character in the current font.
+   // 48 is ascii '0'
+   for (int i = 48; i < 58; i++) {
+-    const double charWidth = ceil(fm.width( QChar(i) ));
++    const qreal charWidth = ceil(fm.width( QChar(i) ));
+     m_maxCharWidth = qMax(m_maxCharWidth, charWidth);
+   }
+ 
diff --git a/kate.spec b/kate.spec
index 92a1e08..8e49c3e 100644
--- a/kate.spec
+++ b/kate.spec
@@ -17,6 +17,9 @@ URL:     https://projects.kde.org/projects/kde/kdebase/kate
 %endif
 Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
 
+## upstreamable patches
+Patch50: kate-4.11.2-arm_qreal.patch
+
 # upstream patches
 
 BuildRequires: desktop-file-utils
@@ -73,6 +76,8 @@ Requires: kde-runtime%{?_kde4_version: >= %{_kde4_version}}
 %prep
 %setup -q
 
+%patch50 -p1 -b .arm_qreal
+
 
 %build
 mkdir -p %{_target_platform}


More information about the scm-commits mailing list