Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qt6-positioning for openSUSE:Factory 
checked in at 2023-07-26 13:22:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qt6-positioning (Old)
 and      /work/SRC/openSUSE:Factory/.qt6-positioning.new.15225 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qt6-positioning"

Wed Jul 26 13:22:43 2023 rev:15 rq:1100000 version:6.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/qt6-positioning/qt6-positioning.changes  
2023-07-08 22:47:26.043228246 +0200
+++ 
/work/SRC/openSUSE:Factory/.qt6-positioning.new.15225/qt6-positioning.changes   
    2023-07-26 13:23:11.791738667 +0200
@@ -1,0 +2,6 @@
+Thu Jul 20 09:06:57 UTC 2023 - Christophe Marin <[email protected]>
+
+- Update to 6.5.2
+  * https://www.qt.io/blog/qt-6.5.2-released-1
+
+-------------------------------------------------------------------

Old:
----
  qtpositioning-everywhere-src-6.5.1.tar.xz

New:
----
  qtpositioning-everywhere-src-6.5.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qt6-positioning.spec ++++++
--- /var/tmp/diff_new_pack.rnZhzM/_old  2023-07-26 13:23:12.451742403 +0200
+++ /var/tmp/diff_new_pack.rnZhzM/_new  2023-07-26 13:23:12.455742426 +0200
@@ -16,7 +16,7 @@
 #
 
 
-%define real_version 6.5.1
+%define real_version 6.5.2
 %define short_version 6.5
 %define tar_name qtpositioning-everywhere-src
 %define tar_suffix %{nil}
@@ -27,12 +27,12 @@
 %endif
 #
 Name:           qt6-positioning%{?pkg_suffix}
-Version:        6.5.1
+Version:        6.5.2
 Release:        0
 Summary:        Qt 6 Positioning plugins and libraries
 License:        GPL-3.0-or-later
 URL:            https://www.qt.io
-Source:         
https://download.qt.io/official_releases/qt/%{short_version}/%{real_version}%{tar_suffix}/submodules/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
+Source:         
https://www.nic.funet.fi/pub/mirrors/download.qt-project.org/official_releases/qt/%{short_version}/%{real_version}%{tar_suffix}/submodules/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
 Source99:       qt6-positioning-rpmlintrc
 BuildRequires:  pkgconfig
 BuildRequires:  qt6-core-private-devel

++++++ qtpositioning-everywhere-src-6.5.1.tar.xz -> 
qtpositioning-everywhere-src-6.5.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtpositioning-everywhere-src-6.5.1/.cmake.conf 
new/qtpositioning-everywhere-src-6.5.2/.cmake.conf
--- old/qtpositioning-everywhere-src-6.5.1/.cmake.conf  2023-05-16 
11:46:12.000000000 +0200
+++ new/qtpositioning-everywhere-src-6.5.2/.cmake.conf  2023-07-07 
14:29:35.000000000 +0200
@@ -1,4 +1,4 @@
-set(QT_REPO_MODULE_VERSION "6.5.1")
+set(QT_REPO_MODULE_VERSION "6.5.2")
 set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
 
 set(QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_LEAN_HEADERS=1")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtpositioning-everywhere-src-6.5.1/.tag 
new/qtpositioning-everywhere-src-6.5.2/.tag
--- old/qtpositioning-everywhere-src-6.5.1/.tag 2023-05-16 11:46:12.000000000 
+0200
+++ new/qtpositioning-everywhere-src-6.5.2/.tag 2023-07-07 14:29:35.000000000 
+0200
@@ -1 +1 @@
-9e27d2e7a6e26d0afc6f8ecf0df0c4cc5db52c44
+716d2d3c8c6d77796cfc0c37a8c8e47fabcc0bac
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtpositioning-everywhere-src-6.5.1/CMakeLists.txt 
new/qtpositioning-everywhere-src-6.5.2/CMakeLists.txt
--- old/qtpositioning-everywhere-src-6.5.1/CMakeLists.txt       2023-05-16 
11:46:12.000000000 +0200
+++ new/qtpositioning-everywhere-src-6.5.2/CMakeLists.txt       2023-07-07 
14:29:35.000000000 +0200
@@ -16,6 +16,7 @@
 
 find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals 
Core)
 find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Quick Qml 
