Package: qt4-x11 / 4:4.8.7+dfsg-18

powerpc_designer_gstabs.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Modestas Vainius <modax@debian.org>
Subject: workaround FTBFS on powerpc/gcc 4.6 in signalsloteditor
Origin: vendor
Forwarded: not-needed
Last-Update: 2011-05-07

This should workaround g++-4.6/powerpc ICE that is related to dwarf2 [1][2].
It is very likely the patch will not be needed long term as the gcc bug might
eventually be fixed.

[1] .moc/release-shared/qteditorfactory.moc:237:1: internal compiler error: in size_of_die, at dwarf2out.c:10749
Please submit a full bug report,
with preprocessed source if appropriate.

[2] https://buildd.debian.org/status/fetch.php?pkg=qt4-x11&arch=powerpc&ver=4%3A4.7.2-4&stamp=1304320067

---
 tools/designer/src/components/signalsloteditor/signalsloteditor.pri |    7 +++++++
 1 file changed, 7 insertions(+)

--- a/tools/designer/src/components/signalsloteditor/signalsloteditor.pri
+++ b/tools/designer/src/components/signalsloteditor/signalsloteditor.pri
@@ -19,3 +19,10 @@ SOURCES += $$PWD/signalslot_utils.cpp \
     $$PWD/signalsloteditorwindow.cpp
 
 FORMS += $$PWD/connectdialog.ui
+
+equals(QT_ARCH, powerpc) {
+    message("powerpc/gcc 4.6 ICE workaround for designer: build with -gstabs rather than -g")
+    QMAKE_CXXFLAGS -= -g
+    QMAKE_CXXFLAGS += -gstabs
+}
+