From 3a84535bcba5f54264964b65a09d04022f939230 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Tue, 24 Sep 2013 02:35:11 +0000 Subject: [PATCH] qtwebkit: fix QA issue (bad RPATH) Building qtwebkit causes a QA issue such that QtWebPluginProcess and QtWebProcess contain bad RPATHs which point into the build location. This fix adds a patch to not include the rpath.prf which causes this problem. Signed-off-by: Trevor Woerner Signed-off-by: Martin Jansa --- recipes-qt/qt5/qtwebkit.inc | 5 +---- recipes-qt/qt5/qtwebkit/fix-rpath.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 recipes-qt/qt5/qtwebkit/fix-rpath.patch diff --git a/recipes-qt/qt5/qtwebkit.inc b/recipes-qt/qt5/qtwebkit.inc index 9c467dc..0c68134 100644 --- a/recipes-qt/qt5/qtwebkit.inc +++ b/recipes-qt/qt5/qtwebkit.inc @@ -13,7 +13,4 @@ EXTRA_QMAKEVARS_PRE += "${QTWEBKIT_DEBUG}" INC_PR = "r0" -do_configure_append() { - # Fix rpaths for QtWebProcess - find -name "Makefile*" | xargs sed -i "s|-Wl,-rpath,${B}/lib||g" -} +SRC_URI += "file://fix-rpath.patch" diff --git a/recipes-qt/qt5/qtwebkit/fix-rpath.patch b/recipes-qt/qt5/qtwebkit/fix-rpath.patch new file mode 100644 index 0000000..5c20514 --- /dev/null +++ b/recipes-qt/qt5/qtwebkit/fix-rpath.patch @@ -0,0 +1,13 @@ +Index: qtwebkit-opensource-src-5.1.0/Tools/qmake/mkspecs/features/unix/default_post.prf +=================================================================== +--- qtwebkit-opensource-src-5.1.0.orig/Tools/qmake/mkspecs/features/unix/default_post.prf ++++ qtwebkit-opensource-src-5.1.0/Tools/qmake/mkspecs/features/unix/default_post.prf +@@ -32,8 +32,6 @@ linux-*g++* { + QMAKE_OBJECTIVE_CFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions + } + +-contains(TEMPLATE, app): CONFIG += rpath +- + isEqual(QT_ARCH,i386):CONFIG(debug, debug|release) { + # Make ld not cache the symbol tables of input files in memory to avoid memory exhaustion during the linking phase. + config_gnuld: QMAKE_LFLAGS += -Wl,--no-keep-memory