diff options
author | Mihai Prica <mihai.prica@intel.com> | 2013-07-01 13:31:00 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-05 15:34:23 +0100 |
commit | 64745c27d206931b6b50399db505cd45a11da6cb (patch) | |
tree | b00d6832032a8ec12a416712570881d84924885c /meta/classes | |
parent | dc54356af57cf6c710d9110a7dded0999dba54a5 (diff) | |
download | poky-64745c27d206931b6b50399db505cd45a11da6cb.tar.gz |
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]
(From OE-Core rev: be93fa1d8fd601d95147980938217142c7d98c62)
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 12 |
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" | |||
32 | WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \ | 32 | WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \ |
33 | textrel already-stripped incompatible-license files-invalid \ | 33 | textrel already-stripped incompatible-license files-invalid \ |
34 | installed-vs-shipped compile-host-path install-host-path \ | 34 | installed-vs-shipped compile-host-path install-host-path \ |
35 | pn-overrides \ | 35 | pn-overrides infodir \ |
36 | " | 36 | " |
37 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ | 37 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ |
38 | perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ | 38 | 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): | |||
552 | return | 552 | return |
553 | messages.append("Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path))) | 553 | messages.append("Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path))) |
554 | 554 | ||
555 | QAPATHTEST[infodir] = "package_qa_check_infodir" | ||
556 | def package_qa_check_infodir(path, name, d, elf, messages): | ||
557 | """ | ||
558 | Check that /usr/share/info/dir isn't shipped in a particular package | ||
559 | """ | ||
560 | infodir = d.expand("${infodir}/dir") | ||
561 | |||
562 | if infodir in path: | ||
563 | messages.append("The /usr/share/info/dir file is not meant to be shipped in a particular package.") | ||
564 | |||
555 | def package_qa_check_license(workdir, d): | 565 | def package_qa_check_license(workdir, d): |
556 | """ | 566 | """ |
557 | Check for changes in the license files | 567 | Check for changes in the license files |