]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
apt: fix do_package_qa failure
authorChangqing Li <changqing.li@windriver.com>
Tue, 31 Jan 2023 09:40:13 +0000 (17:40 +0800)
committerSteve Sakoman <steve@sakoman.com>
Sat, 11 Feb 2023 14:03:33 +0000 (04:03 -1000)
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 <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b035a59d7915da784f1e6678ee130f30d7ceb8a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/apt/apt_2.4.5.bb

index 4b9f8040392bd73931e2e0bf97d91b7a6776c475..ccdbd3d652438f441ac9a7804890c30d21f8aa32 100644 (file)
@@ -126,6 +126,7 @@ do_install:append:class-native() {
 
 do_install:append:class-nativesdk() {
        customize_apt_conf_sample
+        rm -rf ${D}${localstatedir}/log
 }
 
 do_install:append:class-target() {