From: Martin Jansa <martin.jansa@gmail.com>
To: "Erik Botö" <erik.boto@pelagicore.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
Otavio Salvador <otavio.salvador@gmail.com>
Subject: Re: [DYLAN] RPATH issue with qt5's qtwebkit
Date: Sat, 24 Aug 2013 16:11:07 +0200 [thread overview]
Message-ID: <20130824141107.GG3544@jama> (raw)
In-Reply-To: <CA+AhUGz7SqxrfrmfDk+421viOUm3K=AbO-rAZF1+YqW7B=YB2A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3064 bytes --]
On Sat, Aug 24, 2013 at 03:06:21PM +0200, Erik Botö wrote:
> On Sat, Aug 24, 2013 at 3:36 AM, Trevor Woerner
> <trevor.woerner@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.
Yes I think everyone is seeing it, but in many distro configs bad RPATH
is only QA warning not error (that's why I was partially ignoring it
until now, concentrating on other issues).
You can see do_configure_append in qtwebkit.inc which is removing bad
rpath from qmake generated Makefile, this sometimes doesn't work, from
similar Makefile issue in qtjsondb I know that "sometimes" Makefile
generated in do_configure is regenerated later in do_compile or
do_install task, I'm not sure yet why, but that's what breaks similar
hack in qtjsondb_git.bb:do_configure_append().
Of course the real fix for both issues would be to fix .pri/.prf files
to prevent incorrect Makefile to be generated at all.
Regards,
>
> Cheers
> Erik
>
>
> >
> > Best regards,
> > Trevor
> >
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2013-08-24 14:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-24 1:36 [DYLAN] RPATH issue with qt5's qtwebkit Trevor Woerner
2013-08-24 8:48 ` Richard Purdie
2013-08-24 13:06 ` Erik Botö
2013-08-24 14:11 ` Martin Jansa [this message]
2013-09-17 1:34 ` Trevor Woerner
2013-08-24 16:03 ` Richard Purdie
2013-08-26 10:51 ` Belisko Marek
2013-08-26 11:11 ` Fathi Boudra
2013-09-17 1:23 ` Trevor Woerner
2013-09-18 21:52 ` Fathi Boudra
2013-09-19 1:36 ` Trevor Woerner
2013-09-24 16:04 ` Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130824141107.GG3544@jama \
--to=martin.jansa@gmail.com \
--cc=erik.boto@pelagicore.com \
--cc=otavio.salvador@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.