diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-15 13:49:13 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2021-04-21 03:52:04 -1000 |
commit | cce199341ab9a3d6678c57afa803ccd83806de20 (patch) | |
tree | 8ea5cd4413da2f5de21364485a86028870903237 | |
parent | 4acbb63105b241f537414d0ab6d09b269cf8202b (diff) | |
download | openembedded-core-contrib-cce199341ab9a3d6678c57afa803ccd83806de20.tar.gz |
sanity: Add error check for '%' in build path
It has been reported that '%' characters in build paths break with python
exceptions, probably due to confusion with python string escaping. Whilst it
is probably fixable, showing the user a human readable error is better given
it doesn't work.
[YOCTO #14282]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 31a3cf78452270131a657be45e76569515cff7ef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 866d066288..5b6b7b598e 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -887,6 +887,8 @@ def check_sanity_everybuild(status, d): status.addresult("Error, you have an invalid character (+) in your COREBASE directory path. Please move the installation to a directory which doesn't include any + characters.") if oeroot.find('@') != -1: status.addresult("Error, you have an invalid character (@) in your COREBASE directory path. Please move the installation to a directory which doesn't include any @ characters.") + if oeroot.find('%') != -1: + status.addresult("Error, you have an invalid character (%) in your COREBASE directory path which causes problems with python string formatting. Please move the installation to a directory which doesn't include any % characters.") if oeroot.find(' ') != -1: status.addresult("Error, you have a space in your COREBASE directory path. Please move the installation to a directory which doesn't include a space since autotools doesn't support this.") |