summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorMihai Prica <mihai.prica@intel.com>2013-07-01 13:31:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-05 15:26:20 +0100
commitbe93fa1d8fd601d95147980938217142c7d98c62 (patch)
tree093e7c72570d5d3e8ae33167bea971c4bb31907c /meta
parent9c600ef0cbfd3cc5191363997c0408e11c251b19 (diff)
downloadopenembedded-core-be93fa1d8fd601d95147980938217142c7d98c62.tar.gz
openembedded-core-be93fa1d8fd601d95147980938217142c7d98c62.tar.bz2
openembedded-core-be93fa1d8fd601d95147980938217142c7d98c62.zip
insane.bbclass: Added QA warning for shipping /usr/share/info/dir
/usr/share/info/dir should be generated at install time in a postinst. Added QA warning to check at build time for this file. The warning is disabled by default. [YOCTO #3969] Signed-off-by: Mihai Prica <mihai.prica@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/insane.bbclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 938c84ee15..1023092eb1 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -32,7 +32,7 @@ QA_SANE = "True"
WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \
textrel already-stripped incompatible-license files-invalid \
installed-vs-shipped compile-host-path install-host-path \
- pn-overrides \
+ pn-overrides infodir \
"
ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
@@ -552,6 +552,16 @@ def package_qa_check_xorg_driver_abi(path, name, d, elf, messages):
return
messages.append("Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path)))
+QAPATHTEST[infodir] = "package_qa_check_infodir"
+def package_qa_check_infodir(path, name, d, elf, messages):
+ """
+ Check that /usr/share/info/dir isn't shipped in a particular package
+ """
+ infodir = d.expand("${infodir}/dir")
+
+ if infodir in path:
+ messages.append("The /usr/share/info/dir file is not meant to be shipped in a particular package.")
+
def package_qa_check_license(workdir, d):
"""
Check for changes in the license files