Some QT patches
hi, here are 2 QT patches, they are done on top of the following patches (that were sent to the mailing list):
1) qt4: fix generated sdk 2) qt4: add blacklist-diginotar-certs patch 3) qt4: update to latest version 4.7.4
Denis.
PATCH 1/2 qt4.inc: package qtdemo's docs in a separate package
The documentation was 285M and doesn't fit on the NAND of many machines,
but in another had part of the documentation is needed for the QT demos, so we split the documentation: so qt demo only RRECOMMAND the documentation that it really needs.
Thanks to Eric Bénard for explaining me how to split it.
--- meta/recipes-qt/qt4/qt4-embedded.inc | 2 +- meta/recipes-qt/qt4/qt4-x11-free.inc | 2 +- meta/recipes-qt/qt4/qt4.inc | 57 +++++++++++++++++++++++++++++++++- 3 files changed, 58 insertions(+), 3 deletions(-)
meta/recipes-qt/qt4/qt4-embedded.inc +1 -1
@@ -3,7 +3,7 @@ SECTION = "libs" LICENSE = "LGPLv2.1 | GPLv3" HOMEPAGE = "http://qt.nokia.com" DEPENDS += "directfb tslib" -INC_PR = "r30" +INC_PR = "r31" QT_BASE_NAME ?= "qt4-embedded" QT_BASE_LIB ?= "libqt-embedded"
meta/recipes-qt/qt4/qt4-x11-free.inc +1 -1
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com" SECTION = "x11/libs" DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" -INC_PR = "r27" +INC_PR = "r28" QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " QT_GLFLAGS_qemux86 = "-opengl"
meta/recipes-qt/qt4/qt4.inc +56 -1
81 lines not on this page · raw message
Signature · 1 line
1.7.4.1
Re: [PATCH 1/2] qt4.inc: package qtdemo's docs in a separate package
Hi,
Quoted 7 lines · Denis Carikli
The documentation was 285M and doesn't fit on the NAND of many machines,
but in another had part of the documentation is needed for the QT demos, so we split the documentation: so qt demo only RRECOMMAND the documentation that it really needs.Thanks to Eric Bénard for explaining me how to split it.
and in fact after testing, my initial guess was wrong so Denis will post an updated patch which works.
Eric
PATCH v2 1/1 qt4.inc: package qtdemo's docs in a separate package
The documentation was 285M and doesn't fit on the NAND of many machines,
but in another had part of the documentation is needed for the QT demos, so we split the documentation: so qt demo only RRECOMMAND the documentation that it really needs.
Thanks to Eric Bénard for explaining me how to split it.
--- meta/recipes-qt/qt4/qt4-embedded.inc | 2 +- meta/recipes-qt/qt4/qt4-x11-free.inc | 2 +- meta/recipes-qt/qt4/qt4.inc | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-)
meta/recipes-qt/qt4/qt4-embedded.inc +1 -1
@@ -3,7 +3,7 @@ SECTION = "libs" LICENSE = "LGPLv2.1 | GPLv3" HOMEPAGE = "http://qt.nokia.com" DEPENDS += "directfb tslib" -INC_PR = "r30" +INC_PR = "r31" QT_BASE_NAME ?= "qt4-embedded" QT_BASE_LIB ?= "libqt-embedded"
meta/recipes-qt/qt4/qt4-x11-free.inc +1 -1
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com" SECTION = "x11/libs" DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" -INC_PR = "r27" +INC_PR = "r28" QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " QT_GLFLAGS_qemux86 = "-opengl"
meta/recipes-qt/qt4/qt4.inc +6 -1
@@ -101,6 +101,8 @@ OTHER_PACKAGES = "\ ${QT_BASE_NAME}-qt3to4 \ ${QT_BASE_NAME}-qml-plugins" +#We prepend so ${QT_BASE_NAME}-demos-doc comes before ${PN}-doc,so the packaging of FILES_ get done before. +PACKAGES =+ "${QT_BASE_NAME}-demos-doc" PACKAGES += "${LIB_PACKAGES} ${DEV_PACKAGES} ${DBG_PACKAGES} ${OTHER_PACKAGES}" PACKAGES_DYNAMIC = "${QT_BASE_NAME}-plugin-* ${QT_BASE_NAME}-translation-* ${QT_BASE_NAME}-fonts-*"
@@ -109,6 +111,7 @@ ALLOW_EMPTY_${QT_BASE_NAME}-fonts = "1" FILES_${PN} = "" FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*" FILES_${PN}-dbg = "${exec_prefix}/src/debug/" +FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/qtopia/qch/qt.qch" RRECOMMENDS_${PN} = "${LIB_PACKAGES} ${OTHER_PACKAGES}" RRECOMMENDS_${PN}-dev = "${DEV_PACKAGES}" RRECOMMENDS_${PN}-dbg = "${DBG_PACKAGES}"
@@ -125,13 +128,15 @@ RRECOMMENDS_${QT_BASE_NAME}-demos += " \ ${QT_BASE_NAME}-plugin-imageformat-jpeg \ ${QT_BASE_NAME}-qml-plugins \ ${QT_BASE_NAME}-assistant \ - ${PN}-doc" + ${QT_BASE_NAME}-demos-doc" RRECOMMENDS_${QT_BASE_NAME}-examples += " \ ${QT_BASE_NAME}-plugin-sqldriver-sqlite \ ${QT_BASE_NAME}-plugin-imageformat-jpeg \ ${QT_BASE_NAME}-qml-plugins" RRECOMMENDS_${QT_BASE_NAME}-qmlviewer += " \ ${QT_BASE_NAME}-qml-plugins" +RRECOMMENDS_${QT_BASE_NAME}-doc += " \ + ${QT_BASE_NAME}-demos-doc" FILES_${QT_BASE_NAME}-tools = "${bindir}/qttracereplay ${bindir}/qdoc*" FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc*"
Signature · 1 line
1.7.4.1
PATCH 2/2 qt4(embedded and x11): disable neon for armv6-vfp
In reply to Denis Carikliwithout the -no-neon flag, neon is "autodetected"
by looking if the compiler is capable of compiling a neon test, and succeed, and neon is then enabled during the compilation.
--- meta/recipes-qt/qt4/qt4-embedded_4.7.4.bb | 3 ++- meta/recipes-qt/qt4/qt4-x11-free_4.7.4.bb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-qt/qt4/qt4-embedded_4.7.4.bb +2 -1
@@ -1,9 +1,10 @@ require qt-${PV}.inc require qt4-embedded.inc -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" QT_CONFIG_FLAGS_append_armv6 = " -no-neon " +QT_CONFIG_FLAGS_append_armv6-vfp = " -no-neon " QT_CONFIG_FLAGS += " \ -exceptions \
meta/recipes-qt/qt4/qt4-x11-free_4.7.4.bb +2 -1
@@ -1,9 +1,10 @@ require qt4-x11-free.inc require qt-${PV}.inc -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" QT_CONFIG_FLAGS_append_armv6 = " -no-neon " +QT_CONFIG_FLAGS_append_armv6-vfp = " -no-neon " QT_CONFIG_FLAGS += " \ -no-embedded \
Signature · 1 line
1.7.4.1
Re: [PATCH 2/2] qt4(embedded and x11): disable neon for armv6-vfp
Quoted 10 lines · Denis Carikli
without the -no-neon flag, neon is "autodetected"
by looking if the compiler is capable of compiling a neon test, and succeed, and neon is then enabled during the compilation.Signed-off-by Denis Carikli <[email protected]>
QT_CONFIG_FLAGS_append_armv6= " -no-neon "
+QT_CONFIG_FLAGS_append_armv6-vfp = " -no-neon "
I also ran into this problem, with the same fix.
There are a couple of other places with armv6 overrides that could misbehave, notably:TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
(python_2.6.6.bb)QEMU_OPTIONS_armv6 = "-cpu arm1136"
(bitbake.conf)
Is there a way to do this more generically?, something like:
QT_CONFIG_FLAGS_append_armv6* = " ... "
Cheers
Marc