Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
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
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
|
DetailsDescription:
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
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.