Skip to contentSkip to conversation

glibc-y2038-tests: Fix debug split and drop INSANE_SKIPs

PATCH New Richard Purdie 1 participant 2 messages Aug 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 glibc-y2038-tests: Fix debug split and drop INSANE_SKIPs

Create the separate dbg package and then drop and the INSANE_SKIP values as none of them appear to be needed once debug splitting is fixed.

---
 meta/recipes-core/glibc/glibc-y2038-tests_2.40.bb | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
meta/recipes-core/glibc/glibc-y2038-tests_2.40.bb +1 -7
index b760230aeca..5a799196346 100644
@@ -13,7 +13,7 @@ SUMMARY = "glibc tests using time32/time64 interfaces to be run with ptest for t
 # Erase some variables already set by glibc_${PV}
 python __anonymous() {
        # Remove packages provided by glibc build, we only need a subset of them
-       d.setVar("PACKAGES", "${PN} ${PN}-ptest")
+       d.setVar("PACKAGES", "${PN} ${PN}-dbg ${PN}-ptest")
 
        d.setVar("PROVIDES", "${PN} ${PN}-ptest")
 
@@ -108,12 +108,6 @@ EXCLUDE_FROM_SHLIBS = "1"
 # debugging.
 PACKAGE_DEBUG_SPLIT_STYLE = ".debug"
 
-# glibc test cases violate by default some Yocto/OE checks (staticdev,
-# textrel)
-# 'debug-files' - add everything (including debug) into one package
-#                 (no need to install/build *-src package)
-INSANE_SKIP:${PN} += "staticdev textrel debug-files rpaths"
-
 deltask do_stash_locale
 do_install[noexec] = "1"
 do_populate_sysroot[noexec] = "1"
#1 lore raw

PATCH 2/2 glibc-y2038-tests: Don't force distro policy

How debugging is laid out is for the distro to decide, not the recipe. If the user wants this, they can set this. This recipe isn't special.

---
 meta/recipes-core/glibc/glibc-y2038-tests_2.40.bb | 6 ------
 1 file changed, 6 deletions(-)
meta/recipes-core/glibc/glibc-y2038-tests_2.40.bb +0 -6
index 5a799196346..8ed94386d26 100644
@@ -102,12 +102,6 @@ FILES:${PN} = "${PTEST_PATH}/* /usr/src/debug/${PN}/*"
 
 EXCLUDE_FROM_SHLIBS = "1"
 
-# Install debug data in .debug and sources in /usr/src/debug
-# It is more handy to have _all_ the sources and symbols in one
-# place (package) as this recipe will be used for validation and
-# debugging.
-PACKAGE_DEBUG_SPLIT_STYLE = ".debug"
-
 deltask do_stash_locale
 do_install[noexec] = "1"
 do_populate_sysroot[noexec] = "1"