[SCM] Qt 4 packaging branch, experimental-snapshots, updated. debian/4.7.0-beta2-3-11-gcf8f830

Fathi Boudra fabo at alioth.debian.org
Fri Aug 27 12:42:03 UTC 2010


The following commit has been merged in the experimental-snapshots branch:
commit cf8f830ec8f3ee7e2fdb8ab5ec641011906febbf
Author: Fathi Boudra <fabo at debian.org>
Date:   Fri Aug 27 15:41:19 2010 +0300

    Remove 0001_add_webkit_qt_config.patch in favor of
    0001_webkit_self_injection_into_qt_configuration.patch.
---
 debian/changelog                                   |    6 +-
 debian/patches/0001_add_webkit_qt_config.patch     |   40 -------
 ...bkit_self_injection_into_qt_configuration.patch |  108 ++++++++++++++++++++
 debian/patches/series                              |    2 +-
 4 files changed, 113 insertions(+), 43 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c7ae04f..f9efbfa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
-qt4-x11 (4:4.7.0~rc1-1) UNRELEASED; urgency=low
+qt4-x11 (4:4.7.0~rc1-1) experimental; urgency=low
 
   * New upstream release.
+  * Remove 0001_add_webkit_qt_config.patch in favor of
+    0001_webkit_self_injection_into_qt_configuration.patch.
   * Update debian/control:
     - bump Standards-Version to 3.9.1 (no changes needed).
     - add libopenvg1-mesa-dev build dependency.
@@ -12,7 +14,7 @@ qt4-x11 (4:4.7.0~rc1-1) UNRELEASED; urgency=low
   * Update installed files.
   * Update symbols files.
 
- -- Fathi Boudra <fabo at debian.org>  Sun, 22 Aug 2010 12:18:20 +0300
+ -- Fathi Boudra <fabo at debian.org>  Thu, 26 Aug 2010 19:54:00 +0300
 
 qt4-x11 (4:4.7.0~beta2-3) experimental; urgency=low
 
