Hello community, here is the log from the commit of package kauth for openSUSE:Factory checked in at 2020-01-14 20:59:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kauth (Old) and /work/SRC/openSUSE:Factory/.kauth.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kauth" Tue Jan 14 20:59:35 2020 rev:79 rq:763438 version:5.66.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kauth/kauth.changes 2019-12-18 14:41:56.369763555 +0100 +++ /work/SRC/openSUSE:Factory/.kauth.new.6675/kauth.changes 2020-01-14 21:03:08.846648002 +0100 @@ -1,0 +2,12 @@ +Sun Jan 5 09:01:59 UTC 2020 - Christophe Giboudeaux <[email protected]> + +- Update to 5.66.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/kde-frameworks-5.66.0.php +- Changes since 5.65.0: + * Port QRegExp to QRegularExpression + * Port to QRandomGenerator + * Update the obsolete projects.kde.org URL + +------------------------------------------------------------------- Old: ---- kauth-5.65.0.tar.xz kauth-5.65.0.tar.xz.sig New: ---- kauth-5.66.0.tar.xz kauth-5.66.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kauth.spec ++++++ --- /var/tmp/diff_new_pack.YRN6Yc/_old 2020-01-14 21:03:09.862648472 +0100 +++ /var/tmp/diff_new_pack.YRN6Yc/_new 2020-01-14 21:03:09.862648472 +0100 @@ -1,7 +1,7 @@ # # spec file for package kauth # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,14 @@ %define lname libKF5Auth5 -%define _tar_path 5.65 +%define _tar_path 5.66 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} %bcond_without lang Name: kauth -Version: 5.65.0 +Version: 5.66.0 Release: 0 Summary: Framework which lets applications perform actions as a privileged user License: LGPL-2.1-or-later ++++++ kauth-5.65.0.tar.xz -> kauth-5.66.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kauth-5.65.0/CMakeLists.txt new/kauth-5.66.0/CMakeLists.txt --- old/kauth-5.65.0/CMakeLists.txt 2019-12-07 22:39:39.000000000 +0100 +++ new/kauth-5.66.0/CMakeLists.txt 2020-01-04 11:03:49.000000000 +0100 @@ -1,17 +1,17 @@ cmake_minimum_required(VERSION 3.5) -set(KF5_VERSION "5.65.0") # handled by release scripts -set(KF5_DEP_VERSION "5.65.0") # handled by release scripts +set(KF5_VERSION "5.66.0") # handled by release scripts +set(KF5_DEP_VERSION "5.66.0") # handled by release scripts project(KAuth VERSION ${KF5_VERSION}) include(FeatureSummary) -find_package(ECM 5.65.0 NO_MODULE) -set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") +find_package(ECM 5.66.0 NO_MODULE) +set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) -set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) -set(REQUIRED_QT_VERSION 5.11.0) +set(REQUIRED_QT_VERSION 5.12.0) find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus) option(KAUTH_BUILD_CODEGENERATOR_ONLY "Only build the kauth-policy-gen code generator." OFF) if(NOT KAUTH_BUILD_CODEGENERATOR_ONLY) @@ -54,7 +54,7 @@ ecm_install_po_files_as_qm(po) endif() add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) -add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x053f00) +add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054100) add_definitions(-DQT_NO_FOREACH) add_subdirectory(src) if(TARGET Qt5::Widgets) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kauth-5.65.0/autotests/HelperTest.cpp new/kauth-5.66.0/autotests/HelperTest.cpp --- old/kauth-5.65.0/autotests/HelperTest.cpp 2019-12-07 22:39:39.000000000 +0100 +++ new/kauth-5.66.0/autotests/HelperTest.cpp 2020-01-04 11:03:49.000000000 +0100 @@ -17,7 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . */ -#include <QtTest> +#include <QTest> +#include <QSignalSpy> +#include <QTimer> +#include <QThread> +#include <QRandomGenerator> #include <kauth.h> #include <kauthactionreply.h> #include <kauthexecutejob.h> @@ -208,8 +212,9 @@ QVariantMap args; // Fill with random data (and test heavy structures while we're at it) + auto *generator = QRandomGenerator::global(); for (int i = 0; i < 150; ++i) { - args.insert(QUuid::createUuid().toString(), qrand()); + args.insert(QUuid::createUuid().toString(), generator->generate()); } action.setArguments(args); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kauth-5.65.0/autotests/SetupActionTest.cpp new/kauth-5.66.0/autotests/SetupActionTest.cpp --- old/kauth-5.65.0/autotests/SetupActionTest.cpp 2019-12-07 22:39:39.000000000 +0100 +++ new/kauth-5.66.0/autotests/SetupActionTest.cpp 2020-01-04 11:03:49.000000000 +0100 @@ -17,7 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . */ -#include <QtTest> +#include <QTest> #include <kauth.h> #include <kauthactionreply.h> #include <kauthexecutejob.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kauth-5.65.0/src/kauthaction.cpp new/kauth-5.66.0/src/kauthaction.cpp --- old/kauth-5.65.0/src/kauthaction.cpp 2019-12-07 22:39:39.000000000 +0100 +++ new/kauth-5.66.0/src/kauthaction.cpp 2020-01-04 11:03:49.000000000 +0100 @@ -20,7 +20,7 @@ #include "kauthaction.h" #include <QtGlobal> -#include <QRegExp> +#include <QRegularExpression> class QWidget; @@ -123,8 +123,8 @@ d->valid = BackendsManager::authBackend()->actionExists(name); } else { // Otherwise, check through a regexp - QRegExp exp(QLatin1String("[0-z]+(\\.[0-z]+)*")); - d->valid = exp.exactMatch(name); + const QRegularExpression re(QRegularExpression::anchoredPattern(QStringLiteral("[0-z]+(\\.[0-z]+)*"))); + d->valid = re.match(name).hasMatch(); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kauth-5.65.0/src/policy-gen/policy-gen.cpp new/kauth-5.66.0/src/policy-gen/policy-gen.cpp --- old/kauth-5.65.0/src/policy-gen/policy-gen.cpp 2019-12-07 22:39:39.000000000 +0100 +++ new/kauth-5.66.0/src/policy-gen/policy-gen.cpp 2020-01-04 11:03:49.000000000 +0100 @@ -23,7 +23,7 @@ #include <QCoreApplication> #include <QSettings> -#include <QRegExp> +#include <QRegularExpression> #include <QStringList> #include <QDebug> @@ -71,13 +71,15 @@ QList<Action> parse(QSettings &ini) { QList<Action> actions; - QRegExp actionExp(QLatin1String("[0-9a-z]+(\\.[0-9a-z]+)*")); - QRegExp descriptionExp(QLatin1String("description(?:\\[(\\w+)\\])?")); - QRegExp nameExp(QLatin1String("name(?:\\[(\\w+)\\])?")); - QRegExp policyExp(QLatin1String("yes|no|auth_self|auth_admin")); + const QRegularExpression actionExp(QRegularExpression::anchoredPattern(QStringLiteral("[0-9a-z]+(\\.[0-9a-z]+)*"))); - descriptionExp.setCaseSensitivity(Qt::CaseInsensitive); - nameExp.setCaseSensitivity(Qt::CaseInsensitive); + const QRegularExpression descriptionExp(QRegularExpression::anchoredPattern(QStringLiteral("description(?:\\[(\\w+)\\])?")) + , QRegularExpression::CaseInsensitiveOption); + + const QRegularExpression nameExp(QRegularExpression::anchoredPattern(QStringLiteral("name(?:\\[(\\w+)\\])?")) + , QRegularExpression::CaseInsensitiveOption); + + const QRegularExpression policyExp(QRegularExpression::anchoredPattern(QStringLiteral("(?:yes|no|auth_self|auth_admin)"))); const auto listChilds = ini.childGroups(); for (const QString &name : listChilds) { @@ -87,7 +89,7 @@ continue; } - if (!actionExp.exactMatch(name)) { + if (!actionExp.match(name).hasMatch()) { qCritical("Wrong action syntax: %s\n", name.toLatin1().data()); exit(1); } @@ -97,8 +99,9 @@ const auto listChildKeys = ini.childKeys(); for (const QString &key : listChildKeys) { - if (descriptionExp.exactMatch(key)) { - QString lang = descriptionExp.capturedTexts().at(1); + QRegularExpressionMatch match; + if ((match = descriptionExp.match(key)).hasMatch()) { + QString lang = match.captured(); if (lang.isEmpty()) { lang = QString::fromLatin1("en"); @@ -106,8 +109,8 @@ action.descriptions.insert(lang, ini.value(key).toString()); - } else if (nameExp.exactMatch(key)) { - QString lang = nameExp.capturedTexts().at(1); + } else if ((match = nameExp.match(key)).hasMatch()) { + QString lang = match.captured(); if (lang.isEmpty()) { lang = QString::fromLatin1("en"); @@ -117,7 +120,7 @@ } else if (key.toLower() == QLatin1String("policy")) { QString policy = ini.value(key).toString(); - if (!policyExp.exactMatch(policy)) { + if (!policyExp.match(policy).hasMatch()) { qCritical("Wrong policy: %s", policy.toLatin1().data()); exit(1); } @@ -125,7 +128,7 @@ } else if (key.toLower() == QLatin1String("policyinactive")) { QString policyInactive = ini.value(key).toString(); - if (!policyExp.exactMatch(policyInactive)) { + if (!policyExp.match(policyInactive).hasMatch()) { qCritical("Wrong policy: %s", policyInactive.toLatin1().data()); exit(1); }
