Skip to contentSkip to conversation

glibc: ptest: Fix glibc-tests package issue

PATCH Superseded pgowda 2 participants 2 messages Apr 18, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

pgowda

author
#0 lore raw

PATCH v2 1/1 glibc: ptest: Fix glibc-tests package issue

The current default DISTRO_FEATURES does not support ptest. Hence, the following error is generated during "bitbake glibc-tests".
ERROR: glibc-tests-2.35-r0 do_package: QA Issue: glibc-tests:
Files/directories were installed but not shipped in any package The issue is not reproduced with "DISTRO = Yocto" as DISTRO_FEATURES in Yocto supports ptest. However, when we run "glibc-tests" using Open-embedded master sources; it generates the error as default DISTRO is used.

---
 meta/recipes-core/glibc/glibc-tests_2.35.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/glibc/glibc-tests_2.35.bb +2 -0
index 8c7ecf89ba..fc6eee91ec 100644
@@ -29,6 +29,8 @@ RRECOMMENDS:${PN} = ""
 RDEPENDS:${PN} = " glibc sed"
 DEPENDS:append = " sed"
 
+DISTRO_FEATURES:append = " ptest"
+
 # Just build tests for target - do not run them
 do_check:append () {
 	oe_runmake -i check run-built-tests=no
Signature · 1 line
2.35.1
#1 lore raw
Quoted 19 lines · pgowda

The current default DISTRO_FEATURES does not support ptest. Hence, the following error is generated during "bitbake glibc-tests".
ERROR: glibc-tests-2.35-r0 do_package: QA Issue: glibc-tests:
Files/directories were installed but not shipped in any package The issue is not reproduced with "DISTRO = Yocto" as DISTRO_FEATURES in Yocto supports ptest. However, when we run "glibc-tests" using Open-embedded master sources; it generates the error as default DISTRO is used.

---
 meta/recipes-core/glibc/glibc-tests_2.35.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/glibc/glibc-tests_2.35.bb +0 -0
index 8c7ecf89ba..fc6eee91ec 100644

meta/recipes-core/glibc/glibc-tests_2.35.bb RRECOMMENDS:${PN} = "" · line 36

Quoted 8 lines
meta/recipes-core/glibc/glibc-tests_2.35.bb +2 -0
@@ -29,6 +29,8 @@ RRECOMMENDS:${PN} = ""
 RDEPENDS:${PN} = " glibc sed"
 DEPENDS:append = " sed"
 
+DISTRO_FEATURES:append = " ptest"
+
 # Just build tests for target - do not run them
 do_check:append () {
 	oe_runmake -i check run-built-tests=no

This isn't what I meant. I meant something like:

REQUIRED_DISTRO_FEATURES = 'ptest'
inherit features_check

Cheers,

Richard