On Thu, 2014-12-11 at 14:56 +0000, Richard Purdie wrote:
> On Thu, 2014-12-11 at 13:58 +0000, Richard Purdie wrote:
> > On Thu, 2014-12-11 at 03:31 -0500, Bruce Ashfield wrote:
> > > On Wed, Dec 10, 2014 at 10:02 AM, Burton, Ross <ross.bur...@intel.com> 
> > > wrote:
> > > >
> > > > On 10 December 2014 at 14:16, Bruce Ashfield 
> > > > <bruce.ashfi...@windriver.com>
> > > > wrote:
> > > >>
> > > >> The following changes since commit
> > > >> 88dfcbf149dda89277e58ae4ec3a87500624cfff:
> > > >>
> > > >>   kernel-yocto: make sure git tags get dereferenced properly in 
> > > >> do_patch()
> > > >> (2014-12-10 08:12:56 -0500)
> > > >>
> > > >> are available in the git repository at:
> > > >>
> > > >>   git://git.pokylinux.org/poky-contrib HEAD
> > > >
> > > >
> > > > I wonder what happened here!
> > > 
> > > @#!$#@$ the script is insane.
> > > 
> > > >
> > > >>
> > > >> for you to fetch changes up to 
> > > >> 4be985be419f06f18c735d72ac4a4d00fea71dd8:
> > > >>
> > > >>   linux-yocto/3.14: update to 3.14.26, integrate ltsi and -rt updates
> > > >> (2014-12-10 08:38:49 -0500)
> > > >
> > > >
> > > > That's zedd/kernel-updates, right?
> > > >
> > > 
> > > Yah. Sorry about the confusion,
> > 
> > I've been experimenting, the upgrades look good but we have a problem
> > with the new kernel class changes.
> > 
> > The issue is that if you have an existing TMPDIR, the build will do "bad
> > things".
> > 
> > Basically, there is usually an existing sstate manifest file which
> > covers the kernel source in the sysroot. do_configure will trigger
> > cleaning of that manifest, a large chunk of the source disappears and
> > then the build understandably fails.
> > 
> > Whilst I can say what is happening, I can't say how we fix it at this
> > point :/.
> > 
> > I would like people to test these patches, we'd better hold off merging
> > until we can get this issue figured out. Its part of a wider problem
> > with "stale" data in the sysroot which we really need to figure out but
> > its not been solved yet as its a  very hard problem for which we don't
> > have a solution :(.
> 
> After quite some thinking, I've come up with the patch below which
> should at least allow us to get this patch series merged. Obviously I
> need to split this up and send it out properly with a decent commit log
> but I thought I'd share it sooner than later.
> 

I tried this on an old romley build and got this:

http://pastebin.com/WetCnesw

I then switched to nuc using the same tmpdir and that kernel built fine.

Note that the romley build uses the 3.10 kernel and the nuc build uses
the 3.17 kernel - I don't know if that could account for the difference,
or if it was more due to the fact that I did the romley build first and
then the nuc, and if I'd done it in the reverse order it would have been
the nuc failing instead.  Or something else...

Tom

> Cheers,
> 
> Richard
> 
> 
> From 2495650e76bdee971645b3049b6e65307e506e09 Mon Sep 17 00:00:00 2001
> From: Richard Purdie <richard.pur...@linuxfoundation.org>
> Date: Thu, 11 Dec 2014 14:36:05 +0000
> Subject: sanity: TMPDIR ABI change for kernel process
> 
> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org>
> 
> diff --git a/meta-yocto/conf/distro/poky.conf 
> b/meta-yocto/conf/distro/poky.conf
> index 72db36d..bea8e04 100644
> --- a/meta-yocto/conf/distro/poky.conf
> +++ b/meta-yocto/conf/distro/poky.conf
> @@ -94,7 +94,7 @@ BB_SIGNATURE_HANDLER ?= 'OEBasicHash'
>  # that breaks the format and have been previously discussed on the mailing 
> list 
>  # with general agreement from the core team.
>  #
> -OELAYOUT_ABI = "8"
> +OELAYOUT_ABI = "10"
>  
>  # add poky sanity bbclass
>  INHERIT += "poky-sanity"
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 5be5efb..71fd2e9 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -519,6 +519,16 @@ def sanity_handle_abichanges(status, d):
>              status.addresult("Your configuration is using stamp files 
> including the sstate hash but your build directory was built with stamp files 
> that do not include this.\nTo continue, either rebuild or switch back to the 
> OEBasic signature handler with BB_SIGNATURE_HANDLER = 'OEBasic'.\n")
>          elif (abi != current_abi and current_abi == "9"):
>              status.addresult("The layout of the TMPDIR STAMPS directory has 
> changed. Please clean out TMPDIR and rebuild (sstate will be still be valid 
> and reused)\n")
> +        elif (abi != current_abi and current_abi == "10" and (abi == "8" or 
> abi == "9")):
> +            bb.note("Converting staging layout from version 8/9 to layout 
> version 10")
> +            cmd = d.expand("grep -l sysroot-providers/virtual_kernel 
> ${SSTATE_MANIFESTS}/*")
> +            ret, result = oe.utils.getstatusoutput(cmd)
> +            result = result.split()
> +            for f in result:
> +                bb.note("Uninstalling manifest file %s" % f)
> +                sstate_clean_manifest(f, d)
> +            with open(abifile, "w") as f:
> +                f.write(current_abi)
>          elif (abi != current_abi):
>              # Code to convert from one ABI to another could go here if 
> possible.
>              status.addresult("Error, TMPDIR has changed its layout version 
> number (%s to %s) and you need to either rebuild, revert or adjust it at your 
> own risk.\n" % (abi, current_abi))
> diff --git a/meta/conf/abi_version.conf b/meta/conf/abi_version.conf
> index e8cf9a3..2867850 100644
> --- a/meta/conf/abi_version.conf
> +++ b/meta/conf/abi_version.conf
> @@ -4,4 +4,4 @@
>  # that breaks the format and have been previously discussed on the mailing 
> list 
>  # with general agreement from the core team.
>  #
> -OELAYOUT_ABI = "9"
> +OELAYOUT_ABI = "10"
> 
> 


-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to