Qt 5.9 throws Dbus error / connman

Recently we upgraded to the newest Toradex 2.8b2 Image. Unfortunately, there is a bug in Qt 5.8 and 5.9 causing loops of error logging. See here: [QTBUG-57844] libqconnmanbearer plugin loops erroring - Qt Bug Tracker

Is there a way, we can apply the patch (https://codereview.qt-project.org/#/c/210638/) to our build system?

Hi cheesi

Recently we upgraded to the newest Toradex 2.8b2 Image. Unfortunately, there is a bug in Qt 5.8 and 5.9 causing loops of error logging. See here: Loading...
Thanks for the information about the bug.

Is there a way, we can apply the patch (https://codereview.qt-project.org/#/c/210638/) to our build system?
You can apply this patch depending on your needs. If you want to try it out, then just do the changes by hand in the source code. If you want to have it on your local build in version 5.9, then you can append this patch in the builld recipe of qtbase.

Hey taski!

Thanks for the response.

What are the exact steps to apply this patch to our local bitbake build system? We never had to apply patches, so we are quite unaware about the exact procedure.

From my understanding, I need to create a patch file, copy it into layer folder and add a reference the path in the reciept. Right? But what are the exact paths? Are there any pitfalls?

Hi @cheesi

If you don’t already have your own meta layer you may want to create one. See the documentation here:
https://www.yoctoproject.org/docs/2.0/mega-manual/mega-manual.html#set-up-your-layer-for-the-build

To add the patch to Qt you have to create a bbappend file for qtbase_git. In your layer do the following:

mkdir -p recipes-qt/qt5/qtbase/

Put the patch in the qtbase directory. After that you need to create the bbappend file under recipes-qt/qt5/qtbase_git.bbappend:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append = " file://<your-patch>.patch"

If you now rebuild the image the patch should be applied before configuring Qt.

Regards,
Stefan