cross-localedef-native: prune patch list
PATCH 1/3 cross-localedef-native: prune patch list
The cross-localedef-native recipe builds on top of glibc and drops in an autoconf tree to build just localedef. For some reason we're applying a partial subset of glibc patches that do not impact the localedef build at all, for example adding documentation or fixing nscd.
Remove patches and other assignments that don't impact the build of localedef.
--- meta/recipes-core/glibc/cross-localedef-native_2.44.bb | 9 --------- 1 file changed, 9 deletions(-)
meta/recipes-core/glibc/cross-localedef-native_2.44.bb +0 -9
@@ -25,13 +25,8 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0001-localedef-Add-hardlink-resolver-from-util-linux.patch \ file://0002-localedef-fix-ups-hardlink-to-make-it-compile.patch \ \ - file://0009-eglibc-Cross-building-and-testing-instructions.patch \ - file://0010-eglibc-Help-bootstrap-cross-toolchain.patch \ - file://0011-eglibc-Resolve-__fpscr_values-on-SH4.patch \ file://0012-eglibc-Forward-port-cross-locale-generation-support.patch \ file://0013-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \ - file://0016-Replace-echo-with-printf-builtin-in-nscd-init-script.patch \ - file://0018-timezone-Make-shell-interpreter-overridable-in-tzsel.patch \ " # Makes for a rather long rev (22 characters), but... #
@@ -39,10 +34,6 @@ SRCREV_FORMAT = "glibc_localedef" EXTRA_OECONF = "--with-glibc=${S}" -# We do not need bash to run tzselect script, the default is to use -# bash but it can be configured by setting KSHELL Makefile variable -EXTRA_OEMAKE += "KSHELL=/bin/sh" - CFLAGS += "-fgnu89-inline -std=gnu99 -DIS_IN\(x\)='0'" do_install() {
Signature · 1 line
2.43.0
PATCH 2/3 glibc: update patch status
Update the patch status of some submitted patches.
--- .../0008-yes-within-the-path-sets-wrong-config-variables.patch | 2 +- ...6-Replace-echo-with-printf-builtin-in-nscd-init-script.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/glibc/0008-yes-within-the-path-sets-wrong-config-variables.patch +1 -1
@@ -9,7 +9,7 @@ false-positive matches with the path it is configured into. The change is to use a more elaborated string to grep for. -Upstream-Status: Submitted [[email protected]] +Upstream-Status: Submitted [https://inbox.sourceware.org/libc-alpha/1425394379-41448-1-git-send-email-benjamin.esquivel@linux.intel.com/] Signed-off-by: Benjamin Esquivel <[email protected]> Signed-off-by: Khem Raj <[email protected]>
meta/recipes-core/glibc/glibc/0016-Replace-echo-with-printf-builtin-in-nscd-init-script.patch +1 -1
@@ -8,7 +8,7 @@ since it uses bash specific extentions namely (translated strings) and echo -n command, replace echo with printf and switch the shell interpreter to #!/bin/sh. -Upstream-Status: Pending +Upstream-Status: Submitted [https://inbox.sourceware.org/libc-alpha/[email protected]/T/#u] Signed-off-by: Ross Burton <[email protected]> Signed-off-by: Khem Raj <[email protected]> ---
Signature · 1 line
2.43.0
PATCH 3/3 glibc: remove redundant tzselect interpreter option patch
In reply to Ross BurtonPatch 18 adds an option to replace the interpreter in the tzselect script from /bin/bash to whatever KSHELL is set to. However, patch 19 directly changes the interpreter to /bin/sh so this functionality never works.
This is further cleanup based on a previous commit removing the KSHELL assignment[1].
[1] oe-core a9ffb0db9e7 ("glibc: remove obsolete KSHELL assignment")
--- ...ell-interpreter-overridable-in-tzsel.patch | 47 ------------------- meta/recipes-core/glibc/glibc_2.44.bb | 1 - 2 files changed, 48 deletions(-) delete mode 100644 meta/recipes-core/glibc/glibc/0018-timezone-Make-shell-interpreter-overridable-in-tzsel.patch
meta/recipes-core/glibc/glibc/0018-timezone-Make-shell-interpreter-overridable-in-tzsel.patch deleted +0 -47
@@ -1,47 +0,0 @@ -From cd372730f78fd39949b1a0c119f7b2450a6706a8 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 9 Dec 2021 15:14:42 -0800 -Subject: [PATCH] timezone: Make shell interpreter overridable in tzselect.ksh - -define new macro called KSHELL which can be used to define default shell -use Bash by default - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - Makeconfig | 9 +++++++++ - timezone/Makefile | 1 + - 2 files changed, 10 insertions(+) - -diff --git a/Makeconfig b/Makeconfig -index e7dbd9fb9e..fd62fdf49b 100644 ---- a/Makeconfig -+++ b/Makeconfig -@@ -309,6 +309,15 @@ ifndef sysincludedir - sysincludedir = /usr/include - endif - -+# The full path name of a Posix-compliant shell, preferably one that supports -+# the Korn shell's 'select' statement as an extension. -+# These days, Bash is the most popular. -+# It should be OK to set this to /bin/sh, on platforms where /bin/sh -+# lacks 'select' or doesn't completely conform to Posix, but /bin/bash -+# is typically nicer if it works. -+ifndef KSHELL -+KSHELL = /bin/bash -+endif - - # Commands to install files. - ifndef INSTALL_DATA -diff --git a/timezone/Makefile b/timezone/Makefile -index ce9abe6cb2..721fb70be4 100644 ---- a/timezone/Makefile -+++ b/timezone/Makefile -@@ -140,6 +140,7 @@ $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make - -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \ - -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \ - -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \ -+ -e 's|#!/bin/bash|#!$(KSHELL)|g' \ - < $< > [email protected] - chmod 555 [email protected] - mv -f [email protected] $@
meta/recipes-core/glibc/glibc_2.44.bb +0 -1
@@ -53,7 +53,6 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0015-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch \ file://0016-Replace-echo-with-printf-builtin-in-nscd-init-script.patch \ file://0017-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch \ - file://0018-timezone-Make-shell-interpreter-overridable-in-tzsel.patch \ file://0019-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch \ file://0020-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \ file://0021-tests-Skip-2-qemu-tests-that-can-hang-in-oe-selftest.patch \
Signature · 1 line
2.43.0
Patchtest results for [PATCH 1/3] cross-localedef-native: prune patch list
In reply to Ross BurtonThank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/1-3-cross-localedef-native-prune-patch-list.patch
FAIL: test src uri left files: Patches not removed from tree. Remove them and amend the submitted mbox (test_metadata.TestMetadata.test_src_uri_left_files)
PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test auh changelog truncation notice (test_mbox.TestMbox.test_auh_changelog_truncation_notice)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new source patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new source patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new source patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
The fixes were needed for build only pieces. It does build fair bit of glibc infra before building localedef. But its good to review it from time to time. If there are no build issues we should largely be OK with this patch
Quoted 66 lines · Ross Burton via lists.openembedded.org
The cross-localedef-native recipe builds on top of glibc and drops in an autoconf tree to build just localedef. For some reason we're applying a partial subset of glibc patches that do not impact the localedef build at all, for example adding documentation or fixing nscd.
Remove patches and other assignments that don't impact the build of localedef.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-core/glibc/cross-localedef-native_2.44.bb | 9 --------- 1 file changed, 9 deletions(-)meta/recipes-core/glibc/cross-localedef-native_2.44.bb +0
-3@@ -25,13 +25,8 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0001-localedef-Add-hardlink-resolver-from-util-linux.patch \ file://0002-localedef-fix-ups-hardlink-to-make-it-compile.patch \ \ - file://0009-eglibc-Cross-building-and-testing-instructions.patch \ - file://0010-eglibc-Help-bootstrap-cross-toolchain.patch \ - file://0011-eglibc-Resolve-__fpscr_values-on-SH4.patch \file://0012-eglibc-Forward-port-cross-locale-generation-support.patch \
file://0013-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \
meta/recipes-core/glibc/cross-localedef-native_2.44.bb +0
-7- file://0016-Replace-echo-with-printf-builtin-in-nscd-init-script.patch \ - file://0018-timezone-Make-shell-interpreter-overridable-in-tzsel.patch \ " # Makes for a rather long rev (22 characters), but... #@@ -39,10 +34,6 @@ SRCREV_FORMAT = "glibc_localedef" EXTRA_OECONF = "--with-glibc=${S}" -# We do not need bash to run tzselect script, the default is to use -# bash but it can be configured by setting KSHELL Makefile variable -EXTRA_OEMAKE += "KSHELL=/bin/sh" - CFLAGS += "-fgnu89-inline -std=gnu99 -DIS_IN\(x\)='0'" do_install() { --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#242957):
https://lists.openembedded.org/g/openembedded-core/message/242957
Mute This Topic: https://lists.openembedded.org/mt/120629342/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines · Khem Raj
The fixes were needed for build only pieces. It does build fair bit of glibc infra before building localedef. But its good to review it from time to time. If there are no build issues we should largely be OK with this patch
I ended up looking at buildroot’s way to build localedef and it’s a bit neater, I wonder if we should share patches…
Ross