]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Feb 2023 09:49:59 +0000 (09:49 +0000)
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>
meta/recipes-devtools/apt/apt_2.4.5.bb

index 4ecbf98554b7b74f64318abca91423c140f789f0..7af9792a0d57d5248d572824aaf94c7a36dfcf1b 100644 (file)
@@ -127,6 +127,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() {