Skip to contentSkip to conversation

apt: fix do_package_qa failure

PATCH Changqing Li 2 participants 3 messages Aug 19, 2022 – Nov 21, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

ping

Quoted 35 lines · Changqing Li

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 -1
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() {
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#168692): https://lists.openembedded.org/g/openembedded-core/message/168692
Mute This Topic: https://lists.openembedded.org/mt/92740376/3616873
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to a message not in the archive

ping

Quoted 35 lines · Changqing Li

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 -1
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() {
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#168692): https://lists.openembedded.org/g/openembedded-core/message/168692
Mute This Topic: https://lists.openembedded.org/mt/92740376/3616873
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to a message not in the archive
Quoted 35 lines · Changqing Li

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 -1
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() {
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#168692): https://lists.openembedded.org/g/openembedded-core/message/168692
Mute This Topic: https://lists.openembedded.org/mt/92740376/3616873
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-