Closed klemensn closed 2 years ago
Posting as draft since this only creates a different failure:
In file included from /usr/ports/pobj/qdigidoc4-4.2.11pl20220713/DigiDoc4-Client-0b158fcfc2ca8ea04a0dd07a711073217e19e68d/client/Application.cpp:22:
In file included from /usr/ports/pobj/qdigidoc4-4.2.11pl20220713/DigiDoc4-Client-0b158fcfc2ca8ea04a0dd07a711073217e19e68d/client/Application.h:22:
In file included from /usr/ports/pobj/qdigidoc4-4.2.11pl20220713/DigiDoc4-Client-0b158fcfc2ca8ea04a0dd07a711073217e19e68d/common/Common.h:28:
In file included from /usr/ports/pobj/qdigidoc4-4.2.11pl20220713/DigiDoc4-Client-0b158fcfc2ca8ea04a0dd07a711073217e19e68d/common/qtsingleapplication/src/QtSingleApplication:1:
In file included from /usr/ports/pobj/qdigidoc4-4.2.11pl20220713/DigiDoc4-Client-0b158fcfc2ca8ea04a0dd07a711073217e19e68d/common/qtsingleapplication/src/qtsingleapplication.h:44:
In file included from /usr/local/include/X11/qt6/QtWidgets/QApplication:1:
In file included from /usr/local/include/X11/qt6/QtWidgets/qapplication.h:44:
In file included from /usr/local/include/X11/qt6/QtCore/qcoreapplication.h:47:
In file included from /usr/local/include/X11/qt6/QtCore/qeventloop.h:43:
In file included from /usr/local/include/X11/qt6/QtCore/qobject.h:49:
/usr/local/include/X11/qt6/QtCore/qlist.h:939:20: error: invalid operands to binary expression ('const QString' and 'const QRegExp')
if (*n == u)
~~ ^ ~
See #1097.
Cherry-picking #1082's changes to to client/Application.cpp
and client/Diagnostics_unix.cpp
fixes these compilation errors.
qdigidoc4
then runs fine on OpenBSD using Qt6.
No idea why this builds fine against Qt5, but Qt6 fails as per above.
Qt6 provides this header under Qt5Core5Compact.
Signed-off-by: Klemens Nanni klemens@posteo.de