Gui Widgets Network Test DBus SerialPort QuickTest)
+qt_internal_project_setup()
 
 if(WASM)
     message(NOTICE "Skipping the build as the condition \"NOT WASM\" is not 
met.")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtpositioning-everywhere-src-6.5.1/dependencies.yaml 
new/qtpositioning-everywhere-src-6.5.2/dependencies.yaml
--- old/qtpositioning-everywhere-src-6.5.1/dependencies.yaml    2023-05-16 
11:46:12.000000000 +0200
+++ new/qtpositioning-everywhere-src-6.5.2/dependencies.yaml    2023-07-07 
14:29:35.000000000 +0200
@@ -1,10 +1,10 @@
 dependencies:
   ../qtbase:
-    ref: 55aee8697512af105dfefabc1e2ec41d4df1e45e
+    ref: af457a9f0f7eb1a2a7d11f495da508faab91a442
     required: true
   ../qtdeclarative:
-    ref: 65651dc1d333e2aded18b0d6f0b71c35e5b40c1c
+    ref: f289063ff19588a11dd79213632785cfda2909a0
     required: false
   ../qtserialport:
-    ref: 957a2fc15c59b9064c492ad9362b254274d25992
+    ref: b2321a679ed4d702b0551539e416b4bc90fae6c6
     required: false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm
 
new/qtpositioning-everywhere-src-6.5.2/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm
--- 
old/qtpositioning-everywhere-src-6.5.1/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm
       2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm
       2023-07-07 14:29:35.000000000 +0200
@@ -7,6 +7,7 @@
 #include <QtCore/qglobal.h>
 #include <QtCore/private/qglobal_p.h>
 #include <QtCore/qtimezone.h>
+#include <QtCore/qvariantmap.h>
 
 #include "qgeopositioninfosource_cl_p.h"
 
@@ -82,7 +83,9 @@
 
 QT_BEGIN_NAMESPACE
 
-QGeoPositionInfoSourceCL::QGeoPositionInfoSourceCL(QObject *parent)
+static const auto alwaysPermissionKey = 
QStringLiteral("RequestAlwaysPermission");
+
+QGeoPositionInfoSourceCL::QGeoPositionInfoSourceCL(const QVariantMap 
&parameters, QObject *parent)
     : QGeoPositionInfoSource(parent),
       m_locationManager(0),
       m_updatesWanted(false),
@@ -90,6 +93,7 @@
       m_updateTimeout(0),
       m_positionError(QGeoPositionInfoSource::NoError)
 {
+    m_requestAlwaysPermission = parameters.value(alwaysPermissionKey, 
false).toBool();
 }
 
 QGeoPositionInfoSourceCL::~QGeoPositionInfoSourceCL()
@@ -137,19 +141,30 @@
         m_locationManager.delegate = [[PositionLocationDelegate alloc] 
initWithInfoSource:this];
     }
 
-    // -requestAlwaysAuthorization requires both 
NSLocationAlwaysAndWhenInUseUsageDescription and
-    // NSLocationWhenInUseUsageDescription entries present in Info.plist 
(otherwise,
-    // while probably a noop, the call generates a warning).
-    // -requestWhenInUseAuthorization only requires 
NSLocationWhenInUseUsageDescription
-    // entry in Info.plist
+    // According to QTBUG-109359, Apple now requires both 
NSLocationWhenInUseUsageDescription
+    // and NSLocationAlwaysAndWhenInUseUsageDescription entries to present in 
Info.plist
+    // if the binary has capabilities to request both (symbols for that are 
present).
+    // This means that we cannot use the presence of permission keys to decide
+    // which authorization type to request (as both need to be present).
+    // Use an explicit plugin parameter instead.
 #ifdef Q_OS_IOS
     NSDictionary<NSString *, id> *infoDict = 
