ostinato generates lots of debug output as APKBUILD drops QT DEFINES
The APKBUILD uses the following definition to build ostinato
build() {
qmake-qt5 PREFIX=/usr
# Parallel build fails on armv7 with:
# fatal error: protocol.pb.h: No such file or directory
make -j1 CXXFLAGS="$CXXFLAGS" # qmake generates broken CFLAGS, demand it use ours
}
The qmake-qt5 PREFIX=/usr
generates Makefiles with CXXFLAGS definitions like that:
DEFINES = -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_CORE_LIB
CXXFLAGS = -pipe -isystem /usr/include -std=c++11 -Os -fomit-frame-pointer -fPIC -D_REENTRANT -Wall -Wextra $(DEFINES)
But these CXXFLAGS are overwritten by make -j1 CXXFLAGS="$CXXFLAGS"
with the default abuild CXXFLAGS. That drops the inclusion of the DEFINES definitions. Ostinato uses QT_NO_DEBUG to decide, if it should generate debugging messages always or only when the command line flag -d
is issued. As the QT_NO_DEBUG is dropped it always generates these debug messages.
To get back the original behaviour I suggest to add back the $(DEFINES)
to the CXXFLAGS:
diff --git a/testing/ostinato/APKBUILD b/testing/ostinato/APKBUILD
index 8b45a140..d6f7a732 100644
--- a/testing/ostinato/APKBUILD
+++ b/testing/ostinato/APKBUILD
@@ -21,7 +21,7 @@ build() {
# Parallel build fails on armv7 with:
# fatal error: protocol.pb.h: No such file or directory
- make -j1 CXXFLAGS="$CXXFLAGS" # qmake generates broken CFLAGS, demand it use ours
+ make -j1 CXXFLAGS="$CXXFLAGS \$(DEFINES)" # qmake generates broken CFLAGS, demand it use ours
}
package() {