perf: Enable debug/source packaging
PATCH v2 1/3 perf: Enable debug/source packaging
This was disabled in 2014[1] due to an error message which as far as I can tell, no longer occurs.
Having debug information and source files present will make debugging reproducibility issues much easier so remove this line as it appears no longer needed.
Fix up a few files which have buildpaths in them to avoid QA warnings and reproducubility issues.
[1] OE-Core revision c1b5a262c0201faf2c6bf545d6acb32dfe383ba3
--- meta/recipes-kernel/perf/perf.bb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
meta/recipes-kernel/perf/perf.bb +12 -2
@@ -360,6 +360,16 @@ FILES:${PN}-python = " \ " FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl" - -INHIBIT_PACKAGE_DEBUG_SPLIT="1" DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" + +PACKAGESPLITFUNCS =+ "perf_fix_sources" + +perf_fix_sources () { + for f in util/parse-events-flex.h util/parse-events-flex.c util/pmu-flex.c \ + util/expr-flex.h util/expr-flex.c; do + f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f + if [ -e $f ]; then + sed -i -e 's#${S}/##g' $f + fi + done +}
Signature · 1 line
2.37.2
PATCH 2/3 libc-locale: Fix on target locale generation
If on target locale generation is used, it fails at first boot showing errors about a missing directory. Ensure the directory exists.
--- meta/classes-recipe/libc-package.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes-recipe/libc-package.bbclass +1 -0
@@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0" OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}" locale_base_postinst_ontarget() { +mkdir ${libdir}/locale localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s }
Signature · 1 line
2.37.2
Re: [OE-core] [PATCH 2/3] libc-locale: Fix on target locale generation
Quoted 14 lines · Richard Purdie
If on target locale generation is used, it fails at first boot showing errors about a missing directory. Ensure the directory exists.
Signed-off-by Richard Purdie <[email protected]>--- meta/classes-recipe/libc-package.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes-recipe/libc-package.bbclass +0
-0
meta/classes-recipe/libc-package.bbclass PACKAGE_NO_GCONV ?= "0" · line 54
Quoted 4 lines
meta/classes-recipe/libc-package.bbclass +1
-0@@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0" OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}" locale_base_postinst_ontarget() { +mkdir ${libdir}/locale
should it be mkdir -p for when it does exist beforehand ?
Quoted 15 lines
meta/classes-recipe/libc-package.bbclass +0
-1localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s } --2.37.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176760): https://lists.openembedded.org/g/openembedded-core/message/176760
Mute This Topic: https://lists.openembedded.org/mt/96742036/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH 2/3] libc-locale: Fix on target locale generation
Quoted 18 lines · Khem Raj
Quoted 16 lines · Richard Purdie
If on target locale generation is used, it fails at first boot showing errors about a missing directory. Ensure the directory exists.
Signed-off-by Richard Purdie <[email protected]>--- meta/classes-recipe/libc-package.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes-recipe/libc-package.bbclass +0
-0@@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0" OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}"
Quoted 4 lines
meta/classes-recipe/libc-package.bbclass PACKAGE_NO_GCONV ?= "0" · line 54
Quoted 2 lines
meta/classes-recipe/libc-package.bbclass +1
-0locale_base_postinst_ontarget() { +mkdir ${libdir}/localeshould it be mkdir -p for when it does exist beforehand ?
I wondered about that, then I wondered about portability with a minimal busybox and decided libdir likely will exist...
Cheers,
Richard
PATCH 3/3 oeqa/selftest/locales: Add test for disabled binary locale generation
In reply to Richard PurdieSimilarly to the recently added test for binary generated locales, add a version to test on target locale generation. This was broken but should be fixed now so we can add the test sharing code from the previous test.
--- meta/lib/oeqa/selftest/cases/locales.py | 31 ++++++++++++++++--------- 1 file changed, 20 insertions(+), 11 deletions(-)
meta/lib/oeqa/selftest/cases/locales.py +20 -11
@@ -9,23 +9,17 @@ from oeqa.utils.commands import bitbake, runqemu class LocalesTest(OESelftestTestCase): @OETestTag("runqemu") - def test_locales_on(self): - """ - Summary: Test the locales are generated - Expected: 1. Check the locale exist in the locale-archive - 2. Check the locale exist for the glibc - 3. Check the locale can be generated - Product: oe-core - Author: Louis Rannou <[email protected]> - AutomatedBy: Louis Rannou <[email protected]> - """ + def run_locales_test(self, binary_enabled): features = [] features.append('EXTRA_IMAGE_FEATURES = "empty-root-password allow-empty-password allow-root-login"') features.append('IMAGE_INSTALL:append = " glibc-utils localedef"') features.append('GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8"') features.append('IMAGE_LINGUAS:append = " en-us fr-fr"') - features.append('ENABLE_BINARY_LOCALE_GENERATION = "1"') + if binary_enabled: + features.append('ENABLE_BINARY_LOCALE_GENERATION = "1"') + else: + features.append('ENABLE_BINARY_LOCALE_GENERATION = "0"') self.write_config("\n".join(features)) # Build a core-image-minimal
@@ -43,3 +37,18 @@ class LocalesTest(OESelftestTestCase): # output must includes fr_FR.utf8 self.assertEqual(status, 1, msg='localedef test command failed: output: %s' % output) self.assertIn("fr_FR.utf8", output, msg='localedef test failed: output: %s' % output) + + def test_locales_on(self): + """ + Summary: Test the locales are generated + Expected: 1. Check the locale exist in the locale-archive + 2. Check the locale exist for the glibc + 3. Check the locale can be generated + Product: oe-core + Author: Louis Rannou <[email protected]> + AutomatedBy: Louis Rannou <[email protected]> + """ + self.run_locales_test(True) + + def test_locales_off(self): + self.run_locales_test(False)
Signature · 1 line
2.37.2