Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] bbclass/sstate: only allowed sstate-cache objects are allowed in a build (read-only sstate-cache)
@ 2014-08-21  2:36 Hongxu Jia
  2014-08-21  2:36 ` [PATCH 1/1] " Hongxu Jia
  0 siblings, 1 reply; 6+ messages in thread
From: Hongxu Jia @ 2014-08-21  2:36 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

Test steps:

1) Create a sstate cache for testing
$ bitbake db

2) Add gzip to SSTATECACHE_WHITELIST, it enabled read-only sstate-cache,
vim local.conf
...
SSTATECACHE_WHITELIST = 'gzip'
...

3) Remove tmp dir and build db from sstate-cache succeed
$ mv tmp tmp-back && bitbake db

4) tweak db's do_configure task by adding comments
--- a/meta/recipes-support/db/db_6.0.30.bb
+++ b/meta/recipes-support/db/db_6.0.30.bb
@@ -27,6 +27,8 @@ LIC_FILES_CHKSUM = "file://../LICENSE;md5=1ec8b0b17cc31513fe35ab10716f8490"
@@ -82,6 +84,7 @@ do_configure() {
        gnu-configize --force ${S}
        export STRIP="true"
        oe_runconf
+       echo "hello"
 }

5) build db and there is a build failure
$ bitbake db

6) clean db and there is a clean failure
bitbake db -ccleansstate

7) Append the missing recipe's PN to SSTATECACHE_WHITELIST
vim local.conf
...
SSTATECACHE_WHITELIST = 'gzip db rpm-native gcc-runtime eglibc linux-libc-headers libgcc'
...

8) Build db and clean db succeed
$ bitbake db && bitbake db -ccleansstate

//Hongxu

The following changes since commit 34436672f3ef4915e7526770a0fa8dcff328f93d:

  bitbake: runqueue.py: Fix typoes/grammar in comments. (2014-08-19 20:41:26 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/readonly-sstatecache
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/readonly-sstatecache

Hongxu Jia (1):
  bbclass/sstate: only allowed sstate-cache objects are allowed in a
    build (read-only sstate-cache)

 meta/classes/sstate.bbclass | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

-- 
1.9.1



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

end of thread, other threads:[~2014-09-09 14:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21  2:36 [PATCH 0/1] bbclass/sstate: only allowed sstate-cache objects are allowed in a build (read-only sstate-cache) Hongxu Jia
2014-08-21  2:36 ` [PATCH 1/1] " Hongxu Jia
2014-09-05  9:42   ` Richard Purdie
2014-09-05 14:05     ` Mark Hatle
2014-09-07  9:24       ` Richard Purdie
2014-09-09 14:49         ` Mark Hatle

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