[yocto] [DYLAN] RPATH issue with qt5's qtwebkit

Belisko Marek marek.belisko at gmail.com
Mon Aug 26 03:51:52 PDT 2013


Hi All,

On Sat, Aug 24, 2013 at 6:03 PM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Sat, 2013-08-24 at 15:06 +0200, Erik Botö wrote:
>> On Sat, Aug 24, 2013 at 3:36 AM, Trevor Woerner
>> <trevor.woerner at linaro.org> wrote:
>> > Hi,
>> >
>> > When I try to include "qtwebkit" in my image from the "dylan" branch I end
>> > up
>> > with the following QA do_package_qa error [note that this does not happen
>> > with "master"]:
>> >
>> > ERROR: QA Issue: package qtwebkit contains bad RPATH
>> > /home/trevor/build/yocto/tmp/dylan/work/armv5te-poky-linux-gnueabi/qtwebkit/5.0.2-r0.0/build/lib
>> > in file
>> > /home/trevor/build/yocto/tmp/dylan/work/armv5te-poky-linux-gnueabi/qtwebkit/5.0.2-r0.0/packages-split/qtwebkit/usr/lib/qt5/libexec/QtWebProcess
>> >
>> > And the QA test is correct. When I "objdump -x" this binary I get:
>> >
>> > Dynamic Section:
>> >   NEEDED               libQt5WebKitWidgets.so.5
>> >   NEEDED               libQt5WebKit.so.5
>> >   NEEDED               libQt5Widgets.so.5
>> >   NEEDED               libQt5Core.so.5
>> >   NEEDED               libstdc++.so.6
>> >   NEEDED               libc.so.6
>> >   RPATH
>> > /home/trevor/build/yocto/tmp/rdk/work/armv5te-rdk-linux-gnueabi/qtwebkit/5.0.2-r0.0/build/lib
>> >
>> > Can anyone suggest any fixes or patches? Note I'm using 5.0.2.
>>
>> Try adding a .bbappend with the following content:
>>
>> #################
>> DEPENDS += "chrpath-replacement-native"
>> EXTRANATIVEPATH += "chrpath-native"
>>
>> PRINC := "${@int(PRINC) + 1}"
>>
>> do_install_append() {
>>         # Remove rpath from the offending binaries
>>         chrpath -d ${D}${OE_QMAKE_PATH_LIBEXECS}/QtWebProcess
>> }
>> #################
>>
>> That should do it.
>>
>> Is this something everyone building qtwebkit is seeing? I had just
>> assumed that it had something to do with other changes I do to
>> meta-qt5, but if it affect everyone I guess it could be done in
>> meta-qt5 instead of local bbappends.
>
> The above is a workaround, the proper fix is to track down why this is
> making its way in there in the first place and fix the problem at
> source.
Just my 2 cents.
I have similar issue some time ago and I fix it following way (it's
also workaround and maybe help somebody to find correct solution):
---
 Tools/qmake/mkspecs/features/rpath.prf |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Tools/qmake/mkspecs/features/rpath.prf
b/Tools/qmake/mkspecs/features/rpath.prf
index 8dbc42f..487f12f 100644
--- a/Tools/qmake/mkspecs/features/rpath.prf
+++ b/Tools/qmake/mkspecs/features/rpath.prf
@@ -9,13 +9,13 @@ equals(ROOT_BUILD_DIR, $$dirname(DESTDIR)):
RPATHDIR_RELATIVE_TO_DESTDIR = ../li
 linux-*:!isEmpty(RPATHDIR_RELATIVE_TO_DESTDIR) {
     # Do the rpath by hand since it's not possible to use ORIGIN in
QMAKE_RPATHDIR
     # this expands to $ORIGIN (after qmake and make), it does NOT
read a qmake var.
-    QMAKE_RPATHDIR = \$\$ORIGIN/$${RPATHDIR_RELATIVE_TO_DESTDIR}
$${QMAKE_RPATHDIR}
+#    QMAKE_RPATHDIR = \$\$ORIGIN/$${RPATHDIR_RELATIVE_TO_DESTDIR}
$${QMAKE_RPATHDIR}
     RPATH = $$join(QMAKE_RPATHDIR, ":")

-    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${RPATH}\'
+#    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${RPATH}\'
     QMAKE_RPATHDIR =
 } else {
-    QMAKE_RPATHDIR = $${ROOT_BUILD_DIR}/lib $${QMAKE_RPATHDIR}
+#    QMAKE_RPATHDIR = $${ROOT_BUILD_DIR}/lib $${QMAKE_RPATHDIR}
 }

 # FIXME: For Qt5 this will only give correct rpath for the tools that
come with WebKit
-- 
1.7.9.5
>
> Cheers,
>
> Richard
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com



More information about the yocto mailing list