On 02-04-2024 22:20, Khem Raj wrote:
You could make the application of the patch conditional upon being the
mips or powerpc architectures.
I think that will be more hassle than disabling it for all architectures.
I see that V2 of this patch is already merged with master branch. (https://git.yoctoproject.org/poky/commit/?id=8d27d8ff7cc65d2059ca29352b57301ffc35a163) But, I have made the changes to apply the patch only for mips or ppc architectures.

Please let me know if you want me to send the patch.
The changes are as follows:



diff --git a/meta/recipes-core/glibc/glibc_2.39.bb b/meta/recipes-core/glibc/glibc_2.39.bb
index 9122472689..497141f4bd 100644
--- a/meta/recipes-core/glibc/glibc_2.39.bb
+++ b/meta/recipes-core/glibc/glibc_2.39.bb
@@ -49,7 +49,6 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \
file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \
file://0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch \
- file://0024-qemu-stale-process.patch \
 "
 S = "${WORKDIR}/git"
 B = "${WORKDIR}/build-${TARGET_SYS}"
@@ -89,6 +88,11 @@ PACKAGECONFIG ??= "nscd memory-tagging"
 PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"
 PACKAGECONFIG[memory-tagging] = "--enable-memory-tagging,--disable-memory-tagging"

+python() {
+    if (d.getVar('MACHINE', True) == 'qemuppc' or d.getVar('MACHINE', True) == 'qemumips'):
+        d.appendVar('SRC_URI', ' file://0024-qemu-stale-process.patch')
+}
+
 do_patch:append() {
     bb.build.exec_func('do_fix_readlib_c', d)
 }


Regards,
Yash


That does have advantages and disadvantages in that it is easy to miss
when upgrading the glibc recipe though.

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197975): 
https://lists.openembedded.org/g/openembedded-core/message/197975
Mute This Topic: https://lists.openembedded.org/mt/105259855/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to