Hello community,
here is the log from the commit of package libqt5-qtlocation for
openSUSE:Factory checked in at 2020-04-04 12:20:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libqt5-qtlocation (Old)
and /work/SRC/openSUSE:Factory/.libqt5-qtlocation.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libqt5-qtlocation"
Sat Apr 4 12:20:14 2020 rev:41 rq:790191 version:5.14.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/libqt5-qtlocation/libqt5-qtlocation.changes
2020-01-30 09:39:40.177434518 +0100
+++
/work/SRC/openSUSE:Factory/.libqt5-qtlocation.new.3248/libqt5-qtlocation.changes
2020-04-04 12:20:18.175669425 +0200
@@ -1,0 +2,9 @@
+Mon Mar 30 15:42:23 UTC 2020 - Christophe Giboudeaux <[email protected]>
+
+- Add patch to fix the build with GCC10 (boo#1158510):
+ * 0001-Fix-build-with-GCC10.patch
+- Use -ffat-lto-objects (boo#1158510)
+- Drop obsolete conditions
+- Reorder the spec file.
+
+-------------------------------------------------------------------
New:
----
0001-Fix-build-with-GCC10.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libqt5-qtlocation.spec ++++++
--- /var/tmp/diff_new_pack.XdwgYN/_old 2020-04-04 12:20:19.043670171 +0200
+++ /var/tmp/diff_new_pack.XdwgYN/_new 2020-04-04 12:20:19.047670174 +0200
@@ -31,11 +31,9 @@
URL: https://www.qt.io
Source:
https://download.qt.io/official_releases/qt/5.14/%{real_version}/submodules/%{tar_version}.tar.xz
Source1: baselibs.conf
+# PATCH-FIX-UPSTREAM
+Patch0: 0001-Fix-build-with-GCC10.patch
BuildRequires: fdupes
-%if 0%{?suse_version} < 1330
-# It does not build with the default compiler (GCC 4.8) on Leap 42.x
-BuildRequires: gcc7-c++
-%endif
BuildRequires: libicu-devel
BuildRequires: libqt5-qtbase-private-headers-devel >= %{version}
BuildRequires: libqt5-qtdeclarative-private-headers-devel >= %{version}
@@ -54,9 +52,6 @@
The Qt Location API facilitates creating mapping solutions using
the data available from some contemporary location services.
-%prep
-%setup -q -n qtlocation-everywhere-src-%{real_version}
-
%package -n %{libname}
Summary: Qt 5 Positioning Library
Group: Development/Libraries/X11
@@ -128,23 +123,20 @@
%description examples
Examples for libqt5-qtlocation module.
-%post -n %{libname} -p /sbin/ldconfig
-%postun -n %{libname} -p /sbin/ldconfig
-%post -n libQt5Location5 -p /sbin/ldconfig
-%postun -n libQt5Location5 -p /sbin/ldconfig
-%post -n libQt5PositioningQuick5 -p /sbin/ldconfig
-%postun -n libQt5PositioningQuick5 -p /sbin/ldconfig
+%prep
+%setup -q -n qtlocation-everywhere-src-%{real_version}
+%patch0 -p1
%build
%if %{qt5_snapshot}
#force the configure script to generate the forwarding headers (it checks
whether .git directory exists)
mkdir .git
%endif
-%if 0%{?suse_version} < 1330
-%qmake5 QMAKE_CC=gcc-7 QMAKE_CXX=g++-7 CONFIG+=c++14
-%else
+
+# boo#1158510
+%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
+
%qmake5
-%endif
# do not eat all memory (logic from chromium specfile)
jobs="%{?jobs:%{jobs}}"
@@ -171,6 +163,13 @@
%fdupes %{buildroot}%{_libqt5_examplesdir}/
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
+%post -n libQt5Location5 -p /sbin/ldconfig
+%postun -n libQt5Location5 -p /sbin/ldconfig
+%post -n libQt5PositioningQuick5 -p /sbin/ldconfig
+%postun -n libQt5PositioningQuick5 -p /sbin/ldconfig
+
%files -n %{libname}
%defattr(-,root,root,755)
%license LICENSE.*
++++++ 0001-Fix-build-with-GCC10.patch ++++++
>From 44a103d4876f1bf64cb81beaba853bc30c2015e8 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <[email protected]>
Date: Thu, 5 Dec 2019 16:29:34 +0100
Subject: [PATCH] Fix build with GCC10
Fixes a linker error and these build issues:
'runtime_error' is not a member of 'std' and
convert.cpp:6:56: error: 'int32_t' was not declared in this scope
Fixes: QTBUG-82850
---
src/3rdparty/mapbox-gl-native/include/mbgl/util/convert.hpp | 1 +
src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp | 1 +
.../src/mbgl/renderer/sources/render_vector_source.cpp | 1 +
3 files changed, 3 insertions(+)
diff --git a/src/3rdparty/mapbox-gl-native/include/mbgl/util/convert.hpp
b/src/3rdparty/mapbox-gl-native/include/mbgl/util/convert.hpp
index 02ec7fe..6c1284e 100644
--- a/src/3rdparty/mapbox-gl-native/include/mbgl/util/convert.hpp
+++ b/src/3rdparty/mapbox-gl-native/include/mbgl/util/convert.hpp
@@ -1,6 +1,7 @@
#include <mbgl/util/util.hpp>
#include <array>
+#include <stdint.h>
#include <type_traits>
#include <utility>
diff --git a/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
b/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
index d475c38..6947f0b 100644
--- a/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
+++ b/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
@@ -4,6 +4,7 @@
#include <unicode/ubidi.h>
#include <unicode/ushape.h>
+#include <stdexcept>
#include <memory>
namespace mbgl {
diff --git
a/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/sources/render_vector_source.cpp
b/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/sources/render_vector_source.cpp
index 4de4f01..afb639d 100644
---
a/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/sources/render_vector_source.cpp
+++
b/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/sources/render_vector_source.cpp
@@ -2,6 +2,7 @@
#include <mbgl/renderer/render_tile.hpp>
#include <mbgl/renderer/paint_parameters.hpp>
#include <mbgl/tile/vector_tile.hpp>
+#include <mbgl/tile/tile_loader_impl.hpp>
#include <mbgl/algorithm/generate_clip_ids.hpp>
#include <mbgl/algorithm/generate_clip_ids_impl.hpp>
--
2.26.0