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

Changqing Li

On 7/27/22 19:51, Alexander Kanavin wrote:
[Please note: This e-mail is from an EXTERNAL e-mail address]

What is actually being installed in there? Is it really right to remove it?
An empty dir apt is installed under /var/log/. It should be ok to remove it since apt could create it when it doesn't exist.

We have remove it for target. So I do the same for nativesdk. Another solution could be INSANE_SKIP the empty-dirs.

How do you think?



On Wed, 27 Jul 2022 at 07:39, 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]

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 1d94dd118c..d79a33857a 100644
--- a/meta/recipes-devtools/apt/
+++ b/meta/recipes-devtools/apt/
@@ -123,6 +123,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.