forked from ports/contrib
libreoffice: 6.4.0.3 -> 6.4.1.1
This commit is contained in:
parent
ead12d1416
commit
c77df9ac64
@ -1,12 +1,10 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3z3UeT7j154xkvtS86mVTG3VAuyf4fX8kZhQwCFCPgozV+z/5KWWcOn6BcUZtxKt5bTXJ62amN8WHy6SuAoeWA8=
|
||||
SHA256 (Pkgfile) = d26c15b5ff720bea1d4e128028d2fcea4062a4031a8ebf8dff23c75fa3211b14
|
||||
RWSagIOpLGJF3zlV5vuecVWoA0cSAIqtJMNe2A0BmsPqh02LZ5a05pNMal3voUr2Je8s6s+26LvTGS5ByEWFw262dk29QT1MAws=
|
||||
SHA256 (Pkgfile) = 4c097f84679260d7e982ddcc64ac0c922206aaa58833b2a159b2599cc46c6fbc
|
||||
SHA256 (.footprint) = f63594193697542896c23c42d70c50664e8b76f8777b583ebcfcfdcf376c6881
|
||||
SHA256 (libreoffice-6.4.0.3.tar.xz) = c531d99d42c830a0f51f36c5a5efa4f32007b41b43788e3cec082cea87422a27
|
||||
SHA256 (libreoffice-dictionaries-6.4.0.3.tar.xz) = cdd6de659ae2b716b8c4f7969778fa6a2862aa963ae8537dd1d1a8666760d749
|
||||
SHA256 (libreoffice-6.4.1.1.tar.xz) = d2ef3951a50b5519c4e3b3dd150c1d4272f9504e0b1e426819d1934fe3bcd80d
|
||||
SHA256 (libreoffice-dictionaries-6.4.1.1.tar.xz) = 7a2457feb4041691e9d971be081c1fb6581c68e156e98566f7a04e27ac8054be
|
||||
SHA256 (185d60944ea767075d27247c3162b3bc-unowinreg.dll) = eafde646a7dbe46d20c291685b0beac2382174d78d66ee990e229a1bf6e6cec6
|
||||
SHA256 (0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz) = 983941d31ee8d366085cadf28db75eb1f5cb03ba1e5853b98f12f7f51c63b776
|
||||
SHA256 (pdfium-3963.tar.bz2) = 80d4d6bd8faec226936fcde5521c6e92c0c645126ac3ae72dd2c160ca1749895
|
||||
SHA256 (makefile.in.patch) = 50d2f5bac605f6fdbcb3234113949971b998875e832e1ae09b2498afe27f0f10
|
||||
SHA256 (fix_mdds-orcus.patch) = 2db39d1c672b542509893ff5e745c912cab634bf35942b8152de65777c9d9e94
|
||||
SHA256 (config.patch) = d02e4e454c2efaf2ab7605a7d7a101a6d8d76d95404d6eb43d5f608ad61b9a5f
|
||||
|
@ -5,7 +5,7 @@
|
||||
# Optional: cups kio qt5 valgrind vlc
|
||||
|
||||
name=libreoffice
|
||||
version=6.4.0.3
|
||||
version=6.4.1.1
|
||||
release=1
|
||||
pdfiumversion=3963
|
||||
source=(
|
||||
@ -15,8 +15,6 @@ source=(
|
||||
https://dev-www.libreoffice.org/src/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
|
||||
https://dev-www.libreoffice.org/src/pdfium-$pdfiumversion.tar.bz2
|
||||
makefile.in.patch
|
||||
fix_mdds-orcus.patch
|
||||
config.patch
|
||||
)
|
||||
|
||||
unpack_source() {
|
||||
|
@ -1,66 +0,0 @@
|
||||
--- configure.ac 2019-10-15 20:54:32.684816920 +0000
|
||||
+++ configure.ac.fixed 2019-10-17 01:57:03.380513944 +0000
|
||||
@@ -5928,7 +5928,7 @@
|
||||
|
||||
if test "$_os" != "WINNT"; then
|
||||
|
||||
-if test "$_os" == "iOS"; then
|
||||
+if test "$_os" = "iOS"; then
|
||||
AC_MSG_CHECKING([iOS setting sizes long, short, int, long long, double, voidp])
|
||||
ac_cv_sizeof_long=8
|
||||
ac_cv_sizeof_short=2
|
||||
@@ -10759,7 +10759,7 @@
|
||||
# Pdfium?
|
||||
AC_MSG_CHECKING([whether to build PDFium])
|
||||
ENABLE_PDFIUM=
|
||||
-if test \( -z "$enable_pdfium" -a "$ENABLE_PDFIMPORT" == "TRUE" \) -o "$enable_pdfium" = yes; then
|
||||
+if test \( -z "$enable_pdfium" -a "$ENABLE_PDFIMPORT" = "TRUE" \) -o "$enable_pdfium" = yes; then
|
||||
AC_MSG_RESULT([yes])
|
||||
ENABLE_PDFIUM=TRUE
|
||||
AC_DEFINE(HAVE_FEATURE_PDFIUM)
|
||||
@@ -10774,7 +10774,7 @@
|
||||
dnl ===================================================================
|
||||
ENABLE_POPPLER=
|
||||
AC_MSG_CHECKING([whether to build Poppler])
|
||||
-if test \( -z "$enable_poppler" -a "$ENABLE_PDFIMPORT" == "TRUE" \) -o "$enable_poppler" = yes; then
|
||||
+if test \( -z "$enable_poppler" -a "$ENABLE_PDFIMPORT" = "TRUE" \) -o "$enable_poppler" = yes; then
|
||||
AC_MSG_RESULT([yes])
|
||||
ENABLE_POPPLER=TRUE
|
||||
AC_DEFINE(HAVE_FEATURE_POPPLER)
|
||||
@@ -10783,15 +10783,15 @@
|
||||
fi
|
||||
AC_SUBST(ENABLE_POPPLER)
|
||||
|
||||
-if test "$ENABLE_PDFIMPORT" == "TRUE" -a "$ENABLE_POPPLER" != "TRUE" -a "$ENABLE_PDFIUM" != "TRUE"; then
|
||||
+if test "$ENABLE_PDFIMPORT" = "TRUE" -a "$ENABLE_POPPLER" != "TRUE" -a "$ENABLE_PDFIUM" != "TRUE"; then
|
||||
AC_MSG_ERROR([Cannot import PDF without either Pdfium or Poppler; please enable either of them.])
|
||||
fi
|
||||
|
||||
-if test "$ENABLE_PDFIMPORT" != "TRUE" -a \( "$ENABLE_POPPLER" == "TRUE" -o "$ENABLE_PDFIUM" == "TRUE" \); then
|
||||
+if test "$ENABLE_PDFIMPORT" != "TRUE" -a \( "$ENABLE_POPPLER" = "TRUE" -o "$ENABLE_PDFIUM" = "TRUE" \); then
|
||||
AC_MSG_ERROR([Cannot enable Pdfium or Poppler when PDF importing is disabled; please enable PDF import first.])
|
||||
fi
|
||||
|
||||
-if test "$ENABLE_PDFIMPORT" == "TRUE" -a "$ENABLE_POPPLER" == "TRUE"; then
|
||||
+if test "$ENABLE_PDFIMPORT" = "TRUE" -a "$ENABLE_POPPLER" = "TRUE"; then
|
||||
dnl ===================================================================
|
||||
dnl Check for system poppler
|
||||
dnl ===================================================================
|
||||
@@ -11238,7 +11238,7 @@
|
||||
qt5_test_library="libQt5Widgets.so"
|
||||
|
||||
dnl Check for qmake5
|
||||
- AC_PATH_PROGS( QMAKE5, [qmake-qt5 qmake], no, [$QT5DIR/bin:$PATH] )
|
||||
+ AC_PATH_PROGS( QMAKE5, [qmake-qt5 qmake], no, [$QT5DIR/bin:$PATH])
|
||||
if test "$QMAKE5" = "no"; then
|
||||
AC_MSG_ERROR([Qmake not found. Please specify the root of your Qt5 installation by exporting QT5DIR before running "configure".])
|
||||
else
|
||||
@@ -11298,7 +11298,7 @@
|
||||
|
||||
dnl Check for Meta Object Compiler
|
||||
|
||||
- AC_PATH_PROGS( MOC5, [moc-qt5 moc], no, [`dirname $qt5_libdir`/bin:$QT5DIR/bin:$PATH] )
|
||||
+ AC_PATH_PROGS( MOC5, [moc-qt5 moc], no, [`dirname $qt5_libdir`/bin:$QT5DIR/bin:$PATH])
|
||||
if test "$MOC5" = "no"; then
|
||||
AC_MSG_ERROR([Qt Meta Object Compiler not found. Please specify
|
||||
the root of your Qt installation by exporting QT5DIR before running "configure".])
|
@ -1,426 +0,0 @@
|
||||
From 56ffe3c0a1261cd98a3d42b8b08d5f8eb013ead4 Mon Sep 17 00:00:00 2001
|
||||
From: Kohei Yoshida <kohei@libreoffice.org>
|
||||
Date: Mon, 12 Aug 2019 13:57:34 -0400
|
||||
Subject: Switch mdds to 1.5.0 and liborcus to 0.15.0.
|
||||
|
||||
Change-Id: Ibff9a5e0f0771e4cf12b4dc3985661a01195e265
|
||||
Reviewed-on: https://gerrit.libreoffice.org/77482
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
|
||||
---
|
||||
RepositoryExternal.mk | 4 ++--
|
||||
configure.ac | 4 ++--
|
||||
.../0001-Prevent-unsigned-integer-underflow.patch | 27 ----------------------
|
||||
external/liborcus/ExternalPackage_liborcus.mk | 8 +++----
|
||||
external/liborcus/ExternalProject_liborcus.mk | 4 ++--
|
||||
external/liborcus/Library_orcus-parser.mk | 2 ++
|
||||
external/liborcus/Library_orcus.mk | 7 ++++++
|
||||
external/liborcus/UnpackedTarball_liborcus.mk | 3 ---
|
||||
external/liborcus/version.patch.0 | 11 ---------
|
||||
sc/inc/mtvelements.hxx | 8 +++----
|
||||
sc/inc/orcusxml.hxx | 1 +
|
||||
sc/qa/unit/dataproviders_test.cxx | 1 +
|
||||
sc/source/core/tool/scmatrix.cxx | 8 +++----
|
||||
sc/source/filter/inc/orcusinterface.hxx | 2 ++
|
||||
sc/source/filter/orcus/interface.cxx | 8 +++++--
|
||||
sc/source/filter/orcus/orcusfiltersimpl.cxx | 4 ++--
|
||||
sc/source/filter/orcus/xmlcontext.cxx | 9 +++++++-
|
||||
sc/source/ui/xmlsource/xmlsourcedlg.cxx | 6 +++++
|
||||
svl/source/misc/gridprinter.cxx | 2 +-
|
||||
20 files changed, 58 insertions(+), 69 deletions(-)
|
||||
delete mode 100644 external/liborcus/0001-Prevent-unsigned-integer-underflow.patch
|
||||
delete mode 100644 external/liborcus/version.patch.0
|
||||
|
||||
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
|
||||
index 54ab1db..57f66b8 100644
|
||||
--- a/RepositoryExternal.mk
|
||||
+++ b/RepositoryExternal.mk
|
||||
@@ -3262,7 +3262,7 @@ $(call gb_LinkTarget_set_include,$(1),\
|
||||
)
|
||||
|
||||
$(call gb_LinkTarget_add_libs,$(1),\
|
||||
- -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/liborcus/.libs -lorcus-0.14 \
|
||||
+ -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/liborcus/.libs -lorcus-0.15 \
|
||||
)
|
||||
|
||||
$(if $(SYSTEM_BOOST), \
|
||||
@@ -3281,7 +3281,7 @@ $(call gb_LinkTarget_set_include,$(1),\
|
||||
)
|
||||
|
||||
$(call gb_LinkTarget_add_libs,$(1),\
|
||||
- -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/parser/.libs -lorcus-parser-0.14 \
|
||||
+ -L$(call gb_UnpackedTarball_get_dir,liborcus)/src/parser/.libs -lorcus-parser-0.15 \
|
||||
)
|
||||
|
||||
endef
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 1510daf..d0e6759 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -9291,7 +9291,7 @@ AC_SUBST(SYSTEM_BOOST)
|
||||
dnl ===================================================================
|
||||
dnl Check for system mdds
|
||||
dnl ===================================================================
|
||||
-libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.4 >= 1.4.1], ["-I${WORKDIR}/UnpackedTarball/mdds/include"])
|
||||
+libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.5 >= 1.5.0], ["-I${WORKDIR}/UnpackedTarball/mdds/include"])
|
||||
|
||||
dnl ===================================================================
|
||||
dnl Check for system glm
|
||||
@@ -9597,7 +9597,7 @@ AC_SUBST(ENABLE_FUZZERS)
|
||||
dnl ===================================================================
|
||||
dnl Orcus
|
||||
dnl ===================================================================
|
||||
-libo_CHECK_SYSTEM_MODULE([orcus],[ORCUS],[liborcus-0.14 >= 0.14.0])
|
||||
+libo_CHECK_SYSTEM_MODULE([orcus],[ORCUS],[liborcus-0.15 >= 0.15.0])
|
||||
if test "$with_system_orcus" != "yes"; then
|
||||
if test "$SYSTEM_BOOST" = "TRUE"; then
|
||||
# ===========================================================
|
||||
diff --git a/external/liborcus/0001-Prevent-unsigned-integer-underflow.patch b/external/liborcus/0001-Prevent-unsigned-integer-underflow.patch
|
||||
deleted file mode 100644
|
||||
index 3353857..0000000
|
||||
--- a/external/liborcus/0001-Prevent-unsigned-integer-underflow.patch
|
||||
+++ /dev/null
|
||||
@@ -1,27 +0,0 @@
|
||||
-From 1967be013804f4f578b53659d7ef459b4c35de9f Mon Sep 17 00:00:00 2001
|
||||
-From: Kohei Yoshida <kohei.yoshida@gmail.com>
|
||||
-Date: Wed, 7 Nov 2018 21:08:40 -0500
|
||||
-Subject: [PATCH] Prevent unsigned integer underflow.
|
||||
-
|
||||
-(cherry picked from commit 40bbce85048b77c545103af124f3d9831dd4a458)
|
||||
----
|
||||
- src/parser/parser_base.cpp | 3 ++-
|
||||
- 1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
-
|
||||
-diff --git a/src/parser/parser_base.cpp b/src/parser/parser_base.cpp
|
||||
-index 586d495f..9d426efb 100644
|
||||
---- a/src/parser/parser_base.cpp
|
||||
-+++ b/src/parser/parser_base.cpp
|
||||
-@@ -120,7 +120,8 @@ double parser_base::parse_double()
|
||||
-
|
||||
- size_t parser_base::remaining_size() const
|
||||
- {
|
||||
-- return std::distance(mp_char, mp_end) - 1;
|
||||
-+ size_t n = std::distance(mp_char, mp_end);
|
||||
-+ return n ? (n - 1) : 0;
|
||||
- }
|
||||
-
|
||||
- std::ptrdiff_t parser_base::offset() const
|
||||
---
|
||||
-2.17.1
|
||||
-
|
||||
diff --git a/external/liborcus/ExternalPackage_liborcus.mk b/external/liborcus/ExternalPackage_liborcus.mk
|
||||
index ffa0b38..21dd1bf 100644
|
||||
--- a/external/liborcus/ExternalPackage_liborcus.mk
|
||||
+++ b/external/liborcus/ExternalPackage_liborcus.mk
|
||||
@@ -12,11 +12,11 @@ $(eval $(call gb_ExternalPackage_ExternalPackage,liborcus,liborcus))
|
||||
$(eval $(call gb_ExternalPackage_use_external_project,liborcus,liborcus))
|
||||
|
||||
ifeq ($(OS),MACOSX)
|
||||
-$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.14.0.dylib,src/liborcus/.libs/liborcus-0.14.0.dylib))
|
||||
-$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.14.0.dylib,src/parser/.libs/liborcus-parser-0.14.0.dylib))
|
||||
+$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.15.0.dylib,src/liborcus/.libs/liborcus-0.15.0.dylib))
|
||||
+$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.15.0.dylib,src/parser/.libs/liborcus-parser-0.15.0.dylib))
|
||||
else ifeq ($(DISABLE_DYNLOADING),)
|
||||
-$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.14.so.0,src/liborcus/.libs/liborcus-0.14.so.0.0.0))
|
||||
-$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.14.so.0,src/parser/.libs/liborcus-parser-0.14.so.0.0.0))
|
||||
+$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-0.15.so.0,src/liborcus/.libs/liborcus-0.15.so.0.0.0))
|
||||
+$(eval $(call gb_ExternalPackage_add_file,liborcus,$(LIBO_LIB_FOLDER)/liborcus-parser-0.15.so.0,src/parser/.libs/liborcus-parser-0.15.so.0.0.0))
|
||||
endif
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
diff --git a/external/liborcus/ExternalProject_liborcus.mk b/external/liborcus/ExternalProject_liborcus.mk
|
||||
index 8cc1c03..0bd36c3 100644
|
||||
--- a/external/liborcus/ExternalProject_liborcus.mk
|
||||
+++ b/external/liborcus/ExternalProject_liborcus.mk
|
||||
@@ -122,8 +122,8 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) :
|
||||
$(MAKE) \
|
||||
$(if $(filter MACOSX,$(OS)),\
|
||||
&& $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
|
||||
- $(EXTERNAL_WORKDIR)/src/liborcus/.libs/liborcus-0.14.0.dylib \
|
||||
- $(EXTERNAL_WORKDIR)/src/parser/.libs/liborcus-parser-0.14.0.dylib \
|
||||
+ $(EXTERNAL_WORKDIR)/src/liborcus/.libs/liborcus-0.15.0.dylib \
|
||||
+ $(EXTERNAL_WORKDIR)/src/parser/.libs/liborcus-parser-0.15.0.dylib \
|
||||
) \
|
||||
)
|
||||
|
||||
diff --git a/external/liborcus/Library_orcus-parser.mk b/external/liborcus/Library_orcus-parser.mk
|
||||
index 32367b8..d25d821 100644
|
||||
--- a/external/liborcus/Library_orcus-parser.mk
|
||||
+++ b/external/liborcus/Library_orcus-parser.mk
|
||||
@@ -13,6 +13,7 @@ $(eval $(call gb_Library_use_unpacked,orcus-parser,liborcus))
|
||||
|
||||
$(eval $(call gb_Library_use_externals,orcus-parser,\
|
||||
boost_headers \
|
||||
+ boost_filesystem \
|
||||
boost_system \
|
||||
mdds_headers \
|
||||
zlib \
|
||||
@@ -22,6 +23,7 @@ $(eval $(call gb_Library_set_warnings_disabled,orcus-parser))
|
||||
|
||||
$(eval $(call gb_Library_set_include,orcus-parser,\
|
||||
-I$(call gb_UnpackedTarball_get_dir,liborcus)/include \
|
||||
+ -I$(call gb_UnpackedTarball_get_dir,liborcus)/src/include \
|
||||
$$(INCLUDE) \
|
||||
))
|
||||
|
||||
diff --git a/external/liborcus/Library_orcus.mk b/external/liborcus/Library_orcus.mk
|
||||
index 2b20cdf..3793805 100644
|
||||
--- a/external/liborcus/Library_orcus.mk
|
||||
+++ b/external/liborcus/Library_orcus.mk
|
||||
@@ -24,6 +24,7 @@ $(eval $(call gb_Library_set_warnings_disabled,orcus))
|
||||
|
||||
$(eval $(call gb_Library_set_include,orcus,\
|
||||
-I$(call gb_UnpackedTarball_get_dir,liborcus)/include \
|
||||
+ -I$(call gb_UnpackedTarball_get_dir,liborcus)/src/include \
|
||||
$$(INCLUDE) \
|
||||
))
|
||||
|
||||
@@ -68,6 +69,9 @@ $(eval $(call gb_Library_add_generated_exception_objects,orcus,\
|
||||
UnpackedTarball/liborcus/src/liborcus/info \
|
||||
UnpackedTarball/liborcus/src/liborcus/interface \
|
||||
UnpackedTarball/liborcus/src/liborcus/json_document_tree \
|
||||
+ UnpackedTarball/liborcus/src/liborcus/json_map_tree \
|
||||
+ UnpackedTarball/liborcus/src/liborcus/json_structure_mapper \
|
||||
+ UnpackedTarball/liborcus/src/liborcus/json_structure_tree \
|
||||
UnpackedTarball/liborcus/src/liborcus/json_util \
|
||||
UnpackedTarball/liborcus/src/liborcus/measurement \
|
||||
UnpackedTarball/liborcus/src/liborcus/odf_helper \
|
||||
@@ -92,12 +96,15 @@ $(eval $(call gb_Library_add_generated_exception_objects,orcus,\
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_gnumeric \
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_import_ods \
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_import_xlsx \
|
||||
+ UnpackedTarball/liborcus/src/liborcus/orcus_json \
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_ods \
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_xls_xml \
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_xlsx \
|
||||
UnpackedTarball/liborcus/src/liborcus/orcus_xml \
|
||||
+ UnpackedTarball/liborcus/src/liborcus/orcus_xml_map_def \
|
||||
UnpackedTarball/liborcus/src/liborcus/session_context \
|
||||
UnpackedTarball/liborcus/src/liborcus/spreadsheet_iface_util \
|
||||
+ UnpackedTarball/liborcus/src/liborcus/spreadsheet_impl_types \
|
||||
UnpackedTarball/liborcus/src/liborcus/spreadsheet_interface \
|
||||
UnpackedTarball/liborcus/src/liborcus/spreadsheet_types \
|
||||
UnpackedTarball/liborcus/src/liborcus/string_helper \
|
||||
diff --git a/external/liborcus/UnpackedTarball_liborcus.mk b/external/liborcus/UnpackedTarball_liborcus.mk
|
||||
index e1d810a..74fbbb2 100644
|
||||
--- a/external/liborcus/UnpackedTarball_liborcus.mk
|
||||
+++ b/external/liborcus/UnpackedTarball_liborcus.mk
|
||||
@@ -19,12 +19,9 @@ $(eval $(call gb_UnpackedTarball_update_autoconf_configs,liborcus))
|
||||
# <https://gitlab.com/orcus/orcus/commit/0dfa88f2adca7887dbe44bdb7025985777c89673> "Remove unused
|
||||
# VERSION file":
|
||||
$(eval $(call gb_UnpackedTarball_add_patches,liborcus,\
|
||||
- external/liborcus/0001-workaround-a-linking-problem-on-windows.patch \
|
||||
external/liborcus/rpath.patch.0 \
|
||||
external/liborcus/gcc9.patch.0 \
|
||||
- external/liborcus/version.patch.0 \
|
||||
external/liborcus/libtool.patch.0 \
|
||||
- external/liborcus/0001-Prevent-unsigned-integer-underflow.patch \
|
||||
))
|
||||
|
||||
ifeq ($(OS),WNT)
|
||||
diff --git a/external/liborcus/version.patch.0 b/external/liborcus/version.patch.0
|
||||
deleted file mode 100644
|
||||
index 2c0b5ae..0000000
|
||||
--- a/external/liborcus/version.patch.0
|
||||
+++ /dev/null
|
||||
@@ -1,11 +0,0 @@
|
||||
---- configure
|
||||
-+++ configure
|
||||
-@@ -21055,7 +21055,7 @@
|
||||
-
|
||||
- fi
|
||||
-
|
||||
--ac_config_files="$ac_config_files Makefile liborcus-$ORCUS_API_VERSION.pc:liborcus.pc.in liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc:liborcus-spreadsheet-model.pc.in VERSION include/Makefile include/orcus/Makefile include/orcus/detail/Makefile include/orcus/mso/Makefile include/orcus/spreadsheet/Makefile src/Makefile src/liborcus/Makefile src/liborcus/constants.inl src/mso/Makefile src/parser/Makefile src/python/Makefile src/spreadsheet/Makefile parser_handlers/Makefile benchmark/Makefile doc_example/Makefile"
|
||||
-+ac_config_files="$ac_config_files Makefile liborcus-$ORCUS_API_VERSION.pc:liborcus.pc.in liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc:liborcus-spreadsheet-model.pc.in include/Makefile include/orcus/Makefile include/orcus/detail/Makefile include/orcus/mso/Makefile include/orcus/spreadsheet/Makefile src/Makefile src/liborcus/Makefile src/liborcus/constants.inl src/mso/Makefile src/parser/Makefile src/python/Makefile src/spreadsheet/Makefile parser_handlers/Makefile benchmark/Makefile doc_example/Makefile"
|
||||
-
|
||||
- cat >confcache <<\_ACEOF
|
||||
- # This file is a shell script that caches the results of configure
|
||||
diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx
|
||||
index 407f039..382fb4d 100644
|
||||
--- a/sc/inc/mtvelements.hxx
|
||||
+++ b/sc/inc/mtvelements.hxx
|
||||
@@ -52,9 +52,9 @@ const mdds::mtv::element_t element_type_formula = mdds::mtv::element_type_user_s
|
||||
const mdds::mtv::element_t element_type_cellnote = mdds::mtv::element_type_user_start + 5;
|
||||
|
||||
/// Mapped standard element types (for convenience).
|
||||
-const mdds::mtv::element_t element_type_numeric = mdds::mtv::element_type_numeric;
|
||||
+const mdds::mtv::element_t element_type_numeric = mdds::mtv::element_type_double;
|
||||
const mdds::mtv::element_t element_type_empty = mdds::mtv::element_type_empty;
|
||||
-const mdds::mtv::element_t element_type_uint16 = mdds::mtv::element_type_ushort;
|
||||
+const mdds::mtv::element_t element_type_uint16 = mdds::mtv::element_type_uint16;
|
||||
|
||||
/// Custom element blocks.
|
||||
|
||||
@@ -66,8 +66,8 @@ typedef mdds::mtv::noncopyable_managed_element_block<element_type_edittext, Edit
|
||||
typedef mdds::mtv::noncopyable_managed_element_block<element_type_formula, ScFormulaCell> formula_block;
|
||||
|
||||
/// Mapped standard element blocks (for convenience).
|
||||
-typedef mdds::mtv::numeric_element_block numeric_block;
|
||||
-typedef mdds::mtv::ushort_element_block uint16_block;
|
||||
+typedef mdds::mtv::double_element_block numeric_block;
|
||||
+typedef mdds::mtv::uint16_element_block uint16_block;
|
||||
|
||||
/// This needs to be in the same namespace as CellTextAttr.
|
||||
MDDS_MTV_DEFINE_ELEMENT_CALLBACKS(CellTextAttr, element_type_celltextattr, CellTextAttr(), celltextattr_block)
|
||||
diff --git a/sc/inc/orcusxml.hxx b/sc/inc/orcusxml.hxx
|
||||
index ced991e..5db292c 100644
|
||||
--- a/sc/inc/orcusxml.hxx
|
||||
+++ b/sc/inc/orcusxml.hxx
|
||||
@@ -69,6 +69,7 @@ struct ScOrcusImportXMLParam
|
||||
{
|
||||
ScAddress maPos;
|
||||
std::vector<OString> maFieldPaths;
|
||||
+ std::vector<OString> maRowGroups;
|
||||
};
|
||||
|
||||
typedef std::vector<CellLink> CellLinksType;
|
||||
diff --git a/sc/qa/unit/dataproviders_test.cxx b/sc/qa/unit/dataproviders_test.cxx
|
||||
index 1e9cf97..a9b6b11 100644
|
||||
--- a/sc/qa/unit/dataproviders_test.cxx
|
||||
+++ b/sc/qa/unit/dataproviders_test.cxx
|
||||
@@ -156,6 +156,7 @@ void ScDataProvidersTest::testXMLImport()
|
||||
aRangeLink.maPos = ScAddress(0,0,0);
|
||||
aRangeLink.maFieldPaths.push_back("/bookstore/book/title");
|
||||
aRangeLink.maFieldPaths.push_back("/bookstore/book/author");
|
||||
+ aRangeLink.maRowGroups.push_back("/bookstore/book");
|
||||
aParam.maRangeLinks.push_back(aRangeLink);
|
||||
|
||||
createFileURL("test1.", "xml", aFileURL);
|
||||
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
|
||||
index 04660ab..2c03fe0 100644
|
||||
--- a/sc/source/core/tool/scmatrix.cxx
|
||||
+++ b/sc/source/core/tool/scmatrix.cxx
|
||||
@@ -1935,8 +1935,8 @@ public:
|
||||
{
|
||||
case mdds::mtm::element_numeric:
|
||||
{
|
||||
- numeric_element_block::const_iterator it = numeric_element_block::begin(*node.data);
|
||||
- numeric_element_block::const_iterator itEnd = numeric_element_block::end(*node.data);
|
||||
+ double_element_block::const_iterator it = double_element_block::begin(*node.data);
|
||||
+ double_element_block::const_iterator itEnd = double_element_block::end(*node.data);
|
||||
for (; it != itEnd; ++it, ++miPos)
|
||||
*miPos = *it;
|
||||
}
|
||||
@@ -2012,8 +2012,8 @@ public:
|
||||
{
|
||||
case mdds::mtm::element_numeric:
|
||||
{
|
||||
- numeric_element_block::const_iterator it = numeric_element_block::begin(*node.data);
|
||||
- numeric_element_block::const_iterator itEnd = numeric_element_block::end(*node.data);
|
||||
+ double_element_block::const_iterator it = double_element_block::begin(*node.data);
|
||||
+ double_element_block::const_iterator itEnd = double_element_block::end(*node.data);
|
||||
for (; it != itEnd; ++it, ++miPos)
|
||||
{
|
||||
if (GetDoubleErrorValue(*miPos) == FormulaError::ElementNaN)
|
||||
diff --git a/sc/source/filter/inc/orcusinterface.hxx b/sc/source/filter/inc/orcusinterface.hxx
|
||||
index 9d090b7..7c7c4f2 100644
|
||||
--- a/sc/source/filter/inc/orcusinterface.hxx
|
||||
+++ b/sc/source/filter/inc/orcusinterface.hxx
|
||||
@@ -332,6 +332,8 @@ public:
|
||||
|
||||
virtual orcus::spreadsheet::range_size_t get_sheet_size() const override;
|
||||
|
||||
+ virtual void fill_down_cells(orcus::spreadsheet::row_t row, orcus::spreadsheet::col_t col, orcus::spreadsheet::row_t range_size) override;
|
||||
+
|
||||
SCTAB getIndex() const { return mnTab; }
|
||||
|
||||
const sc::SharedFormulaGroups& getSharedFormulaGroups() const;
|
||||
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
|
||||
index 833fb27..23f17a1 100644
|
||||
--- a/sc/source/filter/orcus/interface.cxx
|
||||
+++ b/sc/source/filter/orcus/interface.cxx
|
||||
@@ -61,8 +61,7 @@ formula::FormulaGrammar::Grammar getCalcGrammarFromOrcus( os::formula_grammar_t
|
||||
case orcus::spreadsheet::formula_grammar_t::ods:
|
||||
eGrammar = formula::FormulaGrammar::GRAM_ODFF;
|
||||
break;
|
||||
- case orcus::spreadsheet::formula_grammar_t::xlsx_2007:
|
||||
- case orcus::spreadsheet::formula_grammar_t::xlsx_2010:
|
||||
+ case orcus::spreadsheet::formula_grammar_t::xlsx:
|
||||
eGrammar = formula::FormulaGrammar::GRAM_OOXML;
|
||||
break;
|
||||
case orcus::spreadsheet::formula_grammar_t::gnumeric:
|
||||
@@ -1188,6 +1187,11 @@ orcus::spreadsheet::range_size_t ScOrcusSheet::get_sheet_size() const
|
||||
return ret;
|
||||
}
|
||||
|
||||
+void ScOrcusSheet::fill_down_cells(os::row_t /*row*/, os::col_t /*col*/, os::row_t /*range_size*/)
|
||||
+{
|
||||
+ // TODO : implement this.
|
||||
+}
|
||||
+
|
||||
const sc::SharedFormulaGroups& ScOrcusSheet::getSharedFormulaGroups() const
|
||||
{
|
||||
return maFormulaGroups;
|
||||
diff --git a/sc/source/filter/orcus/orcusfiltersimpl.cxx b/sc/source/filter/orcus/orcusfiltersimpl.cxx
|
||||
index cdfb70d..8e9b0b1 100644
|
||||
--- a/sc/source/filter/orcus/orcusfiltersimpl.cxx
|
||||
+++ b/sc/source/filter/orcus/orcusfiltersimpl.cxx
|
||||
@@ -139,10 +139,10 @@ bool ScOrcusFiltersImpl::importODS_Styles(ScDocument& rDoc, OUString& aPath) con
|
||||
|
||||
try
|
||||
{
|
||||
- std::string content = orcus::load_file_content(path);
|
||||
+ orcus::file_content content(path);
|
||||
ScOrcusFactory aFactory(rDoc);
|
||||
ScOrcusStyles aStyles(aFactory);
|
||||
- orcus::import_ods::read_styles(content.c_str(), content.size(), &aStyles);
|
||||
+ orcus::import_ods::read_styles(content.data(), content.size(), &aStyles);
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx
|
||||
index 2548f5b..71c44bc 100644
|
||||
--- a/sc/source/filter/orcus/xmlcontext.cxx
|
||||
+++ b/sc/source/filter/orcus/xmlcontext.cxx
|
||||
@@ -269,10 +269,17 @@ void ScOrcusXMLContextImpl::importXML(const ScOrcusImportXMLParam& rParam)
|
||||
|
||||
std::for_each(rLink.maFieldPaths.begin(), rLink.maFieldPaths.end(), InsertFieldPath(filter));
|
||||
|
||||
+ std::for_each(rLink.maRowGroups.begin(), rLink.maRowGroups.end(),
|
||||
+ [&filter] (const OString& rRowGroup)
|
||||
+ {
|
||||
+ filter.set_range_row_group(rRowGroup.getStr());
|
||||
+ }
|
||||
+ );
|
||||
+
|
||||
filter.commit_range();
|
||||
}
|
||||
|
||||
- std::string content = orcus::load_file_content(path);
|
||||
+ orcus::file_content content(path);
|
||||
filter.read_stream(content.data(), content.size());
|
||||
|
||||
aFactory.finalize();
|
||||
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
|
||||
index 95e8006..26b0cbc 100644
|
||||
--- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
|
||||
+++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
|
||||
@@ -533,6 +533,12 @@ void ScXMLSourceDlg::OkPressed()
|
||||
// Go through all its child elements.
|
||||
getFieldLinks(aRangeLink, aParam.maNamespaces, *mxLbTree, *rEntry);
|
||||
|
||||
+ // Add the anchor node as a grouping node, which will be used as a
|
||||
+ // row position increment point.
|
||||
+ OUString aThisEntry = getXPath(*mxLbTree, *rEntry, aParam.maNamespaces);
|
||||
+ aRangeLink.maRowGroups.push_back(
|
||||
+ OUStringToOString(aThisEntry, RTL_TEXTENCODING_UTF8));
|
||||
+
|
||||
aParam.maRangeLinks.push_back(aRangeLink);
|
||||
}
|
||||
}
|
||||
diff --git a/svl/source/misc/gridprinter.cxx b/svl/source/misc/gridprinter.cxx
|
||||
index e129457..4f013d4 100644
|
||||
--- a/svl/source/misc/gridprinter.cxx
|
||||
+++ b/svl/source/misc/gridprinter.cxx
|
||||
@@ -29,7 +29,7 @@ typedef mdds::mtv::default_element_block<element_type_string, OUString> string_b
|
||||
struct matrix_trait
|
||||
{
|
||||
typedef string_block string_element_block;
|
||||
- typedef mdds::mtv::ushort_element_block integer_element_block;
|
||||
+ typedef mdds::mtv::uint16_element_block integer_element_block;
|
||||
|
||||
typedef mdds::mtv::custom_block_func1<string_block> element_block_func;
|
||||
};
|
||||
--
|
||||
cgit v1.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user