From 8580b60cb2e2ccdf4e35e2b05dedef34cbaf463f Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Feb 15 2024 16:56:53 +0000 Subject: Add qtlocation-fix-rapidjson-build.patch --- diff --git a/mingw-qt5-qtlocation.spec b/mingw-qt5-qtlocation.spec index 432e767..9468d37 100644 --- a/mingw-qt5-qtlocation.spec +++ b/mingw-qt5-qtlocation.spec @@ -31,6 +31,8 @@ Source0: http://download.qt.io/%{?pre:development}%{?!pre:official}_relea %endif # Fix int32_t not declared Patch0: qtlocation_cstdint.patch +# Fix rapidjson build +Patch1: qtlocation-fix-rapidjson-build.patch BuildArch: noarch diff --git a/qtlocation-fix-rapidjson-build.patch b/qtlocation-fix-rapidjson-build.patch new file mode 100644 index 0000000..7e1d2e4 --- /dev/null +++ b/qtlocation-fix-rapidjson-build.patch @@ -0,0 +1,13 @@ +diff --git a/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/document.h b/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/document.h +index e3e20df..ad362a6 100644 +--- a/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/document.h ++++ b/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/document.h +@@ -322,7 +322,7 @@ struct GenericStringRef { + operator const Ch *() const { return s; } + + const Ch* const s; //!< plain CharType pointer +- const SizeType length; //!< length of the string (excluding the trailing NULL terminator) ++ SizeType length; //!< length of the string (excluding the trailing NULL terminator) + + private: + //! Disallow construction from non-const array