diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-15 13:49:13 +0100 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-04-20 10:33:50 +0800 |
commit | bcdadcc77ec4bf5aa46e16f6952ad05a2e7aeb84 (patch) | |
tree | 30529cb9a3d841ece894b253ee86020d7fb07629 /meta | |
parent | 166ec4cfa34b33fd810e04ae7d21554910bfa28f (diff) | |
download | openembedded-core-contrib-bcdadcc77ec4bf5aa46e16f6952ad05a2e7aeb84.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: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta')
-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 01c5434f0d..c450b37bf0 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.") |