From b2913ca81d6c7bf9b09bc80b68f466a1a2c0a325 Mon Sep 17 00:00:00 2001 From: Lisandro Damián Nicanor Pérez Meyer Date: Wed, 5 Mar 2014 12:16:29 -0300 Subject: Backport dont_pollute_pri_and_pc_with_private_deps.patch. --- ...dont_pollute_pri_and_pc_with_private_deps.patch | 47 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 48 insertions(+) create mode 100644 debian/patches/dont_pollute_pri_and_pc_with_private_deps.patch (limited to 'debian/patches') diff --git a/debian/patches/dont_pollute_pri_and_pc_with_private_deps.patch b/debian/patches/dont_pollute_pri_and_pc_with_private_deps.patch new file mode 100644 index 0000000..fb24c70 --- /dev/null +++ b/debian/patches/dont_pollute_pri_and_pc_with_private_deps.patch @@ -0,0 +1,47 @@ +From 31a1ec780aaba33c1008b8dc7bca7da88bd297ff Mon Sep 17 00:00:00 2001 +From: Jocelyn Turcotte +Date: Tue, 28 Jan 2014 13:07:59 +0100 +Subject: [PATCH] Don't pollute .prl & .pc files with private dependencies + +Also change the creating_module check in needToLink to make sure that +only the main module will try to link directly with the WebCore and +JavaScriptCore static libraries. + +Task-number: QTBUG-35774 +Initial-patch-by: Oswald Buddenhagen +Change-Id: Ib5992e112803679837249400e98cb8c22636096d +--- + Source/widgetsapi.pri | 1 + + Tools/qmake/mkspecs/features/default_post.prf | 4 ++-- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/Source/widgetsapi.pri b/Source/widgetsapi.pri +index 7bdc0e1..335e371 100644 +--- a/Source/widgetsapi.pri ++++ b/Source/widgetsapi.pri +@@ -49,6 +49,7 @@ use?(3D_GRAPHICS): WEBKIT += ANGLE + WEBKIT += javascriptcore wtf webcore + + MODULE = webkitwidgets ++CONFIG += creating_module + + # We want the QtWebKit API forwarding includes to live in the root build dir. + MODULE_BASE_DIR = $$_PRO_FILE_PWD_ +diff --git a/Tools/qmake/mkspecs/features/default_post.prf b/Tools/qmake/mkspecs/features/default_post.prf +index 6fae22f..548005d 100644 +--- a/Tools/qmake/mkspecs/features/default_post.prf ++++ b/Tools/qmake/mkspecs/features/default_post.prf +@@ -171,8 +171,8 @@ contains(QT, webkit)|contains(QT, webkitwidgets) { + } + + defineTest(needToLink) { +- # The main dynamic library always needs to link in the intermediate libraries +- creating_module: return(true) ++ # The main module dynamic library always needs to link in the intermediate libraries ++ isEqual(MODULE, webkit): return(true) + + force_static_libs_as_shared { + # So do the individual libraries if they are dynamic +-- +1.9.0 + diff --git a/debian/patches/series b/debian/patches/series index 8f98791..02d64c6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ # Upstream patches fix_ftbfs_in_archs_without_jit_support.patch +dont_pollute_pri_and_pc_with_private_deps.patch # debian patches 05_sparc_unaligned_access.diff -- cgit v1.2.3