Yocto Meta Virtualization
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: viswanath.kraleti@oss.qualcomm.com
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization] [meta-oe][PATCH] android-tools: add fix for strchr() conformance to C23
Date: Sat, 14 Mar 2026 15:19:15 +0000	[thread overview]
Message-ID: <abV8c0oULEEyuixH@gmail.com> (raw)
In-Reply-To: <20260314121459.2875362-1-viswanath.kraleti@oss.qualcomm.com>

scripting mis-fire, wrong list! (which you clearly knew since
it is in the subject prefixes)

Bruce

In message: [meta-virtualization] [meta-oe][PATCH] android-tools: add fix for strchr() conformance to C23
on 14/03/2026 Viswanath Kraleti via lists.yoctoproject.org wrote:

> Building android-tools v29.0.6.r14 with glibc 2.43 fails due to ISO C23
> changes to strchr(). Add a patch to update the affected libunwind sources
> to use const pointer types to fix this build failure.
> 
> Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
> ---
>  ...nd-fix-strchr-conformance-to-ISO-C23.patch | 27 +++++++++++++++++++
>  .../android-tools/android-tools_29.0.6.r14.bb |  1 +
>  2 files changed, 28 insertions(+)
>  create mode 100644 meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/external/libunwind/libunwind-fix-strchr-conformance-to-ISO-C23.patch
> 
> diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/external/libunwind/libunwind-fix-strchr-conformance-to-ISO-C23.patch b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/external/libunwind/libunwind-fix-strchr-conformance-to-ISO-C23.patch
> new file mode 100644
> index 0000000000..4da65ea285
> --- /dev/null
> +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/external/libunwind/libunwind-fix-strchr-conformance-to-ISO-C23.patch
> @@ -0,0 +1,27 @@
> +From d91f5324f809c3a5b0343927716e4b99bc31db53 Mon Sep 17 00:00:00 2001
> +From: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
> +Date: Fri, 13 Mar 2026 18:57:36 +0530
> +Subject: [PATCH] libunwind: fix strchr() conformance to ISO C23
> +
> +Fix uses of strchr() to conform to ISO C23, supported since glibc-2.43
> +
> +Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
> +Upstream-Status: Pending
> +---
> + external/libunwind/src/dwarf/Gfind_proc_info-lsb.c | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/external/libunwind/src/dwarf/Gfind_proc_info-lsb.c b/external/libunwind/src/dwarf/Gfind_proc_info-lsb.c
> +index 77ed3d09..37eadf52 100644
> +--- a/external/libunwind/src/dwarf/Gfind_proc_info-lsb.c
> ++++ b/external/libunwind/src/dwarf/Gfind_proc_info-lsb.c
> +@@ -248,7 +248,8 @@ load_debug_frame (const char *file, char **buf, size_t *bufsize,
> + 
> +   if (*buf == NULL && linkbuf != NULL && memchr (linkbuf, 0, linksize) != NULL)
> +     {
> +-      char *newname, *basedir, *p;
> ++      char *newname, *basedir;
> ++      const char *p;
> +       static const char *debugdir = "/usr/lib/debug";
> +       int ret;
> + 
> diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
> index 74928ed171..3d4e95b496 100644
> --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
> +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
> @@ -22,6 +22,7 @@ SRC_URI += " \
>      file://debian/external/libunwind/legacy_built-in_sync_functions.patch \
>      file://debian/external/libunwind/20150704-CVE-2015-3239_dwarf_i.h.patch \
>      file://debian/external/libunwind/libunwind-guard-unreachable-macro-to-avoid-redefinit.patch \
> +    file://debian/external/libunwind/libunwind-fix-strchr-conformance-to-ISO-C23.patch \
>      \
>      file://debian/system/core/move-log-file-to-proper-dir.patch \
>      file://debian/system/core/Added-missing-headers.patch \

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9656): https://lists.yoctoproject.org/g/meta-virtualization/message/9656
> Mute This Topic: https://lists.yoctoproject.org/mt/118312414/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



      reply	other threads:[~2026-03-14 15:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-14 12:14 [meta-oe][PATCH] android-tools: add fix for strchr() conformance to C23 Viswanath Kraleti
2026-03-14 15:19 ` Bruce Ashfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abV8c0oULEEyuixH@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    --cc=viswanath.kraleti@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox