summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--download.lst4
-rw-r--r--external/libwps/0001-add-missing-include.patch30
-rw-r--r--external/libwps/0001-error-atoi-was-not-declared-in-this-scope.patch33
-rw-r--r--external/libwps/Library_wps.mk1
-rw-r--r--external/libwps/UnpackedTarball_libwps.mk1
5 files changed, 18 insertions, 51 deletions
diff --git a/download.lst b/download.lst
index 4e329cfe8fc6..6862cbf7ecf1 100644
--- a/download.lst
+++ b/download.lst
@@ -151,8 +151,8 @@ export WPD_MD5SUM := 0773d79a1f240ef9f4f20242b13c5bb7
export WPD_TARBALL := libwpd-0.10.0.tar.bz2
export WPG_MD5SUM := 17da9770cb8b317b7633f9807b32b71a
export WPG_TARBALL := libwpg-0.3.0.tar.bz2
-export WPS_MD5SUM := b510da17dabf97864f821a71f1fe9025
-export WPS_VERSION_MICRO := 1
+export WPS_MD5SUM := 8a6c55542ce80203dd6d3b1cba99d4e5
+export WPS_VERSION_MICRO := 2
export WPS_TARBALL := libwps-0.4.$(WPS_VERSION_MICRO).tar.bz2
export XSLTML_TARBALL := a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
export ZLIB_MD5SUM := 44d667c142d7cda120332623eab69f40
diff --git a/external/libwps/0001-add-missing-include.patch b/external/libwps/0001-add-missing-include.patch
index 842bcf5c300c..9afe2aa0c30e 100644
--- a/external/libwps/0001-add-missing-include.patch
+++ b/external/libwps/0001-add-missing-include.patch
@@ -1,24 +1,24 @@
-From bc6f0f3a006123a89d1321038edeb75f2fd67c6f Mon Sep 17 00:00:00 2001
-From: David Tardon <dtardon@redhat.com>
-Date: Sun, 30 Aug 2015 11:21:29 +0200
+From 53c03b23520005aac0fb9b3036a200d63c7a8f06 Mon Sep 17 00:00:00 2001
+From: Sean Young <sean@mess.org>
+Date: Tue, 6 Oct 2015 09:16:11 +0100
Subject: [PATCH] add missing include
---
- src/lib/WPS8.cpp | 1 +
+ src/lib/MSWrite.cpp | 1 +
1 file changed, 1 insertion(+)
-diff --git a/src/lib/WPS8.cpp b/src/lib/WPS8.cpp
-index 04c1e57..8d39fa8 100644
---- a/src/lib/WPS8.cpp
-+++ b/src/lib/WPS8.cpp
-@@ -19,6 +19,7 @@
- * applicable instead of those above.
- */
+diff --git a/src/lib/MSWrite.cpp b/src/lib/MSWrite.cpp
+index 2bc2511..ab5fdd6 100644
+--- a/src/lib/MSWrite.cpp
++++ b/src/lib/MSWrite.cpp
+@@ -32,6 +32,7 @@
+
+ #include "MSWrite.h"
+#include <algorithm>
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
+ #include <cstring>
+
+ namespace MSWriteParserInternal
--
-2.4.3
+2.1.4
diff --git a/external/libwps/0001-error-atoi-was-not-declared-in-this-scope.patch b/external/libwps/0001-error-atoi-was-not-declared-in-this-scope.patch
deleted file mode 100644
index 0ebf066cb936..000000000000
--- a/external/libwps/0001-error-atoi-was-not-declared-in-this-scope.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From de94f4f83973df18a0cea257656c9cdc0fdd214b Mon Sep 17 00:00:00 2001
-From: David Tardon <dtardon@redhat.com>
-Date: Mon, 31 Aug 2015 12:19:53 +0200
-Subject: [PATCH] error: 'atoi' was not declared in this scope
-
----
- src/lib/WPSOLEParser.cpp | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/lib/WPSOLEParser.cpp b/src/lib/WPSOLEParser.cpp
-index 9a57341..ac564b4 100644
---- a/src/lib/WPSOLEParser.cpp
-+++ b/src/lib/WPSOLEParser.cpp
-@@ -64,6 +64,7 @@
- * ------------------------------------------------------------
- */
-
-+#include <cstdlib>
- #include <cstring>
- #include <map>
- #include <sstream>
-@@ -296,7 +297,7 @@ bool WPSOLEParser::parse(RVNGInputStreamPtr file)
- std::string::size_type idP = pos-1;
- while (idP >=1 && dir[idP-1] >= '0' && dir[idP-1] <= '9')
- idP--;
-- int val = atoi(dir.substr(idP, idP-pos).c_str());
-+ int val = std::atoi(dir.substr(idP, idP-pos).c_str());
- if (id[0] == -1) id[0] = val;
- else
- {
---
-2.4.3
-
diff --git a/external/libwps/Library_wps.mk b/external/libwps/Library_wps.mk
index 2af534045b65..337f8625e96a 100644
--- a/external/libwps/Library_wps.mk
+++ b/external/libwps/Library_wps.mk
@@ -36,6 +36,7 @@ $(eval $(call gb_Library_add_generated_exception_objects,wps,\
UnpackedTarball/libwps/src/lib/LotusGraph \
UnpackedTarball/libwps/src/lib/LotusSpreadsheet \
UnpackedTarball/libwps/src/lib/LotusStyleManager \
+ UnpackedTarball/libwps/src/lib/MSWrite \
UnpackedTarball/libwps/src/lib/Quattro \
UnpackedTarball/libwps/src/lib/QuattroSpreadsheet \
UnpackedTarball/libwps/src/lib/WKS4 \
diff --git a/external/libwps/UnpackedTarball_libwps.mk b/external/libwps/UnpackedTarball_libwps.mk
index ab31b8da87d4..5fad6b6ba620 100644
--- a/external/libwps/UnpackedTarball_libwps.mk
+++ b/external/libwps/UnpackedTarball_libwps.mk
@@ -15,7 +15,6 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libwps,1))
$(eval $(call gb_UnpackedTarball_add_patches,libwps,\
external/libwps/0001-add-missing-include.patch \
- external/libwps/0001-error-atoi-was-not-declared-in-this-scope.patch \
$(if $(SYSTEM_REVENGE),,external/libwps/rpath.patch.0) \
))