Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
@ 2012-06-22 14:06 Richard Purdie
  2012-06-22 14:18 ` Khem Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Richard Purdie @ 2012-06-22 14:06 UTC (permalink / raw)
  To: openembedded-core

This switches to use the hash based signature generatior and update
layout_abi to match stamp file layout changes.

Angstrom, SHR and Poky did this a while ago. This brings the OE-Core defaults
into line with what is the best common practise at this point. Its been
discussed on the mailing lists and by the TSC at length, this just completes
the transition.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/conf/abi_version.conf |    2 +-
 meta/conf/bitbake.conf     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/conf/abi_version.conf b/meta/conf/abi_version.conf
index f2919e5..83b668a 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 = "7"
+OELAYOUT_ABI = "8"
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index b6fbc7a..fbc0ca2 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -748,7 +748,7 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
 
 # Setup our default hash policy
-BB_SIGNATURE_HANDLER ?= "OEBasic"
+BB_SIGNATURE_HANDLER ?= "OEBasicHash"
 BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST PRSERV_PORT PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE"
 BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SESSION_MANAGER DBUS_SESSION_BUS_ADDRESS SSH_AGENT_PID XDG_SESSION_COOKIE SSH_AUTH_SOCK XAUTHORITY PSEUDO_BUILD"
 BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc defaultval _append _prepend deps depends lockfiles type vardepsexclude \





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:06 [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator Richard Purdie
@ 2012-06-22 14:18 ` Khem Raj
  2012-06-22 14:24 ` Enrico Scholz
  2012-06-22 14:31 ` Martin Jansa
  2 siblings, 0 replies; 8+ messages in thread
From: Khem Raj @ 2012-06-22 14:18 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, Jun 22, 2012 at 7:06 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> This switches to use the hash based signature generatior and update
> layout_abi to match stamp file layout changes.
>
> Angstrom, SHR and Poky did this a while ago. This brings the OE-Core defaults
> into line with what is the best common practise at this point. Its been
> discussed on the mailing lists and by the TSC at length, this just completes
> the transition.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

thanks looks good


