download.lst                                   |    4 +-
 external/liborcus/UnpackedTarball_liborcus.mk  |    2 -
 external/liborcus/gnumeric-set-grammar.patch.1 |   17 --------
 external/liborcus/msvc-int-narrowing.patch.1   |   50 -------------------------
 4 files changed, 2 insertions(+), 71 deletions(-)

New commits:
commit b5d194d1d37131f921853b78d659c63178de2bc6
Author:     Kohei Yoshida <ko...@libreoffice.org>
AuthorDate: Tue Oct 24 18:31:52 2023 -0400
Commit:     Kohei Yoshida <ko...@libreoffice.org>
CommitDate: Wed Oct 25 01:33:12 2023 +0200

    Upgrade liborcus to 0.19.1
    
    Change-Id: I2190419e88323bbf000602a7762e850a33b5dfdf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158409
    Tested-by: Jenkins
    Reviewed-by: Kohei Yoshida <ko...@libreoffice.org>

diff --git a/download.lst b/download.lst
index 07b4934cf760..5aeeb74a6cdc 100644
--- a/download.lst
+++ b/download.lst
@@ -498,8 +498,8 @@ OPENSSL_TARBALL := openssl-3.0.11.tar.gz
 # three static lines
 # so that git cherry-pick
 # will not run into conflicts
-ORCUS_SHA256SUM := 
1b68f54bb08face4c3dc83c912d921373c44aed817b37d879b7a4e47f2f15e09
-ORCUS_TARBALL := liborcus-0.19.0.tar.xz
+ORCUS_SHA256SUM := 
6c9a8c03e8187f2749a84f2786d86a88ae45c99ed3a2d5fea36ba556b40c342d
+ORCUS_TARBALL := liborcus-0.19.1.tar.xz
 # three static lines
 # so that git cherry-pick
 # will not run into conflicts
diff --git a/external/liborcus/UnpackedTarball_liborcus.mk 
b/external/liborcus/UnpackedTarball_liborcus.mk
index 292435dfd00d..5968c7bb1845 100644
--- a/external/liborcus/UnpackedTarball_liborcus.mk
+++ b/external/liborcus/UnpackedTarball_liborcus.mk
@@ -20,8 +20,6 @@ $(eval $(call gb_UnpackedTarball_add_patches,liborcus,\
        external/liborcus/gcc9.patch.0 \
        external/liborcus/libtool.patch.0 \
        external/liborcus/liborcus_newline.patch.1 \
-       external/liborcus/msvc-int-narrowing.patch.1 \
-       external/liborcus/gnumeric-set-grammar.patch.1 \
 ))
 
 ifeq ($(OS),WNT)
diff --git a/external/liborcus/gnumeric-set-grammar.patch.1 
b/external/liborcus/gnumeric-set-grammar.patch.1
deleted file mode 100644
index 42bc46177737..000000000000
--- a/external/liborcus/gnumeric-set-grammar.patch.1
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/src/liborcus/orcus_gnumeric.cpp b/src/liborcus/orcus_gnumeric.cpp
-index 76c13682..849759ba 100644
---- a/src/liborcus/orcus_gnumeric.cpp
-+++ b/src/liborcus/orcus_gnumeric.cpp
-@@ -144,6 +144,12 @@ void orcus_gnumeric::read_stream(std::string_view stream)
-     if (!decompress_gzip(stream.data(), stream.size(), file_content))
-         return;
- 
-+    if (auto* gs = mp_impl->mp_factory->get_global_settings(); gs)
-+    {
-+        gs->set_origin_date(1899, 12, 30);
-+        
gs->set_default_formula_grammar(spreadsheet::formula_grammar_t::gnumeric);
-+    }
-+
-     mp_impl->read_content_xml(file_content, get_config());
-     mp_impl->mp_factory->finalize();
- }
diff --git a/external/liborcus/msvc-int-narrowing.patch.1 
b/external/liborcus/msvc-int-narrowing.patch.1
deleted file mode 100644
index 1075cebfdef3..000000000000
--- a/external/liborcus/msvc-int-narrowing.patch.1
+++ /dev/null
@@ -1,50 +0,0 @@
-Fix
-
-  error C2398: Element '2': conversion from 'int' to 'const 
std::basic_string_view<char,std::char_traits<char>>::size_type'
-  requires a narrowing conversion
-
-diff --git a/src/liborcus/gnumeric_value_format_parser.cpp 
b/src/liborcus/gnumeric_value_format_parser.cpp
-index 822c1ba1..014068e9 100644
---- a/src/liborcus/gnumeric_value_format_parser.cpp
-+++ b/src/liborcus/gnumeric_value_format_parser.cpp
-@@ -12,6 +12,10 @@
- #include <cassert>
- #include <sstream>
-
-+#include <boost/numeric/conversion/cast.hpp>
-+
-+using boost::numeric_cast;
-+
- namespace orcus {
-
- std::size_t gnumeric_value_format_parser::get_pos() const
-@@ -41,7 +45,8 @@ void gnumeric_value_format_parser::segment()
-                 if (pos != 2)
-                     throw parse_error("value format segment is not formatted 
properly", get_pos());
-
--                std::string_view s{p0, std::distance(p0, m_cur)};
-+                auto n = std::distance(p0, m_cur);
-+                std::string_view s{p0, numeric_cast<std::size_t>(n)};
-                 if (s.empty())
-                     throw parse_error("segment value is empty", get_pos());
-
-@@ -51,7 +56,8 @@ void gnumeric_value_format_parser::segment()
-             }
-             case '=':
-             {
--                std::string_view s{p0, std::distance(p0, m_cur)};
-+                auto n = std::distance(p0, m_cur);
-+                std::string_view s{p0, numeric_cast<std::size_t>(n)};
-                 seg.type = to_gnumeric_value_format_type(s);
-                 if (seg.type == gnumeric_value_format_type::unknown)
-                 {
-@@ -65,7 +71,8 @@ void gnumeric_value_format_parser::segment()
-             }
-             case ':':
-             {
--                std::string_view s{p0, std::distance(p0, m_cur)};
-+                auto n = std::distance(p0, m_cur);
-+                std::string_view s{p0, numeric_cast<std::size_t>(n)};
-
-                 switch (pos)
-                 {

Reply via email to