Skip to contentSkip to conversation

package/qt5base: enable journald logging

PATCH New David Rosca 2 participants 2 messages May 14, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qt5base: enable journald logging

Allows Qt applications to log into systemd journal with QT_LOGGING_TO_CONSOLE=0 environment variable.

---
 package/qt5/qt5base/qt5base.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/qt5/qt5base/qt5base.mk +7 -0
index e73b8931aa..e4ae120631 100644
@@ -253,6 +253,13 @@ QT5BASE_CONFIGURE_OPTS += -no-gtk
 endif
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+QT5BASE_CONFIGURE_OPTS += -journald
+QT5BASE_DEPENDENCIES += systemd
+else
+QT5BASE_CONFIGURE_OPTS += -no-journald
+endif
+
 # Build the list of libraries to be installed on the target
 QT5BASE_INSTALL_LIBS_y                                 += Qt5Core
 QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XCB)        += Qt5XcbQpa
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 package/qt5base: enable journald logging

Quoted 7 lines · On Tue, 14 May 2019 09:49:36 +0200 David Rosca <[email protected]> wrote:

Allows Qt applications to log into systemd journal with QT_LOGGING_TO_CONSOLE=0 environment variable.

---
 package/qt5/qt5base/qt5base.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com