From cbb2d00fbb2904f600f9e07a6b892de45d973c698aa55d1069e76b85e7778c80 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Thu, 15 Oct 2020 11:27:12 +0000 Subject: [PATCH] Accepting request 841900 from home:StefanBruens:branches:KDE:Qt:5.15 - Silence xcb errors and qml connection warnings by default, see boo#1115541 (xcb) and kde#418793. OBS-URL: https://build.opensuse.org/request/show/841900 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtbase?expand=0&rev=16 --- libqt5-qtbase.changes | 6 ++++++ libqt5-qtbase.spec | 7 +++++++ qtlogging.ini | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 qtlogging.ini diff --git a/libqt5-qtbase.changes b/libqt5-qtbase.changes index 30da4d3..ddd0615 100644 --- a/libqt5-qtbase.changes +++ b/libqt5-qtbase.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 14 19:28:37 UTC 2020 - Stefan Brüns + +- Silence xcb errors and qml connection warnings by default, see + boo#1115541 (xcb) and kde#418793. + ------------------------------------------------------------------- Mon Oct 12 13:57:55 UTC 2020 - Stefan Brüns diff --git a/libqt5-qtbase.spec b/libqt5-qtbase.spec index b289643..6c19574 100644 --- a/libqt5-qtbase.spec +++ b/libqt5-qtbase.spec @@ -51,6 +51,7 @@ Source: https://download.qt.io/official_releases/qt/5.15/%{real_version} Source1: libqt5-qtbase.changes Source2: macros.qt5 Source3: baselibs.conf +Source4: qtlogging.ini Source99: libqt5-qtbase-rpmlintrc # patches 0-1000 are openSUSE and/or non-upstream(able) patches # Patch1: 0001-Lower-required-version-of-OpenSSL-to-1.1.0.patch @@ -966,6 +967,10 @@ popd chmod 644 %{buildroot}%{libqt5_docdir}/global/template/images/*.png +# Silence logging of xcb errors and qml deprecated connection +# warnings by default +install -Dm644 %{SOURCE4} %{buildroot}%{libqt5_datadir}/qtlogging.ini + %post -n libQt5Core5 -p /sbin/ldconfig %post -n libQt5Concurrent5 -p /sbin/ldconfig @@ -1048,6 +1053,8 @@ chmod 644 %{buildroot}%{libqt5_docdir}/global/template/images/*.png %{libqt5_libdir}/sse2/libQt5Core.so.* %endif %endif +%dir %{libqt5_datadir} +%{libqt5_datadir}/qtlogging.ini %files -n libQt5Core-devel %license LICENSE.* diff --git a/qtlogging.ini b/qtlogging.ini new file mode 100644 index 0000000..136fe58 --- /dev/null +++ b/qtlogging.ini @@ -0,0 +1,3 @@ +[Rules] +qt.qpa.xcb.warning=false +qt.qml.connections.warning=false \ No newline at end of file