Skip to contentSkip to conversation

qt4: Fix build with moc4 and boost

PATCH Superseded Ricardo Ribalda Delgado 2 participants 4 messages Jul 17, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qt4: Fix build with moc4 and boost

---
 recipes-qt4/qt4/qt4-4.8.7.inc                       |  1 +
 ...verywhere-opensource-src-4.8.6-QTBUG-22829.patch | 21 +++++++++++++++++++++
 recipes-qt4/qt4/qt4-native.inc                      |  1 +
 3 files changed, 23 insertions(+)
 create mode 100644 recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch
recipes-qt4/qt4/qt4-4.8.7.inc +1 -0
index 16b22a808a62..4bade85abe98 100644
@@ -34,6 +34,7 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever
            file://g++.conf \
            file://linux.conf \
            file://fix-for-mips-n32.patch \
+	   file://qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch \
            "
 
 SRC_URI[md5sum] = "d990ee66bf7ab0c785589776f35ba6ad"
recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch new file +21 -0
new file mode 100644
index 000000000000..e5d3c266bade
@@ -0,0 +1,21 @@
+Error described on: https://bugzilla.redhat.com/show_bug.cgi?id=1396755
+Patch obtained from: http://pkgs.fedoraproject.org/cgit/rpms/qt.git/tree/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch
+
+Upstream-Status: Inappropriate
+diff -up qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp.QTBUG-22829 qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp
+--- qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp.QTBUG-22829	2015-05-07 09:14:44.000000000 -0500
++++ qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp	2016-12-08 12:32:46.638962448 -0600
+@@ -188,8 +188,12 @@ 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"];
++    pp.macros["BOOST_NEXT_PRIOR_HPP_INCLUDED"];
++    pp.macros["BOOST_TYPE_TRAITS_HPP"];
++    pp.macros["_SYS_SYSMACROS_H_OUTER"];
+ 
+     QByteArray filename;
+     QByteArray output;
recipes-qt4/qt4/qt4-native.inc +1 -0
index 5a873de4e8f4..c0d6b3cb4cd4 100644
@@ -21,6 +21,7 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever
 	   file://gcc-6.patch \
            file://g++.conf \
            file://linux.conf \
+	   file://qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch \
 	"
 
 UPSTREAM_CHECK_URI = "http://download.qt.io/official_releases/qt/4.8/"
Signature · 1 line
2.13.2
#1 lore raw

recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch line 4

Quoted 8 lines · Ricardo Ribalda Delgado

index 000000000000..e5d3c266bade

recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch new file +4 -0
@@ -0,0 +1,21 @@
+Error described on: https://bugzilla.redhat.com/show_bug.cgi?id=1396755
+Patch obtained from: http://pkgs.fedoraproject.org/cgit/rpms/qt.git/tree/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch
+
+Upstream-Status: Inappropriate

The patch itself also needs a Signed-off-by.

Alex

#2 lore raw

Hi Alex

Unortunately I do not know who is the original author. The oldest thing that I can track is:

http://pkgs.fedoraproject.org/cgit/rpms/qt.git/commit/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch?id=7d0674cfd8a0bd3722f9169adac15c796483cf88

But I am not sure if it is appropriate to add a SOB If we are not sure of the authorship.

Quoted 18 lines · Alexander Kanavin

recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch line 4

Quoted 11 lines · Ricardo Ribalda Delgado

index 000000000000..e5d3c266bade
--- /dev/null
+++
b/recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch

(quoted diff) +2 -0
@@ -0,0 +1,21 @@
+Error described on: https://bugzilla.redhat.com/show_bug.cgi?id=1396755
+Patch obtained from:

http://pkgs.fedoraproject.org/cgit/rpms/qt.git/tree/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch

recipes-qt4/qt4/qt4-4.8.7/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch new file +2 -0
+
+Upstream-Status: Inappropriate

The patch itself also needs a Signed-off-by.

Alex

Signature · 1 line
Ricardo Ribalda
#3 lore raw
Quoted 9 lines · Ricardo Ribalda Delgado

Hi Alex

Unortunately I do not know who is the original author. The oldest thing that I can track is:

http://pkgs.fedoraproject.org/cgit/rpms/qt.git/commit/qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch?id=7d0674cfd8a0bd3722f9169adac15c796483cf88

But I am not sure if it is appropriate to add a SOB If we are not sure of the authorship.

You can never add SOB on behalf of other people. What I meant is that you should add yourself. SOB is about establishing the chain of people who have handled the patch and certify that it's okay to use, to the best of their knowledge.

Alex