FS#63850 - [accounts-qml-module] build fails with Qt 5.13

Attached to Project: Arch Linux
Opened by Andreas Baumann (andreas_baumann) - Friday, 20 September 2019, 07:32 GMT
Last edited by Antonio Rojas (arojas) - Friday, 20 September 2019, 07:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

../../accounts-qml-module-VERSION_0.7-cfadea7ba8ba4011ae20d771696eb74deb87201e/src/account-service-model.cpp:284:61: error: â is deprecated: Use std::sort [-Werror=deprecated-declarations]
284 | qSort(modelItems.begin(), modelItems.end(), sortFunction);
| ^
In file included from /usr/include/qt/QtCore/qlist.h:43,
from /usr/include/qt/QtCore/qvariant.h:45,
from /usr/include/qt/QtCore/qabstractitemmodel.h:43,
from /usr/include/qt/QtCore/QAbstractListModel:1,
from ../../accounts-qml-module-VERSION_0.7-cfadea7ba8ba4011ae20d771696eb74deb87201e/src/account-service-model.h:22,
from ../../accounts-qml-module-VERSION_0.7-cfadea7ba8ba4011ae20d771696eb74deb87201e/src/account-service-model.cpp:19:
/usr/include/qt/QtCore/qalgorithms.h:181:46: note: declared here
181 | QT_DEPRECATED_X("Use std::sort") inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
| ^~~~~

and again a -Werror during packaging:

cc1plus: all warnings being treated as errors

Upstream has a fix for Qt 5.13:

https://gitlab.com/accounts-sso/accounts-qml-module/commit/69e17dec5add40655cd9334ec7ad4eef13fed8a4

Additional info:
* package version(s): 0.7-2

Steps to reproduce:
   log.txt (64.2 KiB)
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 20 September 2019, 07:42 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#63786 

Loading...