Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651682 - x11-misc/qt5ct: suppress debug messages
Summary: x11-misc/qt5ct: suppress debug messages
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Coacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-27 10:00 UTC by Dmitriy Dyomin
Modified: 2018-04-15 11:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
qt5ct-0.35-r1.ebuild adds appropriate QT_LOGGING_RULES to /etc/env.d/98qt5ct (qt5ct-0.35-r1.ebuild,1.14 KB, text/plain)
2018-03-27 10:02 UTC, Dmitriy Dyomin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Dyomin 2018-03-27 10:00:28 UTC
Currently, using x11-misc/qt5ct produces the following output:

qt5ct: using qt5ct plugin

It happens from qCDebug() calls in the package. Qt allows customization of log messages via environment variable QT_LOGGING_RULES.


Reproducible: Always

Steps to Reproduce:
1. install x11-misc/qt5ct
2. reload profile (source /etc/profile)
3. start any qt5 application
Actual Results:  
unwanted message "qt5ct: using qt5ct plugin" is printed to console

Expected Results:  
no output
Comment 1 Dmitriy Dyomin 2018-03-27 10:02:21 UTC
Created attachment 525648 [details]
qt5ct-0.35-r1.ebuild adds appropriate QT_LOGGING_RULES to /etc/env.d/98qt5ct
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-27 10:07:26 UTC
Please attach a unified diff (diff -u) of the changes you did to the ebuild.
Comment 3 Coacher 2018-04-07 04:29:40 UTC
OK, will review and fix this tomorrow.
Comment 4 Coacher 2018-04-15 11:25:01 UTC
Unfortunately the fix for this bug isn't possible atm.
System-wide QT_LOGGING_RULES doesn't stack across multiple files.
Also system-wide QT_LOGGING_RULES can be mistakenly deactivated
if a user defines this variable himself.

Current QT_LOGGING_RULES mechanism is too unreliable.

See this discussion for more info: https://github.com/gentoo/gentoo/pull/7911