From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 4BD2972682 for ; Thu, 25 Dec 2014 01:49:11 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id sBP1nAXL001781 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 24 Dec 2014 17:49:10 -0800 (PST) Received: from pek-hjia-d1.corp.ad.wrs.com (128.224.162.194) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.174.1; Wed, 24 Dec 2014 17:49:10 -0800 From: Hongxu Jia To: , Date: Thu, 25 Dec 2014 09:48:59 +0800 Message-ID: <883cc974857e6896b33eb4be4f5c326840bb90ad.1419471695.git.hongxu.jia@windriver.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [PATCH 4/4] busybox.inc: fix QA package-missing warnings X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2014 01:49:11 -0000 Content-Type: text/plain 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 --- 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