void-packages/srcpkgs/qt/patches/moc-syslib-workaround.patch
Jürgen Buchmüller d9678627de qt: add workaround for moc parsing bug
The moc-qt4 parser fails to recognize the redefinition of some
macros like major(), minor() in the new version of the
kernel-libc-headers-4.9.8 file sys/sysmacros.h.
Add a patch to predefine the macro _SYS_SYSMACROS_H_OUTER
which works around this bug and makes it possible again to
build qt-webkit and possibly other packages depending on qt.
2017-02-20 18:29:37 +01:00

11 lines
565 B
Diff

--- qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp 2017-02-20 18:21:15.826212874 +0100
+++ qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp 2017-02-20 18:23:02.448342205 +0100
@@ -192,6 +192,8 @@
pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
pp.macros["BOOST_LEXICAL_CAST_INCLUDED"];
pp.macros["BOOST_NEXT_PRIOR_HPP_INCLUDED"];
+ // Workaround a bug where newer kernel-libc-headers sys/sysmacros.h define macros like major, minor
+ pp.macros["_SYS_SYSMACROS_H_OUTER"];
QByteArray filename;
QByteArray output;