* [PATCH 0/1] Fix for failed builds when using Toaster
@ 2014-04-11 16:40 Paul Eggleton
2014-04-11 16:40 ` [PATCH 1/1] toaster.bbclass: do not fail on non-existent files Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2014-04-11 16:40 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 20625df0f88b1948bfc05be0d2cbdaa201c3b2f0:
linux-yocto/3.10: intel BSP configuration updates (2014-04-10 17:33:54 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/toaster-pkgdata
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/toaster-pkgdata
Alexandru DAMIAN (1):
toaster.bbclass: do not fail on non-existent files
meta/classes/toaster.bbclass | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--
1.9.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] toaster.bbclass: do not fail on non-existent files
2014-04-11 16:40 [PATCH 0/1] Fix for failed builds when using Toaster Paul Eggleton
@ 2014-04-11 16:40 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2014-04-11 16:40 UTC (permalink / raw)
To: openembedded-core
From: Alexandru DAMIAN <alexandru.damian@intel.com>
Toaster may look up inexistent file paths in the build history
for packages that have been referenced but not built.
This triggers a failure, and this patch recovers by deleting
the reference to the non-built packages.
[YOCTO #6063]
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/toaster.bbclass | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index cab5966..15cfbd8 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -273,7 +273,15 @@ python toaster_buildhistory_dump() {
for pname in images[target]:
if not pname in allpkgs:
- allpkgs[pname] = _toaster_load_pkgdatafile("%s/runtime-reverse/" % pkgdata_dir, pname)
+ try:
+ pkgdata = _toaster_load_pkgdatafile("%s/runtime-reverse/" % pkgdata_dir, pname)
+ except IOError as err:
+ if err.errno == 2:
+ # We expect this e.g. for RRECOMMENDS that are unsatisfied at runtime
+ continue
+ else:
+ raise
+ allpkgs[pname] = pkgdata
data = { 'pkgdata' : allpkgs, 'imgdata' : images }
--
1.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-11 16:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 16:40 [PATCH 0/1] Fix for failed builds when using Toaster Paul Eggleton
2014-04-11 16:40 ` [PATCH 1/1] toaster.bbclass: do not fail on non-existent files Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox