Bug#1030980: Qt6::qmake IMPORTED_LOCATION points to build architecture qmake6
Package: qt6-base-dev
User: debian-cross@lists.debian.org
Usertags: ftcbfs
Control: affects -1 + src:fcitx-qt5
Hi,
thanks for adding the <triplet>-qmake6 wrapper. This piece seems to work
fine. The next step is making packages actually use it and this is where
it gets difficult.
fcitx-qt6 extracts the Qt6::qmake IMPORTED_LOCATION and expects to find
a working qmake there. What it gets is the build architecture qmake
instead of our lovely wrapper. Bummer.
I looked into how this could be fixed and got entangled in the mess of
cmake files until I completely lost track. What I found is that the
imported location is (wrongly) defined in
/usr/lib/<triplet>/cmake/Qt6CoreTools/Qt6CoreToolsTargets-none.cmake as
${_IMPORT_PREFIX}/lib/qt6/libexec/qmake aka /usr/lib/qt6/libexec/qmake
while it should be /usr/bin/<triplet>-qmake6. Tracking down how this
file is generated is where I failed. Would someone be available to
support me with that task?
Thanks in advance
Helmut
Reply to: