fix moc in 4.x tripping over BOOST
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
Origin: http://pkgs.fedoraproject.org/cgit/qt.git/plain/qt-everywhere-opensource-src-4.8.5-QTBUG-22829.patch?id=e41de7f53a97dd68f1bd13fe64b6d84cf945397a
Bug: https://bugreports.qt-project.org/browse/QTBUG-22829
Bug-Debian: http://bugs.debian.org/704045
Bug-RedHat: https://bugzilla.redhat.com/756395
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/1119656
Applied-Upstream: Qt5 has proper parsing support.

Gbp-Pq: Name qt-everywhere-opensource-src-4.8.5-QTBUG-22829.patch

src/tools/moc/main.cpp

index 147e3f5a79ccb54136541d29c6d2b9d7e31c3cab..cec43e86a4ba638dc784df1c83894629dff4c88d 100644 (file)
@@ -188,8 +188,9 @@ int runMoc(int _argc, char **_argv)
     pp.macros["Q_MOC_RUN"];
     pp.macros["__cplusplus"];
 
-    // Workaround a bug while parsing the boost/type_traits/has_operator.hpp header. See QTBUG-22829
+    // Workaround a bugs while parsing some boost headers. See QTBUG-22829 
     pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
+    pp.macros["BOOST_LEXICAL_CAST_INCLUDED"];
 
     QByteArray filename;
     QByteArray output;