Skip to contentSkip to conversation

libstatgrab: add logging/tracing options

PATCH New Jens Rehsack 1 participant 1 message Jan 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libstatgrab: add logging/tracing options

Introduce opportunity to enable/disable logging with and without log4cplus dependency.

---
 meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-extended/libstatgrab/libstatgrab_0.92.bb +5 -0
index 4ede3c8c6..c61d7c99d 100644
@@ -17,6 +17,11 @@ SRC_URI[sha256sum] = "5bf1906aff9ffc3eeacf32567270f4d819055d8386d98b9c8c05519012
 # Perl5 is for tests only
 EXTRA_OECONF = "--without-perl5 --with-mnttab=/proc/mounts"
 
+# use with caution - default properties are configured to trace
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[log4cplus] = "--with-log4cplus,--without-log4cplus,log4cplus"
+PACKAGECONFIG[logging] = "--enable-logging,--disable-logging,"
+
 inherit autotools pkgconfig
 
 FILES_statgrab = "${bindir}/statgrab"
Signature · 1 line
2.17.1