diff --git a/debian/patches/0001_add_webkit_qt_config.patch b/debian/patches/0001_add_webkit_qt_config.patch
deleted file mode 100644
index a3a8033..0000000
--- a/debian/patches/0001_add_webkit_qt_config.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Description: when Qt is built with -no-webkit and Qt WebKit is used
-             Qt applications cannot found webkit as they rely on qmake. 
-             Make it possible for Qt modules to extend QT_CONFIG.
-             This is done by reading the module files from within qconfig.pri.
-Author: Simon Hausmann <simon.hausmann at nokia.com>
-Author: Fathi Boudra <fathi.boudra at nokia.com>
-
---- a/configure
-+++ b/configure
-@@ -7719,6 +7719,9 @@ QT_LIBINFIX = $QT_LIBINFIX
- QT_NAMESPACE = $QT_NAMESPACE
- QT_NAMESPACE_MAC_CRC = $QT_NAMESPACE_MAC_CRC
- 
-+#modules
-+for(mod,\$\$list(\$\$files(\$\$[QMAKE_MKSPECS]/modules/qt_*.pri))):include(\$\$mod)
-+
- EOF
- if [ "$CFG_RPATH" = "yes" ]; then
-     echo "QMAKE_RPATHDIR += \"$QT_INSTALL_LIBS\"" >> "$QTCONFIG.tmp"
---- a/mkspecs/modules/qt_webkit_version.pri
-+++ b/mkspecs/modules/qt_webkit_version.pri
-@@ -1,3 +1,7 @@
-+#configuration
-+QT_CONFIG *= webkit
-+
-+#versioning
- QT_WEBKIT_VERSION = 4.7.0
- QT_WEBKIT_MAJOR_VERSION = 4
- QT_WEBKIT_MINOR_VERSION = 7
---- a/tools/configure/configureapp.cpp
-+++ b/tools/configure/configureapp.cpp
-@@ -2925,6 +2925,8 @@ void Configure::generateCachefile()
-             configStream << "#namespaces" << endl << "QT_NAMESPACE = " << dictionary["QT_NAMESPACE"] << endl;
-         }
- 
-+        configStream << "#modules" << endl << "for(mod,$$list($$files($$[QMAKE_MKSPECS]/modules/qt_*.pri))):include($$mod)" << endl;
-+
-         configStream.flush();
-         configFile.close();
-     }
diff --git a/debian/patches/0001_webkit_self_injection_into_qt_configuration.patch b/debian/patches/0001_webkit_self_injection_into_qt_configuration.patch
new file mode 100644
index 0000000..9126e29
--- /dev/null
+++ b/debian/patches/0001_webkit_self_injection_into_qt_configuration.patch
@@ -0,0 +1,108 @@
+commit b5b6cbb477b50c582d545b0e5e3a04626834e7e2
+commit e645157a5dcf702df21b566441a56753eaefe6c4
+Author: Oswald Buddenhagen <oswald.buddenhagen at nokia.com>
+Date:   Tue Aug 17 18:59:51 2010 +0200
+Date:   Mon Aug 23 19:42:00 2010 +0200
+
+    let WebKit inject itself into the qt configuration
+
+    i.e., don't explicitly deal with qt_webkit_version.pri outside of the
+    webkit source directory.
+
+    Task-number: QTBUG-12379
+    Reviewed-by: Simon Hausmann
+
+    fix build after first webkit self-injection attempt
+
+    it didn't work for several reasons:
+    - if the configures don't add webkit to QT_CONFIG, src.pro doesn't even
+      know that it needs to build WebKit at all, so WebKit would never
+      inject itself into the build. hen-and-egg problem.
+    - the in-Qt build doesn't use WebKit.pro in the first place, so a proper
+      recursive qmake would never create qt_webkit_version.pri. it worked
+      under unix because configure collects all project files irrespective
+      of the actual SUBDIRS structure.
+    - a proper recursive qmake will cache the qt config, so the injection
+      wouldn't be effective during the first qmake run
+
+    so instead let the configures copy the pri file.
+
+--- a/configure
++++ b/configure
+@@ -7001,7 +7001,8 @@ if [ "$CFG_WEBKIT" = "auto" ]; then
+ fi
+ 
+ if [ "$CFG_WEBKIT" = "yes" ]; then
+-    QT_CONFIG="$QT_CONFIG webkit"
++    # This include takes care of adding "webkit" to QT_CONFIG.
++    cp -f "$relpath/src/3rdparty/webkit/WebKit/qt/qt_webkit_version.pri" "$outpath/mkspecs/modules/qt_webkit_version.pri"
+     # The reason we set CFG_WEBKIT, is such that the printed overview of what will be enabled, shows correctly.
+     CFG_WEBKIT="yes"
+ else
+--- /dev/null
++++ b/mkspecs/modules/README
+@@ -0,0 +1,3 @@
++Externally provided Qt modules may drop a qmake file here to become part of
++the current Qt configuration. The file name must follow the pattern
++"qt_<module>.pri". It must contain a "QT_CONFIG += <module>" statement.
+--- a/mkspecs/modules/qt_webkit_version.pri
++++ /dev/null
+@@ -1,4 +0,0 @@
+-QT_WEBKIT_VERSION = 4.7.0
+-QT_WEBKIT_MAJOR_VERSION = 4
+-QT_WEBKIT_MINOR_VERSION = 7
+-QT_WEBKIT_PATCH_VERSION = 0
+--- a/projects.pro
++++ b/projects.pro
+@@ -159,11 +159,13 @@ INSTALLS += qmake
+ 
+ #mkspecs
+ mkspecs.path=$$[QT_INSTALL_DATA]/mkspecs
+-mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$QT_SOURCE_TREE/mkspecs/*
++mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$files($$QT_SOURCE_TREE/mkspecs/*)
++mkspecs.files -= $$QT_SOURCE_TREE/mkspecs/modules
+ unix { 
+    DEFAULT_QMAKESPEC = $$QMAKESPEC
+    DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
+    mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
++   mkspecs.files -= $$QT_SOURCE_TREE/mkspecs/default
+ }
+ win32:!equals(QT_BUILD_TREE, $$QT_SOURCE_TREE) {
+     # When shadow building on Windows, the default mkspec only exists in the build tree.
+--- a/src/3rdparty/webkit/WebCore/WebCore.pro
++++ b/src/3rdparty/webkit/WebCore/WebCore.pro
+@@ -82,7 +82,7 @@ CONFIG(QTDIR_build) {
+     symbian: TARGET =$$TARGET$${QT_LIBINFIX}
+ }
+ moduleFile=$$PWD/../WebKit/qt/qt_webkit_version.pri
+-include($$moduleFile)
++isEmpty(QT_BUILD_TREE):include($$moduleFile)
+ VERSION = $${QT_WEBKIT_MAJOR_VERSION}.$${QT_WEBKIT_MINOR_VERSION}.$${QT_WEBKIT_PATCH_VERSION}
+ 
+ unix {
+--- a/src/3rdparty/webkit/WebKit/qt/qt_webkit_version.pri
++++ b/src/3rdparty/webkit/WebKit/qt/qt_webkit_version.pri
+@@ -2,4 +2,4 @@ QT_WEBKIT_VERSION = 4.7.0
+ QT_WEBKIT_MAJOR_VERSION = 4
+ QT_WEBKIT_MINOR_VERSION = 7
+ QT_WEBKIT_PATCH_VERSION = 0
+-QT_CONFIG *= webkit
++QT_CONFIG += webkit
+--- a/tools/configure/configureapp.cpp
++++ b/tools/configure/configureapp.cpp
+@@ -2659,8 +2659,13 @@ void Configure::generateOutputVars()
+             qtConfig += "audio-backend";
+     }
+ 
+-    if (dictionary["WEBKIT"] == "yes")
+-        qtConfig += "webkit";
++    if (dictionary["WEBKIT"] == "yes") {
++        // This include takes care of adding "webkit" to QT_CONFIG.
++        QString src = sourcePath + "/src/3rdparty/webkit/WebKit/qt/qt_webkit_version.pri";
++        QString dst = buildPath + "/mkspecs/modules/qt_webkit_version.pri";
++        QFile::remove(dst);
++        QFile::copy(src, dst);
++    }
+ 
+     if (dictionary["DECLARATIVE"] == "yes") {
+         if (dictionary[ "SCRIPT" ] == "no") {
diff --git a/debian/patches/series b/debian/patches/series
index c084f9c..fa7e4b0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,5 @@
 # upstream patches
-0001_add_webkit_qt_config.patch
+0001_webkit_self_injection_into_qt_configuration.patch
 
 # qt-copy patches
 0180-window-role.diff

-- 
Qt 4 packaging



More information about the pkg-kde-commits mailing list