[okular] - 4.10.0 - get rid of gcc overflow warning

Than Ngo than at fedoraproject.org
Thu Jan 31 17:23:39 UTC 2013


commit bae8ffb04f554d17a76024165b883c507a987587
Author: Than Ngo <than at redhat.com>
Date:   Thu Jan 31 18:23:10 2013 +0100

    - 4.10.0
    - get rid of gcc overflow warning

 .gitignore                               |    1 +
 0004-Propertly-encode-the-filename.patch |   27 ---------------------------
 okular-gcc-overflow.patch                |   12 ++++++++++++
 okular.spec                              |   14 +++++++++-----
 sources                                  |    2 +-
 5 files changed, 23 insertions(+), 33 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3d63a82..ef07ee0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
 /okular-4.9.95.tar.xz
 /okular-4.9.97.tar.xz
 /okular-4.9.98.tar.xz
+/okular-4.10.0.tar.xz
diff --git a/okular-gcc-overflow.patch b/okular-gcc-overflow.patch
new file mode 100644
index 0000000..c337f1f
--- /dev/null
+++ b/okular-gcc-overflow.patch
@@ -0,0 +1,12 @@
+diff -up okular-4.9.5/generators/dvi/special.cpp.me okular-4.9.5/generators/dvi/special.cpp
+--- okular-4.9.5/generators/dvi/special.cpp.me	2013-01-30 17:57:45.269341954 +0100
++++ okular-4.9.5/generators/dvi/special.cpp	2013-01-31 13:23:54.897936518 +0100
+@@ -480,7 +480,7 @@ void dviRenderer::TPIC_addPath_special(c
+   if (TPIC_path.size() == 0)
+     number_of_elements_in_path = 0;
+   if (TPIC_path.size() == number_of_elements_in_path)
+-    TPIC_path.resize(number_of_elements_in_path+100);
++    TPIC_path.resize(number_of_elements_in_path+100U);
+   TPIC_path.setPoint(number_of_elements_in_path++, x, y);
+ }
+ 
diff --git a/okular.spec b/okular.spec
index c19046b..2e455f9 100644
--- a/okular.spec
+++ b/okular.spec
@@ -1,7 +1,7 @@
 Name:    okular 
 Summary: A document viewer
-Version: 4.9.98
-Release: 2%{?dist}
+Version: 4.10.0
+Release: 1%{?dist}
 
 License: GPLv2
 URL:     https://projects.kde.org/projects/kde/kdegraphics/okular
@@ -20,9 +20,8 @@ Patch50: kdegraphics-4.5.1-okular_dt.patch
 # don't hardcode paths in OkularConfig.cmake
 Patch51: kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths.patch
 
-## upstream patches
-#  http://commits.kde.org/okular/00cbba3ecec708cb147e990112bb3074778eca65
-Patch104: 0004-Propertly-encode-the-filename.patch
+# get rif of gcc overflow warning
+Patch52: okular-gcc-overflow.patch
 
 %if 0%{?fedora}
 BuildRequires: chmlib-devel
@@ -91,6 +90,7 @@ Summary: A kioslave for displaying WinHelp files
 
 %patch50 -p2 -b .okular_dt
 %patch51 -p2 -b .OkularConfig
+%patch52 -p1 -b .overflow
 
 
 %build
@@ -172,6 +172,10 @@ fi
 
 
 %changelog
+* Thu Jan 31 2013 Than Ngo <than at redhat.com> - 4.10.0-1
+- 4.10.0
+- get rid of gcc overflow warning
+
 * Tue Jan 22 2013 Rex Dieter <rdieter at fedoraproject.org> 4.9.98-2
 - filename encoding fix (#747976, kde#313700)
 
diff --git a/sources b/sources
index 3989167..706ff98 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-85393731d8653ca583997a64ee79f607  okular-4.9.98.tar.xz
+d80826be92b2dab298959eeae0738a1b  okular-4.10.0.tar.xz


More information about the scm-commits mailing list