Hello community, here is the log from the commit of package kmbox for openSUSE:Factory checked in at 2017-05-08 18:53:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmbox (Old) and /work/SRC/openSUSE:Factory/.kmbox.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmbox" Mon May 8 18:53:11 2017 rev:20 rq:490443 version:17.04.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kmbox/kmbox.changes 2017-03-15 00:55:14.444697241 +0100 +++ /work/SRC/openSUSE:Factory/.kmbox.new/kmbox.changes 2017-05-08 18:53:12.951192002 +0200 @@ -1,0 +2,35 @@ +Sun Apr 16 10:45:04 CEST 2017 - [email protected] + +- Update to 17.04.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-17.04.0.php +- Changes since 17.03.90: + * None + +------------------------------------------------------------------- +Wed Apr 12 20:25:43 CEST 2017 - [email protected] + +- Update to 17.03.90 + * New bugfix release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-17.04-rc.php +- Changes since 17.03.80: + * None + +------------------------------------------------------------------- +Sat Mar 25 23:10:33 CET 2017 - [email protected] + +- Update to 17.03.80 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-17.03.80.php +- Changes since 16.12.3: + * Fix indent + * autotests/mboxtest.h - -Wsuggest-override. explicit ctor ThreadFillsMBox + * Minor optimization + * Use nullptr + * Remove warning + * Add ECMCoverageOption + +------------------------------------------------------------------- Old: ---- kmbox-16.12.3.tar.xz New: ---- kmbox-17.04.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmbox.spec ++++++ --- /var/tmp/diff_new_pack.7ekFdS/_old 2017-05-08 18:53:13.523111211 +0200 +++ /var/tmp/diff_new_pack.7ekFdS/_new 2017-05-08 18:53:13.527110647 +0200 @@ -18,10 +18,10 @@ %define kf5_version 5.19.0 Name: kmbox -Version: 16.12.3 +Version: 17.04.0 Release: 0 %define kf5_version 5.26.0 -# Latest stable Applications (e.g. 16.08 in KA, but 16.12.3 in KUA) +# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA) %{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} Summary: KDE PIM Libraries: Mailbox functionality License: LGPL-2.1+ ++++++ kmbox-16.12.3.tar.xz -> kmbox-17.04.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmbox-16.12.3/CMakeLists.txt new/kmbox-17.04.0/CMakeLists.txt --- old/kmbox-16.12.3/CMakeLists.txt 2017-02-14 13:33:06.000000000 +0100 +++ new/kmbox-17.04.0/CMakeLists.txt 2017-04-12 07:05:18.000000000 +0200 @@ -1,29 +1,31 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.0) +set(PIM_VERSION "5.5.0") -project(KMbox) +project(KMbox VERSION ${PIM_VERSION}) # ECM setup -set(KF5_VERSION "5.28.0") +set(KF5_VERSION "5.32.0") find_package(ECM ${KF5_VERSION} CONFIG REQUIRED) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) include(GenerateExportHeader) include(ECMGenerateHeaders) include(ECMGeneratePriFile) -include(ECMPackageConfigHelpers) +include(CMakePackageConfigHelpers) include(ECMSetupVersion) include(FeatureSummary) include(KDEInstallDirs) include(KDECMakeSettings) include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) include(ECMQtDeclareLoggingCategory) +include(ECMCoverageOption) + -set(PIM_VERSION "5.4.3") set(KMBOX_LIB_VERSION ${PIM_VERSION}) -set(KMIME_LIB_VERSION "5.4.3") +set(KMIME_LIB_VERSION "5.5.0") -ecm_setup_version(${KMBOX_LIB_VERSION} VARIABLE_PREFIX KMBOX +ecm_setup_version(PROJECT VARIABLE_PREFIX KMBOX VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kmbox_version.h" PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5MboxConfigVersion.cmake" SOVERSION 5 @@ -43,7 +45,7 @@ ########### CMake Config Files ########### set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Mbox") -ecm_configure_package_config_file( +configure_package_config_file( "${CMAKE_CURRENT_SOURCE_DIR}/KF5MboxConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/KF5MboxConfig.cmake" INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmbox-16.12.3/autotests/mboxtest.cpp new/kmbox-17.04.0/autotests/mboxtest.cpp --- old/kmbox-16.12.3/autotests/mboxtest.cpp 2017-02-14 13:33:06.000000000 +0100 +++ new/kmbox-17.04.0/autotests/mboxtest.cpp 2017-04-12 07:05:18.000000000 +0200 @@ -201,7 +201,7 @@ QVERIFY(!header.isEmpty()); KMime::Message *message = mbox.readMessage(msgInfo); - QVERIFY(message != 0); + QVERIFY(message != nullptr); KMime::Message *headers = new KMime::Message(); headers->setHead(KMime::CRLFtoLF(header)); @@ -438,7 +438,7 @@ QVERIFY(!header.isEmpty()); KMime::Message *message = mbox.readMessage(msgInfo); - QVERIFY(message != 0); + QVERIFY(message != nullptr); KMime::Message *headers = new KMime::Message(); headers->setHead(KMime::CRLFtoLF(header)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmbox-16.12.3/autotests/mboxtest.h new/kmbox-17.04.0/autotests/mboxtest.h --- old/kmbox-16.12.3/autotests/mboxtest.h 2017-02-14 13:33:06.000000000 +0100 +++ new/kmbox-17.04.0/autotests/mboxtest.h 2017-04-12 07:05:18.000000000 +0200 @@ -62,10 +62,10 @@ Q_OBJECT public: - ThreadFillsMBox(const QString &fileName); + explicit ThreadFillsMBox(const QString &fileName); protected: - virtual void run(); + virtual void run() Q_DECL_OVERRIDE; private: KMBox::MBox *mbox; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmbox-16.12.3/metainfo.yaml new/kmbox-17.04.0/metainfo.yaml --- old/kmbox-16.12.3/metainfo.yaml 2017-02-14 13:33:06.000000000 +0100 +++ new/kmbox-17.04.0/metainfo.yaml 2017-04-12 07:05:18.000000000 +0200 @@ -10,7 +10,7 @@ libraries: - qmake: Mbox cmake: "KF5::Mbox" -cmakename: KF5Mbox + cmakename: KF5Mbox public_lib: true group: kdepim diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmbox-16.12.3/src/mbox.cpp new/kmbox-17.04.0/src/mbox.cpp --- old/kmbox-16.12.3/src/mbox.cpp 2017-02-14 13:33:06.000000000 +0100 +++ new/kmbox-17.04.0/src/mbox.cpp 2017-04-12 07:05:18.000000000 +0200 @@ -35,7 +35,21 @@ #include <QtCore/QProcess> using namespace KMBox; +#if QT_VERSION < QT_VERSION_CHECK(5,7,0) +namespace QtPrivate +{ +template <typename T> struct QAddConst { + typedef const T Type; +}; +} +// this adds const to non-const objects (like std::as_const) +template <typename T> +Q_DECL_CONSTEXPR typename QtPrivate::QAddConst<T>::Type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } +// prevent rvalue arguments: +template <typename T> +void qAsConst(const T &&) Q_DECL_EQ_DELETE; +#endif /// public methods. MBox::MBox() @@ -130,7 +144,7 @@ MBoxEntry::List result; result.reserve(d->mEntries.size()); - foreach (const MBoxEntry &entry, d->mEntries) { + for (const MBoxEntry &entry : qAsConst(d->mEntries)) { if (!deletedEntries.contains(entry)) { result << entry; } @@ -326,7 +340,7 @@ return false; } - foreach (const MBoxEntry &entry, deletedEntries) { + for (const MBoxEntry &entry : qAsConst(deletedEntries)) { d->mMboxFile.seek(entry.messageOffset()); const QByteArray line = d->mMboxFile.readLine(); @@ -511,7 +525,7 @@ { const QByteArray message = readRawMessage(entry); if (message.isEmpty()) { - return Q_NULLPTR; + return nullptr; } KMime::Message *mail = new KMime::Message(); @@ -576,7 +590,7 @@ QFile::setPermissions(fileName, d->mMboxFile.permissions() | QFile::WriteOwner); } - if (d->mAppendedEntries.size() == 0) { + if (d->mAppendedEntries.isEmpty()) { return true; // Nothing to do } @@ -597,7 +611,7 @@ if ( d->mReadOnly ) return false; - if (d->mAppendedEntries.size() == 0) { + if (d->mAppendedEntries.isEmpty()) { return true; // Nothing to do. } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmbox-16.12.3/src/mbox.h new/kmbox-17.04.0/src/mbox.h --- old/kmbox-16.12.3/src/mbox.h 2017-02-14 13:33:06.000000000 +0100 +++ new/kmbox-17.04.0/src/mbox.h 2017-04-12 07:05:18.000000000 +0200 @@ -138,7 +138,7 @@ * loaded, false otherwise. If the latter, the physical file has * not changed. */ - bool purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *movedEntries = Q_NULLPTR); + bool purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *movedEntries = nullptr); /** * Reads the entire message from the file for the given mbox @p entry. If the
