Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST
@ 2014-03-25  2:18 Robert Yang
  2014-03-25  2:18 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2014-03-25  2:18 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 09419cfb94b420628841bea8545e6a444856c3d5:

  local.conf.sample.extended: update it for the archiver (2014-03-25 09:47:08 +0800)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/stamps_clean
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/stamps_clean

Robert Yang (1):
  meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST

 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.8.3.1



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

* [PATCH 1/1] meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST
  2014-03-25  2:18 [PATCH 0/1] meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST Robert Yang
@ 2014-03-25  2:18 ` Robert Yang
  2014-03-25  2:20   ` Chris Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2014-03-25  2:18 UTC (permalink / raw)
  To: openembedded-core

The problem is that do_configure.sigdata depends on STAMPS_DIR because:

do_configure -> STAMPCLEAN -> STAMPS_DIR

this will make the sigdata generated by "STAMPS_DIR=/tmp/stps bitbake -S
recipe" doesn't match the ones in our build dir, but it should. We can
add STAMPS_DIR or STAMPCLEAN to BB_HASHBASE_WHITELIST to fix the
problem, but we can't add  STAMPS_DIR since once it is in
BB_HASHBASE_WHITELIST, the "STAMPS_DIR=/tmp/stps bitbake -S recipe"
would not run again.

[YOCTO $6031]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 097905c..fc528a4 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -768,7 +768,7 @@ BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR \
     USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \
     PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \
     CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_DISABLE LICENSE_PATH SDKPKGSUFFIX \
-    WARN_QA ERROR_QA WORKDIR"
+    WARN_QA ERROR_QA WORKDIR STAMPCLEAN"
 BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SSH_AGENT_PID \
     SSH_AUTH_SOCK PSEUDO_BUILD BB_ENV_EXTRAWHITE DISABLE_SANITY_CHECKS \
     PARALLEL_MAKE BB_NUMBER_THREADS BB_ORIGENV BB_INVALIDCONF BBINCLUDED"
-- 
1.8.3.1



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

* Re: [PATCH 1/1] meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST
  2014-03-25  2:18 ` [PATCH 1/1] " Robert Yang
@ 2014-03-25  2:20   ` Chris Larson
  2014-03-25  3:18     ` Robert Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Larson @ 2014-03-25  2:20 UTC (permalink / raw)
  To: Robert Yang; +Cc: Patches and discussions about the oe-core layer

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

On Mon, Mar 24, 2014 at 7:18 PM, Robert Yang <liezhi.yang@windriver.com>wrote:

> The problem is that do_configure.sigdata depends on STAMPS_DIR because:
>
> do_configure -> STAMPCLEAN -> STAMPS_DIR
>
> this will make the sigdata generated by "STAMPS_DIR=/tmp/stps bitbake -S
> recipe" doesn't match the ones in our build dir, but it should. We can
> add STAMPS_DIR or STAMPCLEAN to BB_HASHBASE_WHITELIST to fix the
> problem, but we can't add  STAMPS_DIR since once it is in
> BB_HASHBASE_WHITELIST, the "STAMPS_DIR=/tmp/stps bitbake -S recipe"
> would not run again.
>
> [YOCTO $6031]
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>

Oh good, I was hoping someone would dig into this, hadn't had the time, but
kept noticing STAMPS_DIR was leaking in, in the bitbake-whatchanged output
:) Nice work.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1585 bytes --]

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

* Re: [PATCH 1/1] meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST
  2014-03-25  2:20   ` Chris Larson
@ 2014-03-25  3:18     ` Robert Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2014-03-25  3:18 UTC (permalink / raw)
  To: Chris Larson, Purdie, Richard
  Cc: Patches and discussions about the oe-core layer


On 03/25/2014 10:20 AM, Chris Larson wrote:
> On Mon, Mar 24, 2014 at 7:18 PM, Robert Yang <liezhi.yang@windriver.com>wrote:
>
>> The problem is that do_configure.sigdata depends on STAMPS_DIR because:
>>
>> do_configure -> STAMPCLEAN -> STAMPS_DIR
>>
>> this will make the sigdata generated by "STAMPS_DIR=/tmp/stps bitbake -S
>> recipe" doesn't match the ones in our build dir, but it should. We can
>> add STAMPS_DIR or STAMPCLEAN to BB_HASHBASE_WHITELIST to fix the
>> problem, but we can't add  STAMPS_DIR since once it is in
>> BB_HASHBASE_WHITELIST, the "STAMPS_DIR=/tmp/stps bitbake -S recipe"
>> would not run again.
>>
>> [YOCTO $6031]
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>
>
> Oh good, I was hoping someone would dig into this, hadn't had the time, but
> kept noticing STAMPS_DIR was leaking in, in the bitbake-whatchanged output
> :) Nice work.
>

Thanks, the bitbake-whatchanged will work with another base-files fix now.
The left problem is that:

$ bitbake-whatchanged core-image-sato-sdk
=== Newly added tasks: (3 tasks)
   core-image-sato-sdk: do_compile do_configure do_install

Nothing should be run in fact, the root cause is that "bitbake -S recipe"
generates the sigdata file for all the tasks including noexec one, but
"bitbake recipe" doesn't generate stamps for do_populate_sysroot's
dependencies tasks when:

do_populate_sysroot[noexec] = "1"

We also have these set for a image recipe:
[snip]
do_install[noexec] = "1"
do_compile[noexec] = "1"
do_configure[noexec] = "1"
[snip]

If we remove 'do_populate_sysroot[noexec] = "1"' and keep the others,
then "bitbake recipe" will generate stamps for all the tasks including
do_install, do_compile and do_configure though they have noexec set.

I've tried to dig lib/bb/build.py, lib/bb/siggen.py and lib/bb/runqueue.py,
but didn't figure it out.

For bitbake-whatchanged, maybe we can enhance the "bitbake -S" in YP 1.7
to do the similar thing since the later one can handle the sstate tasks
(and covered task) better.

// Robert



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

end of thread, other threads:[~2014-03-25  3:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25  2:18 [PATCH 0/1] meta/conf/bitbake.conf: add STAMPCLEAN to BB_HASHBASE_WHITELIST Robert Yang
2014-03-25  2:18 ` [PATCH 1/1] " Robert Yang
2014-03-25  2:20   ` Chris Larson
2014-03-25  3:18     ` Robert Yang

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