Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61033 - [nextcloud-client] Fails to build under clean chroot

Attached to Project: Community Packages
Opened by Aleksandar Trifunovic (akstrfn) - Tuesday, 11 December 2018, 14:58 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Friday, 14 December 2018, 06:54 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Chih-Hsuan Yen (yan12125)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

nextcloud-client fails to build due to missing #include directive.

Additional info:
* nextcloud-client 2.5.1-1

Relevant build log:

/build/nextcloud-client/src/desktop-2.5.1/src/gui/wizard/webview.cpp: In member function ‘virtual bool OCC::WebEnginePage::certificateError(const QWebEngineCertificateError&)’:
/build/nextcloud-client/src/desktop-2.5.1/src/gui/wizard/webview.cpp:164:9: error: invalid use of incomplete type ‘const class QWebEngineCertificateError’
if (certificateError.error() == QWebEngineCertificateError::CertificateAuthorityInvalid) {
^~~~~~~~~~~~~~~~
In file included from /usr/include/qt/QtWebEngineWidgets/QWebEnginePage:1,
from /build/nextcloud-client/src/desktop-2.5.1/src/gui/wizard/webview.cpp:3:
/usr/include/qt/QtWebEngineWidgets/qwebenginepage.h:62:7: note: forward declaration of ‘class QWebEngineCertificateError’
class QWebEngineCertificateError;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/build/nextcloud-client/src/desktop-2.5.1/src/gui/wizard/webview.cpp:164:65: error: incomplete type ‘QWebEngineCertificateError’ used in nested name specifier
if (certificateError.error() == QWebEngineCertificateError::CertificateAuthorityInvalid) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/nextcloud-client/src/desktop-2.5.1/src/gui/wizard/webview.cpp:165:16: error: invalid use of incomplete type ‘const class QWebEngineCertificateError’
return certificateError.url().host() == _rootUrl.host();
^~~~~~~~~~~~~~~~
In file included from /usr/include/qt/QtWebEngineWidgets/QWebEnginePage:1,
from /build/nextcloud-client/src/desktop-2.5.1/src/gui/wizard/webview.cpp:3:
/usr/include/qt/QtWebEngineWidgets/qwebenginepage.h:62:7: note: forward declaration of ‘class QWebEngineCertificateError’
class QWebEngineCertificateError;
^~~~~~~~~~~~~~~~~~~~~~~~~~


Steps to reproduce:
Build package in clean chroot.

Solution:
Add #include <QWebEngineCertificateError> to src/gui/wizard/webview.cpp
This task depends upon

Closed by  Chih-Hsuan Yen (yan12125)
Friday, 14 December 2018, 06:54 GMT
Reason for closing:  Fixed
Comment by Chih-Hsuan Yen (yan12125) - Tuesday, 11 December 2018, 16:27 GMT
Thanks for finding this and the solution. I've submitted your patch to https://github.com/nextcloud/desktop/pull/937.
Comment by Aleksandar Trifunovic (akstrfn) - Tuesday, 11 December 2018, 18:22 GMT
Thanks for submitting the patch upstream and maintaining the package. Cheers!
Comment by Chih-Hsuan Yen (yan12125) - Friday, 14 December 2018, 06:53 GMT
Upstream commited a slightly different fix, and I've added the fix to trunk.

Loading...