[oe-commits] [openembedded-core] 02/02: insane.bbclass: Warn if ${COREBASE}/LICENSE is used

git at git.openembedded.org git at git.openembedded.org
Thu Aug 31 22:46:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a1948ab38c9cb7f0b16cce9dadc03ae6e2fe44ad
Author: Saul Wold <sgw at linux.intel.com>
AuthorDate: Thu Aug 17 12:48:29 2017 -0700

    insane.bbclass: Warn if ${COREBASE}/LICENSE is used
    
    The top level LICENSE file is not actually a license, it refers
    other licenses that are used by Bitbake and Meta-data. Relying
    on this file could cause problems for recipes when this file
    changes, which it is about to.
    
    Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
 meta/classes/insane.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 3906ba7..7310812 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -589,7 +589,7 @@ python populate_lic_qa_checksum() {
         sane = package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d)
 
     srcdir = d.getVar('S')
-
+    corebase_licensefile = d.getVar('COREBASE') + "/LICENSE"
     for url in lic_files.split():
         try:
             (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
@@ -600,6 +600,10 @@ python populate_lic_qa_checksum() {
         if not os.path.isfile(srclicfile):
             package_qa_handle_error("license-checksum", pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
             continue
+        
+        if (srclicfile == corebase_licensefile):
+            bb.warn("${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM")
+            bb.warn("This will become an error in the next release")
 
         recipemd5 = parm.get('md5', '')
         beginline, endline = 0, 0

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list