]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity: Add error check for '%' in build path
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Apr 2021 12:49:13 +0000 (13:49 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 20 Apr 2021 02:33:50 +0000 (10:33 +0800)
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>
meta/classes/sanity.bbclass

index 01c5434f0d4cea8e8c88ccc9da363d4f66922547..c450b37bf0c9a4f36b4cff35375fcacf76d4cd2e 100644 (file)
@@ -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.")