From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Slater, Joseph" <joe.slater@windriver.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: libxslt populate_sysroot dependencies
Date: Tue, 08 Apr 2014 22:33:31 +0100 [thread overview]
Message-ID: <1396992811.24597.116.camel@ted> (raw)
In-Reply-To: <007BD92917A2324FA403BCF9A464CF8455D2735A@ALA-MBA.corp.ad.wrs.com>
On Tue, 2014-04-08 at 21:21 +0000, Slater, Joseph wrote:
>
> > -----Original Message-----
> > From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> > Sent: Tuesday, April 08, 2014 9:58 AM
> > To: Slater, Joseph
> > Cc: openembedded-core@lists.openembedded.org
> > Subject: Re: [OE-core] libxslt populate_sysroot dependencies
> >
> > On Mon, 2014-04-07 at 23:25 +0000, Slater, Joseph wrote:
> > > I have attached a patch that makes sure libxml2-native is available
> > > when both it and libxslt-native
> > > are taken from sstate.
> > >
> > > The patch parallels one from a few weeks ago for pixbufcache, but the
> > > underlying problem might
> > > have been fixed since then. I looked for likely commits, and didn't
> > > see anything, so this patch might still be needed.
> >
> > This is an shlibs depends, right? sstate should handle those correctly.
> > If not, I'd like to see logs from a build where this doesn't happen on
> > master please?
>
> The bitbake I was using is a bit out of date, so I cloned a poky repo today
> and did several builds of vala-native pulling libxml2-native and libxslt-native
> from sstate.
>
> I've attached the logs (truncated and annotated). I think out_of_order.log shows that libxslt-native is
> put in sysroot before libraries from libxml2 that it needs.
>
> The in_order.log shows what happens after applying the populate sysroot [depends] patch.
>
> I've attached the patch, too.
Thanks, I think I've been staring at too many builds for too long and
have too many things cross threaded so I may have things confused,
however I'm going to have a go at explaining this.
The setscene dependencies typically work backwards. The system does this
deliberately since in general if you can install say bash
do_package_write_ipk, we can skip the toolchain and other tools since we
have the ipk we want. "bitbake <someimage> -c rootfs" is a good example
of that in action, the -c build default tends to be a bit greedy.
The only time this reversal would cause a problem is for native/cross
binaries *if* we execute them at setscene time. I know of two problem
cases:
a) gdk-pixbuf does this to create a correct index file within the
sysroot.
b) the adduser parts are used to setup user accounts before sstate
packages are extracted.
Those two cases have explicit setscene dependencies for those reasons. I
am not aware of xlstproc being run at setscene time by anything so it
doesn't need these dependencies.
Ok you say, what if it extracts libxslt-native but then fails to extract
libxml2-native?
Well, when the main build happens, nothing with a dependency on
libxsltproc will run until libxml2-native has been built.
So, your logs actually show what I would expect to happen, the question
is what behaviour do you see which isn't correct?
Cheers,
Richard
next prev parent reply other threads:[~2014-04-08 21:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 23:25 libxslt populate_sysroot dependencies Slater, Joseph
2014-04-08 16:57 ` Richard Purdie
2014-04-08 21:21 ` Slater, Joseph
2014-04-08 21:33 ` Richard Purdie [this message]
2014-04-08 22:56 ` Slater, Joseph
2014-04-09 8:57 ` Richard Purdie
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=1396992811.24597.116.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=joe.slater@windriver.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox