Re: [PATCH] glibc-tests: not clear BBCLASSEXTEND


Kai Kang
 

On 6/29/22 6:23 AM, Randy MacLeod wrote:
On 2022-06-28 12:03, Richard Purdie wrote:
On Tue, 2022-06-28 at 23:22 +0800, kai wrote:
From: Kai Kang <kai.kang@...>

It clears BBCLASSEXTEND in glibc-tests recipe to remove 'nativesdk'
which is set in glibc recipe. The side effect is that it removes
"${MULTILIBS}" at same time if multilib enabled. Then there will no
multilib version glibc-tests. So only remove 'nativesdk' from
BBCLASSEXTEND rather than clear it.

Signed-off-by: Kai Kang <kai.kang@...>
---
  meta/recipes-core/glibc/glibc-tests_2.35.bb | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/glibc/glibc-tests_2.35.bb b/meta/recipes-core/glibc/glibc-tests_2.35.bb
index 414f8660de..028e83e865 100644
--- a/meta/recipes-core/glibc/glibc-tests_2.35.bb
+++ b/meta/recipes-core/glibc/glibc-tests_2.35.bb
@@ -18,7 +18,8 @@ python __anonymous() {
         d.setVar("PROVIDES", "${PN} ${PN}-ptest")
         d.setVar("RPROVIDES", "${PN} ${PN}-ptest")
  -       d.setVar("BBCLASSEXTEND", "")
+       bbclassextend = d.getVar("BBCLASSEXTEND").replace("nativesdk", "").strip()
+       d.setVar("BBCLASSEXTEND", bbclassextend)
         d.setVar("RRECOMMENDS", "")
         d.setVar("SYSTEMD_SERVICE:nscd", "")
         d.setVar("SYSTEMD_PACKAGES", "")
@@ -95,7 +96,7 @@ python populate_packages:prepend () {
          d.setVar('DEBIAN_NAMES', '')
  }
  -FILES:${PN} = "${PTEST_PATH}/* /usr/src/debug/glibc-tests/*"
+FILES:${PN} = "${PTEST_PATH}/* /usr/src/debug/${PN}/*"
    EXCLUDE_FROM_SHLIBS = "1"
Have you tested the multilib glibc-tests and been able to use it
successfully?

If Kai hasn't Naveen will.
Thanks. I test it on core-image-minimal with multilib enabled.

And 132 test cases of lib32-glibc-tests run, 121 PASS, 10 FAIL and 1 SKIP.

Regards,
Kai


../Randy


Cheers,

Richard


--
Kai Kang
Wind River Linux

Join {openembedded-core@lists.openembedded.org to automatically receive all group messages.