[OE-core] [PATCH 4/4] busybox.inc: fix QA package-missing warnings
Hongxu Jia
hongxu.jia at windriver.com
Thu Dec 25 01:48:59 UTC 2014
While building busybox with QA package-missing checking enabled,
there was warning:
...
WARNING: QA Issue: package busybox-mdev not generated, but listed in PACKAGES
WARNING: QA Issue: package busybox-httpd not generated, but listed in PACKAGES
...
The config in ${B}/.config decides to generate busybox-mdev,
busybox-httpd or not. Files are copied if the packages generated.
So set PACKAGES in do_package according to the existance of files.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-core/busybox/busybox.inc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 0769d92..0035f12 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -317,6 +317,16 @@ python () {
}
python do_package_prepend () {
+ if not os.path.exists(d.expand("${D}${sysconfdir}/init.d/busybox-httpd")):
+ packages = (d.getVar('PACKAGES', True) or '').split()
+ packages.remove(d.expand('${PN}-httpd'))
+ d.setVar('PACKAGES', ' '.join(packages))
+
+ if not os.path.exists(d.expand("${D}${sysconfdir}/init.d/mdev")):
+ packages = (d.getVar('PACKAGES', True) or '').split()
+ packages.remove(d.expand('${PN}-mdev'))
+ d.setVar('PACKAGES', ' '.join(packages))
+
# We need to load the full set of busybox provides from the /etc/busybox.links
# Use this to see the update-alternatives with the right information
--
1.9.1
More information about the Openembedded-core
mailing list