All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [v2 PATCH 0/9] kernel: version updates
Date: Thu, 11 Dec 2014 10:26:28 -0500	[thread overview]
Message-ID: <CADkTA4MHJm2RpHxSLy3cfVQEKfhMp6WBpJMWL28NByt0qnY4NA@mail.gmail.com> (raw)
In-Reply-To: <1418309772.22903.74.camel@linuxfoundation.org>

On Thu, Dec 11, 2014 at 9:56 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> 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.burton@intel.com> wrote:
>> > >
>> > > On 10 December 2014 at 14:16, Bruce Ashfield <bruce.ashfield@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.

Nice. I'll stack it on here and let it sit through my kernel builds and jumping
between versions .. that tends to break what can be broken.

On a related note, I have a one line update to a patch that fixes the qemuppc
build (missing directory).

Do we want to leave the series as is, and I can send it as an incremental
patch, or would you rather it squashed and the branches updated ?

Bruce

>
> Cheers,
>
> Richard
>
>
> From 2495650e76bdee971645b3049b6e65307e506e09 Mon Sep 17 00:00:00 2001
> From: Richard Purdie <richard.purdie@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.purdie@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"
>
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


  reply	other threads:[~2014-12-11 15:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10 14:16 [v2 PATCH 0/9] kernel: version updates Bruce Ashfield
2014-12-10 14:16 ` [PATCH 1/9] linux-yocto/3.17: update to v3.17.1 Bruce Ashfield
2014-12-10 14:16 ` [PATCH 2/9] linux-libc-headers: update to 3.17 Bruce Ashfield
2014-12-18 17:13   ` Burton, Ross
2014-12-18 17:39     ` Bruce Ashfield
2014-12-18 18:41       ` Bruce Ashfield
2014-12-18 20:46       ` Burton, Ross
2014-12-18 23:48         ` Burton, Ross
2014-12-10 14:16 ` [PATCH 3/9] linux-yocto/3.17: update to v3.17.2 Bruce Ashfield
2014-12-10 14:16 ` [PATCH 4/9] linux-yocto/3.10: update to v3.10.59 Bruce Ashfield
2014-12-10 14:16 ` [PATCH 5/9] linux-yocto/3.14: update to v3.14.24 Bruce Ashfield
2014-12-10 14:16 ` [PATCH 6/9] lttng-modules: fix mm_compaction_isolate_template build Bruce Ashfield
2014-12-10 14:16 ` [PATCH 7/9] linux-yocto/3.17: update to v3.17.6 Bruce Ashfield
2014-12-10 14:16 ` [PATCH 8/9] linux-yocto/3.10: update to v3.10.62 Bruce Ashfield
2014-12-10 14:16 ` [PATCH 9/9] linux-yocto/3.14: update to 3.14.26, integrate ltsi and -rt updates Bruce Ashfield
2014-12-10 15:02 ` [v2 PATCH 0/9] kernel: version updates Burton, Ross
2014-12-11  8:31   ` Bruce Ashfield
2014-12-11 13:58     ` Richard Purdie
2014-12-11 14:56       ` Richard Purdie
2014-12-11 15:26         ` Bruce Ashfield [this message]
2014-12-11 15:35           ` Burton, Ross
2014-12-11 21:21             ` Bruce Ashfield
2014-12-11 16:45         ` Tom Zanussi
2014-12-11 19:54           ` Tom Zanussi

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=CADkTA4MHJm2RpHxSLy3cfVQEKfhMp6WBpJMWL28NByt0qnY4NA@mail.gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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.