/usr/lib/qt5/bin/qmlplugindump hangs in qemu user emulation
We hit this once a year... here with kde/kwin:
Then with lomiri, @z3ntu made the following workaround:
- https://gitlab.com/postmarketOS/pmaports/-/commit/514782c365dc4b724c4fba046fb3ffc522c81aa9
- https://gitlab.com/postmarketOS/pmaports/-/commit/8689c3610dca9fd76037d600703378cebc682b36
Now the issue happens again, with kde packages compiling for armv7 on bpo (all other arches work fine, and I can't reproduce it outside of builds.sr.ht):
- https://gitlab.com/postmarketOS/build.postmarketos.org/-/issues/74
- https://gitlab.com/postmarketOS/pmaports/-/merge_requests/1554
zhuowei has made a very good analysis of the problem here, even with a reproducer (we just didn't realize that this is probably the same thing):
This issue can be worked around easily with the following. But it's very annoying, so let's try to get this fixed in QEMU eventually.
prepare() {
default_prepare
# qmlplugindump fails for armv7+qemu (bpo#74). This is purely for
# packager knowledge and doesn't affect runtime, so we can disable it.
if [ "$CARCH" = "armv7" ]; then
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt
fi
}
(There is also qemu#1813398, not sure if related.)