summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-10-07 23:04:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-10 16:44:32 +0100
commitd3a56585195f07363d7bbc59292ba24cc532b286 (patch)
tree7e727e247d63c8469b4bf83f95f606b8351bab3a /meta/classes
parenta2001341cfcac74768e59811689718ddc68b8744 (diff)
downloadpoky-d3a56585195f07363d7bbc59292ba24cc532b286.tar.gz
sstate.bbclass: split the too long line
The too long line would cause "git send-email" report errors: patch contains a line longer than 998 characters Though we can use "--no-validate" to force the send. (From OE-Core rev: e96723879eb3352a5bdea7b3e1a576edf9550e5a) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass23
1 files changed, 22 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index f0f1731bd8..9cd4590158 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -188,7 +188,28 @@ def sstate_install(ss, d):
188 if search_output != "": 188 if search_output != "":
189 match.append("Matched in %s" % search_output.rstrip()) 189 match.append("Matched in %s" % search_output.rstrip())
190 if match: 190 if match:
191 bb.error("The recipe %s is trying to install files into a shared area when those files already exist. Those files and their manifest location are:\n %s\nPlease verify which recipe should provide the above files.\nThe build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above." % (d.getVar('PN', True), "\n ".join(match))) 191 bb.error("The recipe %s is trying to install files into a shared" \
192 "area when those files already exist. Those files and their manifest" \
193 "location are:\n %s\nPlease verify which recipe should provide the" \
194 "above files.\nThe build has stopped as continuing in this scenario WILL" \
195 "break things, if not now, possibly in the future (we've seen builds fail" \
196 "several months later). If the system knew how to recover from this" \
197 "automatically it would however there are several different scenarios" \
198 "which can result in this and we don't know which one this is. It may be" \
199 "you have switched providers of something like virtual/kernel (e.g. from" \
200 "linux-yocto to linux-yocto-dev), in that case you need to execute the" \
201 "clean task for both recipes and it will resolve this error. It may be" \
202 "you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning" \
203 "those recipes should again resolve this error however switching" \
204 "DISTRO_FEATURES on an existing build directory is not supported, you" \
205 "should really clean out tmp and rebuild (reusing sstate should be safe)." \
206 "It could be the overlapping files detected are harmless in which case" \
207 "adding them to SSTATE_DUPWHITELIST may be the correct solution. It could" \
208 "also be your build is including two different conflicting versions of" \
209 "things (e.g. bluez 4 and bluez 5 and the correct solution for that would" \
210 "be to resolve the conflict. If in doubt, please ask on the mailing list," \
211 "sharing the error and filelist above." % \
212 (d.getVar('PN', True), "\n ".join(match)))
192 bb.fatal("If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.") 213 bb.fatal("If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.")
193 214
194 # Write out the manifest 215 # Write out the manifest