pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/qt5-qtlocation qt5-qtlocation: workaround GCC < 5....
details: https://anonhg.NetBSD.org/pkgsrc/rev/4ec2c561babe
branches: trunk
changeset: 382917:4ec2c561babe
user: maya <maya%pkgsrc.org@localhost>
date: Tue Jul 17 20:22:54 2018 +0000
description:
qt5-qtlocation: workaround GCC < 5.x bug and be explicit on how to cast this.
from thiago on qt irc.
diffstat:
x11/qt5-qtlocation/Makefile | 3 +-
x11/qt5-qtlocation/distinfo | 3 +-
x11/qt5-qtlocation/patches/patch-src_location_declarativemaps_qdeclarativegeomap.cpp | 31 ++++++++++
3 files changed, 35 insertions(+), 2 deletions(-)
diffs (61 lines):
diff -r 4bebc820c1d6 -r 4ec2c561babe x11/qt5-qtlocation/Makefile
--- a/x11/qt5-qtlocation/Makefile Tue Jul 17 20:07:09 2018 +0000
+++ b/x11/qt5-qtlocation/Makefile Tue Jul 17 20:22:54 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2018/06/19 07:21:24 adam Exp $
+# $NetBSD: Makefile,v 1.27 2018/07/17 20:22:54 maya Exp $
DISTNAME= qtlocation-everywhere-src-${QTVERSION}
PKGNAME= qt5-qtlocation-${QTVERSION}
+PKGREVISION= 1
COMMENT= Qt5 module for qtlocation
BUILD_TARGET= sub-src
diff -r 4bebc820c1d6 -r 4ec2c561babe x11/qt5-qtlocation/distinfo
--- a/x11/qt5-qtlocation/distinfo Tue Jul 17 20:07:09 2018 +0000
+++ b/x11/qt5-qtlocation/distinfo Tue Jul 17 20:22:54 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.7 2018/06/22 06:29:20 adam Exp $
+$NetBSD: distinfo,v 1.8 2018/07/17 20:22:54 maya Exp $
SHA1 (qtlocation-everywhere-src-5.11.1.tar.xz) = 77b06f3baf6f5d582fe5455d7657e181ad2f55b1
RMD160 (qtlocation-everywhere-src-5.11.1.tar.xz) = aef55997be298042c248d45b824c25f69771f303
SHA512 (qtlocation-everywhere-src-5.11.1.tar.xz) = 8b89aae5bb7caa0999c20c86da1a356e5ba21e1e12ac892a695d180f21527846aa45f926828934b83147b851145477028ff1212802c1c21f8f6bb4e616b8b1fd
Size (qtlocation-everywhere-src-5.11.1.tar.xz) = 5593144 bytes
SHA1 (patch-src_location_configure.json) = 5000b63fd76a8bade6a36c777f9b5b7b1b471ab7
+SHA1 (patch-src_location_declarativemaps_qdeclarativegeomap.cpp) = c89cfdf06c2f3354ff717e390511e4059e3b5601
diff -r 4bebc820c1d6 -r 4ec2c561babe x11/qt5-qtlocation/patches/patch-src_location_declarativemaps_qdeclarativegeomap.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-qtlocation/patches/patch-src_location_declarativemaps_qdeclarativegeomap.cpp Tue Jul 17 20:22:54 2018 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_location_declarativemaps_qdeclarativegeomap.cpp,v 1.1 2018/07/17 20:22:54 maya Exp $
+
+Build fix with GCC 4.8.
+
+--- src/location/declarativemaps/qdeclarativegeomap.cpp.orig 2018-06-12 18:44:12.000000000 +0000
++++ src/location/declarativemaps/qdeclarativegeomap.cpp
+@@ -694,11 +694,11 @@ void QDeclarativeGeoMap::mappingManagerI
+ QImage copyrightImage;
+ if (!m_initialized && width() > 0 && height() > 0) {
+ QMetaObject::Connection copyrightStringCatcherConnection =
+- connect(m_map,
++ connect(m_map.data(),
+ QOverload<const QString &>::of(&QGeoMap::copyrightsChanged),
+ [©rightString](const QString ©){ copyrightString = copy; });
+ QMetaObject::Connection copyrightImageCatcherConnection =
+- connect(m_map,
++ connect(m_map.data(),
+ QOverload<const QImage &>::of(&QGeoMap::copyrightsChanged),
+ [©rightImage](const QImage ©){ copyrightImage = copy; });
+ m_map->setViewportSize(QSize(width(), height()));
+@@ -719,8 +719,8 @@ void QDeclarativeGeoMap::mappingManagerI
+ emit m_map->copyrightsChanged(copyrightImage);
+
+
+- connect(m_map, &QGeoMap::sgNodeChanged, this, &QQuickItem::update);
+- connect(m_map, &QGeoMap::cameraCapabilitiesChanged, this, &QDeclarativeGeoMap::onCameraCapabilitiesChanged);
++ connect(m_map.data(), &QGeoMap::sgNodeChanged, this, &QQuickItem::update);
++ connect(m_map.data(), &QGeoMap::cameraCapabilitiesChanged, this, &QDeclarativeGeoMap::onCameraCapabilitiesChanged);
+
+ // This prefetches a buffer around the map
+ m_map->prefetchData();
Home |
Main Index |
Thread Index |
Old Index