Re: [kirkstone][master][PATCH V2] apt: fix do_package_qa failure

Changqing Li

On 8/1/22 11:34, Changqing Li wrote:
From: Changqing Li <>

bitbake nativesdk-apt failed with error:
ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs files in /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile, but it is expected to be empty [empty-dirs]

an empty dir apt is installed under /var/log/, fix the failure
by removing the empty dir apt as what we have done for target.
apt will create it when it does not exist.

Signed-off-by: Changqing Li <>
meta/recipes-devtools/apt/ | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/apt/ b/meta/recipes-devtools/apt/
index 95c25e3036..cb29c41ce0 100644
--- a/meta/recipes-devtools/apt/
+++ b/meta/recipes-devtools/apt/
@@ -117,6 +117,7 @@ do_install:append:class-native() {
do_install:append:class-nativesdk() {
+ rm -rf ${D}${localstatedir}/log
do_install:append:class-target() {

Join { to automatically receive all group messages.