[Lunar-commits] <moonbase-kde> kdepim: fix qt4's moc with kdepim

v4hn me at v4hn.de
Fri Nov 14 20:42:54 CET 2014


commit 4dd0acd9be285b77f58358fa7592dc32623c7dd5
Author: v4hn <me at v4hn.de>
Date: Fri, 14 Nov 2014 18:37:31 +0100
URL: https://github.com/lunar-linux/moonbase-kde/commit/4dd0acd9be285b77f58358fa7592dc32623c7dd5

kdepim: fix qt4's moc with kdepim

qt4's moc can't handle preprocessor variables which are used in a
(growing) number of boost headers. This makes moc ignore all boost
includes and therefore is future proof although a bit verbose...
---
  office/kdepim/BUILD     | +0/-3     
  office/kdepim/PRE_BUILD | +4/-0     
  2 files changed, 4 insertions(+), 3 deletions(-)

--- a/office/kdepim/BUILD
+++ b/office/kdepim/BUILD
@@ -1,8 +1,5 @@
-(
 
   source /etc/profile.d/qt4.rc   &&
   source /etc/profile.d/kde4.rc  &&
 
   default_cmake_build
-  
-) > $C_FIFO 2>&1
--- /dev/null
+++ b/office/kdepim/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+
+# qt4's moc chokes on BOOST_JOIN
+grep -l -r "#include <boost/.*>" | xargs sed -i "s at .*include <boost/.*>.*@#ifndef Q_MOC_RUN\n\0\n#endif@"




More information about the Lunar-commits mailing list