[qt] build declarative/qml with -fno-strict-aliasing (#748936, QTBUG-19736)

Rex Dieter rdieter at fedoraproject.org
Thu Nov 3 18:51:39 UTC 2011


commit 2fe8ba17066d7517bdd3bf46472b4f58c8730986
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Thu Nov 3 13:59:08 2011 -0500

    build declarative/qml with -fno-strict-aliasing (#748936, QTBUG-19736)

 ...ensource-src-4.7.4-qml_no_strict_aliasing.patch |   10 ++++++++++
 qt.spec                                            |    9 ++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/qt-everywhere-opensource-src-4.7.4-qml_no_strict_aliasing.patch b/qt-everywhere-opensource-src-4.7.4-qml_no_strict_aliasing.patch
new file mode 100644
index 0000000..9dfbdce
--- /dev/null
+++ b/qt-everywhere-opensource-src-4.7.4-qml_no_strict_aliasing.patch
@@ -0,0 +1,10 @@
+diff -up qt-everywhere-opensource-src-4.7.4/src/declarative/qml/qml.pri.qml_no_strict_aliasing qt-everywhere-opensource-src-4.7.4/src/declarative/qml/qml.pri
+--- qt-everywhere-opensource-src-4.7.4/src/declarative/qml/qml.pri.qml_no_strict_aliasing	2011-09-12 01:49:29.000000000 -0500
++++ qt-everywhere-opensource-src-4.7.4/src/declarative/qml/qml.pri	2011-11-03 13:04:50.377884962 -0500
+@@ -1,3 +1,6 @@
++
++*-g++*: QMAKE_CXXFLAGS += -fno-strict-aliasing
++
+ INCLUDEPATH += $$PWD
+ SOURCES += \
+     $$PWD/qdeclarativeparser.cpp \
diff --git a/qt.spec b/qt.spec
index 4872778..d9d590e 100644
--- a/qt.spec
+++ b/qt.spec
@@ -11,7 +11,7 @@ Summary: Qt toolkit
 Name:    qt
 Epoch:   1
 Version: 4.8.0
-Release: 0.24.rc1%{?dist}
+Release: 0.25.rc1%{?dist}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT
@@ -94,6 +94,9 @@ Patch73: qt-everywhere-opensource-src-4.8.0-qtwebkit-glib231.patch
 # sql/drivers/tds/qsql_tds.cpp:341:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 Patch74: qt-everywhere-opensource-src-4.7.4-tds_no_strict_aliasing.patch
 
+# workaround aliasing issues in declarative/qml (#748936, QTBUG-19736) 
+Patch75: qt-everywhere-opensource-src-4.7.4-qml_no_strict_aliasing.patch
+
 # upstream patches
 # Applications crash when using a visual with 24 bits per pixel 
 # https://bugreports.qt.nokia.com/browse/QTBUG-21754
@@ -422,6 +425,7 @@ popd
 %patch73 -p1 -b .qtwebkit-glib231
 %endif
 %patch74 -p1 -b .tds_no_strict_aliasing
+%patch75 -p1 -b .qml_no_strict_aliasing
 
 # upstream patches
 %patch100 -p1 -b .QTBUG-21754
@@ -1055,6 +1059,9 @@ fi
 
 
 %changelog
+* Thu Nov 03 2011 Rex Dieter <rdieter at fedoraproject.org> 4.8.0-0.25.rc1
+- build declarative/qml with -fno-strict-aliasing (#748936, QTBUG-19736)
+
 * Thu Nov 03 2011 Rex Dieter <rdieter at fedoraproject.org> 4.8.0-0.24.rc1
 - build tds sql driver with -fno-strict-aliasing 
 


More information about the scm-commits mailing list