NSBundle.mainBundle.infoDictionary;
     const bool hasAlwaysUseUsage = !![infoDict 
objectForKey:@"NSLocationAlwaysAndWhenInUseUsageDescription"];
     const bool hasWhenInUseUsage = !![infoDict 
objectForKey:@"NSLocationWhenInUseUsageDescription"];
-    if (hasAlwaysUseUsage && hasWhenInUseUsage)
-        [m_locationManager requestAlwaysAuthorization];
-    else if (hasWhenInUseUsage)
+    if (hasAlwaysUseUsage && hasWhenInUseUsage) {
+        if (m_requestAlwaysPermission)
+            [m_locationManager requestAlwaysAuthorization];
+        else
+            [m_locationManager requestWhenInUseAuthorization];
+    } else if (hasWhenInUseUsage) {
+        qWarning("Requesting \"When In Use\" location permission in fallback 
mode. "
+                 "Your application is missing the 
NSLocationAlwaysAndWhenInUseUsageDescription "
+                 "entry in the Info.plist file. It will be impossible to 
publish the application "
+                 "into App Store without this entry. Please add both "
+                 "NSLocationWhenInUseUsageDescription and "
+                 "NSLocationAlwaysAndWhenInUseUsageDescription to your 
Info.plist file.");
         [m_locationManager requestWhenInUseAuthorization];
+    }
 #endif // Q_OS_IOS
 
     return (m_locationManager != nullptr);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/plugins/position/corelocation/qgeopositioninfosource_cl_p.h
 
new/qtpositioning-everywhere-src-6.5.2/src/plugins/position/corelocation/qgeopositioninfosource_cl_p.h
--- 
old/qtpositioning-everywhere-src-6.5.1/src/plugins/position/corelocation/qgeopositioninfosource_cl_p.h
      2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/plugins/position/corelocation/qgeopositioninfosource_cl_p.h
      2023-07-07 14:29:35.000000000 +0200
@@ -26,7 +26,7 @@
 {
     Q_OBJECT
 public:
-    QGeoPositionInfoSourceCL(QObject *parent = 0);
+    QGeoPositionInfoSourceCL(const QVariantMap &parameters, QObject *parent = 
0);
     ~QGeoPositionInfoSourceCL();
 
     QGeoPositionInfo lastKnownPosition(bool 
fromSatellitePositioningMethodsOnly = false) const override;
@@ -57,6 +57,7 @@
     Q_DISABLE_COPY(QGeoPositionInfoSourceCL);
     CLLocationManager *m_locationManager;
     bool m_updatesWanted;
+    bool m_requestAlwaysPermission = false;
 
     QGeoPositionInfo m_lastUpdate;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/plugins/position/corelocation/qgeopositioninfosourcefactory_cl.mm
 
new/qtpositioning-everywhere-src-6.5.2/src/plugins/position/corelocation/qgeopositioninfosourcefactory_cl.mm
--- 
old/qtpositioning-everywhere-src-6.5.1/src/plugins/position/corelocation/qgeopositioninfosourcefactory_cl.mm
        2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/plugins/position/corelocation/qgeopositioninfosourcefactory_cl.mm
        2023-07-07 14:29:35.000000000 +0200
@@ -6,8 +6,7 @@
 
 QGeoPositionInfoSource 
*QGeoPositionInfoSourceFactoryCL::positionInfoSource(QObject *parent, const 
QVariantMap &parameters)
 {
-    Q_UNUSED(parameters)
-    return new QGeoPositionInfoSourceCL(parent);
+    return new QGeoPositionInfoSourceCL(parameters, parent);
 }
 
 QGeoSatelliteInfoSource 
*QGeoPositionInfoSourceFactoryCL::satelliteInfoSource(QObject *parent, const 
QVariantMap &parameters)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/doc/qtpositioning.qdocconf
 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/doc/qtpositioning.qdocconf
--- 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/doc/qtpositioning.qdocconf
   2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/doc/qtpositioning.qdocconf
   2023-07-07 14:29:35.000000000 +0200
@@ -1,5 +1,5 @@
 include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtlocation.qdocconf)
+include($QT_INSTALL_DOCS/config/exampleurl-qtpositioning.qdocconf)
 
 project           = QtPositioning
 description    = Qt Positioning Reference Documentation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/doc/src/plugins/corelocation.qdoc
 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/doc/src/plugins/corelocation.qdoc
--- 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/doc/src/plugins/corelocation.qdoc
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/doc/src/plugins/corelocation.qdoc
    2023-07-07 14:29:35.000000000 +0200
@@ -0,0 +1,93 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR 
GFDL-1.3-no-invariants-only
+
+/*!
+\page position-plugin-corelocation.html
+\title Qt Positioning Core Location plugin
+\ingroup QtPositioning-plugins
+
+\brief Provides positioning information on Apple platforms
+
+\section1 Overview
+
+The plugin wraps iOS and macOS positioning subsystems. It is only available
+on Apple platforms that support corelocation. The plugin provides only
+positioning information.
+
+This plugin can be loaded by using the provider name \b corelocation.
+
+\section1 Parameters
+
+The following table lists parameters that \e can be passed to the corelocation
+plugin.
+
+\table
+\header
+    \li Parameter
+    \li Description
+\row
+    \li RequestAlwaysPermission
+    \li Ask permissions for using location not only while using the
+        application, but also in background. The parameter is a \c bool, so
+        it accepts either \c {true} or \c {false}. If the parameter is not
+        specified, it is considered to be \c {false}.
+\endtable
+
+On iOS, the application can ask for two levels of location permissions:
+
+\list
+    \li \b {When In Use} - makes location updates available only when someone
+    uses your app.
+    \li \b {Always} - makes location updates available at any time, and lets
+    the system launch your app quietly to handle some updates.
+\endlist
+
+By default, only the \b {When In Use} permission is requested.
+The \c RequestAlwaysPermission parameter is used to explicitly reqeust for
+\b {Always} permission.
+
+\section1 Position source usage example
+
+The following examples show how to create a \b corelocation PositionSource
+using different permission levels.
+
+\section2 QML
+
+\code
+// default - When In Use permission.
+PositionSource {
+    name: "corelocation"
+}
+
+// RequestAlwaysPermission = false. Same as default.
+PositionSource {
+    name: "corelocation"
+    PluginParameter { name: "RequestAlwaysPermission"; value: false }
+}
+
+// RequestAlwaysPermission = true. Request Always permission.
+PositionSource {
+    name: "corelocation"
+    PluginParameter { name: "RequestAlwaysPermission"; value: true }
+}
+\endcode
+
+\section2 C++
+
+\code
+// default - When In Use permission.
+QGeoPositionInfoSource *defaultSource
+                = QGeoPositionInfoSource::createSource("corelocation", this);
+
+// RequestAlwaysPermission = false. Same as default.
+params["RequestAlwaysPermission"] = false;
+QGeoPositionInfoSource *whenInUseSource
+                = QGeoPositionInfoSource::createSource("corelocation", params, 
this);
+
+// RequestAlwaysPermission = true. Request Always permission.
+params["RequestAlwaysPermission"] = true;
+QGeoPositionInfoSource *alwaysSource
+                = QGeoPositionInfoSource::createSource("corelocation", params, 
this);
+\endcode
+
+*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/doc/src/qtpositioning-plugins.qdoc
 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/doc/src/qtpositioning-plugins.qdoc
--- 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/doc/src/qtpositioning-plugins.qdoc
   2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/doc/src/qtpositioning-plugins.qdoc
   2023-07-07 14:29:35.000000000 +0200
@@ -18,7 +18,9 @@
         \li Wraps Android positioning subsystem. Available only on Android.
     \row
         \li \b corelocation
-        \li Wraps iOS and macOS positioning subsystems. Available only on 
Apple platforms supporting corelocation.
+        \li A \l {Qt Positioning Core Location plugin}{Core Location} backend
+        wraps iOS and macOS positioning subsystems. Available only on Apple
+        platforms supporting corelocation.
     \row
         \li \b geoclue2
         \li A \l {Qt Positioning GeoClue v2 plugin}{GeoClue v2} backend that
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/positioning/qgeoshape.h 
new/qtpositioning-everywhere-src-6.5.2/src/positioning/qgeoshape.h
--- old/qtpositioning-everywhere-src-6.5.1/src/positioning/qgeoshape.h  
2023-05-16 11:46:12.000000000 +0200
+++ new/qtpositioning-everywhere-src-6.5.2/src/positioning/qgeoshape.h  
2023-07-07 14:29:35.000000000 +0200
@@ -24,7 +24,7 @@
 
 public:
     QGeoShape();
-    QGeoShape(const QGeoShape &other);
+    Q_INVOKABLE QGeoShape(const QGeoShape &other);
     ~QGeoShape();
 
     enum ShapeType {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/positioningquick/locationsingleton.cpp
 
new/qtpositioning-everywhere-src-6.5.2/src/positioningquick/locationsingleton.cpp
--- 
old/qtpositioning-everywhere-src-6.5.1/src/positioningquick/locationsingleton.cpp
   2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/positioningquick/locationsingleton.cpp
   2023-07-07 14:29:35.000000000 +0200
@@ -53,7 +53,7 @@
 }
 
 /*!
-    \qmlmethod coordinate ::QtPositioning::coordinate()
+    \qmlmethod coordinate QtPositioning::coordinate()
 
     Constructs an invalid coordinate.
 
@@ -129,7 +129,7 @@
 }
 
 /*!
-    \qmlmethod georectangle 
QtLocation5::QtLocation::rectangle(list<coordinate> coordinates) const
+    \qmlmethod georectangle QtPositioning::rectangle(list<coordinate> 
coordinates) const
 
     Constructs a georectangle from the list of coordinates, the returned list 
is the smallest possible
     containing all the coordinates.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtpositioning-everywhere-src-6.5.1/src/positioningquick/qpositioningquickmodule_p.h
 
new/qtpositioning-everywhere-src-6.5.2/src/positioningquick/qpositioningquickmodule_p.h
--- 
old/qtpositioning-everywhere-src-6.5.1/src/positioningquick/qpositioningquickmodule_p.h
     2023-05-16 11:46:12.000000000 +0200
+++ 
new/qtpositioning-everywhere-src-6.5.2/src/positioningquick/qpositioningquickmodule_p.h
     2023-07-07 14:29:35.000000000 +0200
@@ -99,7 +99,7 @@
     Q_GADGET
     QML_FOREIGN(QGeoShape)
     QML_VALUE_TYPE(geoShape)
-    QML_STRUCTURED_VALUE
+    QML_CONSTRUCTIBLE_VALUE
     QML_ADDED_IN_VERSION(5, 0)
 };
 

Reply via email to