Package: qtbase5-dev Version: 5.11.2+dfsg-4 File: /usr/lib/<triplet>/cmake/Qt5Core/Qt5CoreConfigExtras.cmake User: helm...@debian.org Usertags: rebootstrap Control: affects -1 + src:libqtxdg
Qt5CoreConfigExtras.cmake defines the IMPORTED_LOCATION of Qt5::qmake as "${_qt5Core_install_prefix}/lib/qt5/bin/qmake". That's the build architecture qmake. When this one is queried for paths, it yields build architecture paths. This yields broken builds of libqtxdg: it uses Qt5Core_QMAKE_EXECUTABLE and queries it for installation paths. Please set the IMPORTED_LOCATION of Qt5::qmake to the cross wrapper. In qtbase-opensource-src, that is src/corelib/Qt5CoreConfigExtras.cmake.in. I don't have a good idea on how to patch that in an upstreamable way, but I know that this is the place that needs a change. I hope you can figure that out. Helmut