Skip to contentSkip to conversation

apt: fix do_package_qa failure

PATCH Superseded [email protected] 1 participant 1 message Aug 1, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 apt: fix do_package_qa failure

From: Changqing Li <[email protected]>

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.

---
 meta/recipes-devtools/apt/apt_2.4.5.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/apt/apt_2.4.5.bb +1 -0
index 95c25e3036..cb29c41ce0 100644
@@ -117,6 +117,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() {
Signature · 1 line
2.25.1