| Summary: | sanity.bbclass sometimes failing to find saved_tmpdir when tmp-eglibc was deleted | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Martin Jansa <Martin.Jansa> |
| Component: | configuration | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | sgw |
| Version: | unspecified | ||
| Target Milestone: | 1.4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Martin Jansa
2012-12-25 09:29:17 UTC
Martin, can you see if this resolves it:
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 0ffa52d..8ca0b68 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -571,6 +571,7 @@ def check_sanity(sanity_data):
messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
else:
f = file(checkfile, "w")
+ bb.utils.mkdirhier(tmpdir)
f.write(tmpdir)
f.close()
(In reply to comment #1) > Martin, can you see if this resolves it: > > diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass > index 0ffa52d..8ca0b68 100644 > --- a/meta/classes/sanity.bbclass > +++ b/meta/classes/sanity.bbclass > @@ -571,6 +571,7 @@ def check_sanity(sanity_data): > messages = messages + "Error, TMPDIR has changed location. You > need to either move it back to %s or rebuild\n" % saved_tmpdir > else: > f = file(checkfile, "w") > + bb.utils.mkdirhier(tmpdir) > f.write(tmpdir) > f.close() Fails the same. Works fine if you move that mkdirhier above 'f = file(checkfile, "w")'. Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=932a4cdf4ba4368a2f9e066ed086d08a449f92ec Mask as resolved |