openbsd-ports/x11/qt4/patches/patch-src_tools_moc_main_cpp
dcoppa 0f85a8da17 Maintenance update to qt-4.8.5 (plus three bugfixes from upstream
via Arch Linux).
Feedback from zhuk@, espie@, and Amit Kulkarni.
ABI/API compatibility analysis done with abi-compliance-checker.

ok espie@ (MAINTAINER)
2013-10-04 13:15:39 +00:00

20 lines
791 B
Plaintext

$OpenBSD: patch-src_tools_moc_main_cpp,v 1.3 2013/10/04 13:15:41 dcoppa Exp $
Workaround moc's inability to properly parse C++ macros within
some of Boost's headers. This issue may come up again with other
headers from Boost requiring additional entries to be added. The
C++ parser from Qt5's moc has been fixed.
https://bugreports.qt-project.org/browse/QTBUG-22829
--- src/tools/moc/main.cpp.orig Fri Jun 7 07:17:00 2013
+++ src/tools/moc/main.cpp Fri Sep 27 10:15:15 2013
@@ -190,6 +190,7 @@ int runMoc(int _argc, char **_argv)
// Workaround a bug while parsing the boost/type_traits/has_operator.hpp header. See QTBUG-22829
pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
+ pp.macros["BOOST_LEXICAL_CAST_INCLUDED"];
QByteArray filename;
QByteArray output;