> ---
>  meta/conf/abi_version.conf |    2 +-
>  meta/conf/bitbake.conf     |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/conf/abi_version.conf b/meta/conf/abi_version.conf
> index f2919e5..83b668a 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 = "7"
> +OELAYOUT_ABI = "8"
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index b6fbc7a..fbc0ca2 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -748,7 +748,7 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
>  BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
>
>  # Setup our default hash policy
> -BB_SIGNATURE_HANDLER ?= "OEBasic"
> +BB_SIGNATURE_HANDLER ?= "OEBasicHash"
>  BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST PRSERV_PORT PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE"
>  BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SESSION_MANAGER DBUS_SESSION_BUS_ADDRESS SSH_AGENT_PID XDG_SESSION_COOKIE SSH_AUTH_SOCK XAUTHORITY PSEUDO_BUILD"
>  BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc defaultval _append _prepend deps depends lockfiles type vardepsexclude \
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:06 [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator Richard Purdie
  2012-06-22 14:18 ` Khem Raj
@ 2012-06-22 14:24 ` Enrico Scholz
  2012-06-22 14:26   ` Khem Raj
  2012-06-22 14:42   ` Richard Purdie
  2012-06-22 14:31 ` Martin Jansa
  2 siblings, 2 replies; 8+ messages in thread
From: Enrico Scholz @ 2012-06-22 14:24 UTC (permalink / raw)
  To: openembedded-core

Richard Purdie
<richard.purdie-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
writes:

> This switches to use the hash based signature generatior and update
> layout_abi to match stamp file layout changes.

Has this really been tested? I played a little bit with it and it was
very painful when whole distribution will be rebuilt due to a minor
change in an early package.

There are some subtle bugs in the hash generation too (e.g. bitbake's
get_file_depends() result is used to calculate a hash over a set() which
is filled nondeterministically when BB_NUMBER_THREADS>1) which cause
random rebuilds too.



Enrico



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:24 ` Enrico Scholz
@ 2012-06-22 14:26   ` Khem Raj
  2012-06-22 14:42   ` Richard Purdie
  1 sibling, 0 replies; 8+ messages in thread
From: Khem Raj @ 2012-06-22 14:26 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, Jun 22, 2012 at 7:24 AM, Enrico Scholz
<enrico.scholz@sigma-chemnitz.de> wrote:
> Has this really been tested?

Angstrom. SHR, yocto has it on by default for months now. No one
reported issues thus far.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:06 [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator Richard Purdie
  2012-06-22 14:18 ` Khem Raj
  2012-06-22 14:24 ` Enrico Scholz
@ 2012-06-22 14:31 ` Martin Jansa
  2012-06-22 14:40   ` Richard Purdie
  2 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2012-06-22 14:31 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2583 bytes --]

On Fri, Jun 22, 2012 at 03:06:38PM +0100, Richard Purdie wrote:
> This switches to use the hash based signature generatior and update
> layout_abi to match stamp file layout changes.
> 
> Angstrom, SHR and Poky did this a while ago. This brings the OE-Core defaults

SHR didn't (except my testing), but I'm fine with this change.. I'll override it 
in back to OEBasic in meta-shr layer (at least until we get faster
official feed builder..).

Cheers,

> into line with what is the best common practise at this point. Its been
> discussed on the mailing lists and by the TSC at length, this just completes
> the transition.
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  meta/conf/abi_version.conf |    2 +-
>  meta/conf/bitbake.conf     |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/conf/abi_version.conf b/meta/conf/abi_version.conf
> index f2919e5..83b668a 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 = "7"
> +OELAYOUT_ABI = "8"
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index b6fbc7a..fbc0ca2 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -748,7 +748,7 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
>  BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
>  
>  # Setup our default hash policy
> -BB_SIGNATURE_HANDLER ?= "OEBasic"
> +BB_SIGNATURE_HANDLER ?= "OEBasicHash"
>  BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST PRSERV_PORT PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE"
>  BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SESSION_MANAGER DBUS_SESSION_BUS_ADDRESS SSH_AGENT_PID XDG_SESSION_COOKIE SSH_AUTH_SOCK XAUTHORITY PSEUDO_BUILD"
>  BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc defaultval _append _prepend deps depends lockfiles type vardepsexclude \
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:31 ` Martin Jansa
@ 2012-06-22 14:40   ` Richard Purdie
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2012-06-22 14:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, 2012-06-22 at 16:31 +0200, Martin Jansa wrote:
> On Fri, Jun 22, 2012 at 03:06:38PM +0100, Richard Purdie wrote:
> > This switches to use the hash based signature generatior and update
> > layout_abi to match stamp file layout changes.
> > 
> > Angstrom, SHR and Poky did this a while ago. This brings the OE-Core defaults
> 
> SHR didn't (except my testing), but I'm fine with this change.. I'll override it 
> in back to OEBasic in meta-shr layer (at least until we get faster
> official feed builder..).

Sorry, I thought you had switched, my mistake. I'll fix that commit
message before merging.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:24 ` Enrico Scholz
  2012-06-22 14:26   ` Khem Raj
@ 2012-06-22 14:42   ` Richard Purdie
  2012-06-22 15:11     ` Enrico Scholz
  1 sibling, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2012-06-22 14:42 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, 2012-06-22 at 16:24 +0200, Enrico Scholz wrote:
> Richard Purdie
> <richard.purdie-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
> writes:
> 
> > This switches to use the hash based signature generatior and update
> > layout_abi to match stamp file layout changes.
> 
> Has this really been tested?

Its the default in Poky and Angstrom. It was the default for the Yocto
Project 1.2 release too. So yes, it has seen testing.

>  I played a little bit with it and it was
> very painful when whole distribution will be rebuilt due to a minor
> change in an early package.
> 
> There are some subtle bugs in the hash generation too (e.g. bitbake's
> get_file_depends() result is used to calculate a hash over a set() which
> is filled nondeterministically when BB_NUMBER_THREADS>1) which cause
> random rebuilds too.

Bug reports on issues like this would be good, we can't fix a problem if
we don't know about it.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator
  2012-06-22 14:42   ` Richard Purdie
@ 2012-06-22 15:11     ` Enrico Scholz
  0 siblings, 0 replies; 8+ messages in thread
From: Enrico Scholz @ 2012-06-22 15:11 UTC (permalink / raw)
  To: openembedded-core

Richard Purdie
<richard.purdie-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
writes:

>> There are some subtle bugs in the hash generation too (e.g. bitbake's
>> get_file_depends() result is used to calculate a hash over a set() which
>> is filled nondeterministically when BB_NUMBER_THREADS>1) which cause
>> random rebuilds too.
>
> Bug reports on issues like this would be good, we can't fix a problem if
> we don't know about it.

http://lists.linuxtogo.org/pipermail/bitbake-devel/2012-May/002951.html


Enrico



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-22 15:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 14:06 [PATCH] bitbake.conf/abi_version.conf: Update to use BasicHash signature generator Richard Purdie
2012-06-22 14:18 ` Khem Raj
2012-06-22 14:24 ` Enrico Scholz
2012-06-22 14:26   ` Khem Raj
2012-06-22 14:42   ` Richard Purdie
2012-06-22 15:11     ` Enrico Scholz
2012-06-22 14:31 ` Martin Jansa
2012-06-22 14:40   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox