| Summary: | When B != S, set S as read-only | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ross Burton <ross.burton> |
| Component: | core | Assignee: | Saul Wold <sgw> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Low | CC: | mcrapet, meta.mr.watcher, meta.watcher, richard.purdie |
| Version: | 1.4 | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Ross Burton
2013-03-04 12:07:03 UTC
This is quite tricky.
Adding:
<code>
check_separate_build() {
if [ "${S}" != "${B}" ]; then
bbnote 'Separate build: chmod a-w ${S}'
chmod a-w ${S}
fi
}
do_configure[prefuncs] = "check_separate_build"
</cpde>
to base.bbclass is easy, but how to revertit ? do_clean will fail because of Permissions. How to detect that do_configure failed?
To be honest I'm not sure if this is even possible, making the assumption that *nothing* in the build will touch $S is tough. As the creater of this bug let's say I was over-enthusiastic and close it. |