From: "Yoann Congal" <yoann.congal@smile.fr>
To: <gael.portay+rtone@gmail.com>,
<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [scarthgap][PATCH] connman: fix syslog identity with glibc
Date: Fri, 02 Oct 2026 17:17:19 +0200 [thread overview]
Message-ID: <DLUGAJL0DW01.2UDQ8P6GXPBUN@smile.fr> (raw)
In-Reply-To: <20260929093009.847328-1-gael.portay+rtone@gmail.com>
Hello,
On Tue Sep 29, 2026 at 11:30 AM CEST, Gaël PORTAY via lists.openembedded.org wrote:
> The connman syslog patch modifies the handling of the ident string to
> solve a build issue with musl.
What "connman syslog patch"?
I'm having a hard time understanding this patch...
> This introduces a regression with glibc
> that does not make an internally copy of the indent string[1], while
> musl copies it[2]. Thus, that change is unsafe to apply in the glibc
> world.
>
> Also, syslog(3)[3] man page tells:
>
> NOTES
>
> The argument ident in the call of openlog() is probably stored
> as-is. Thus, if the string it points to is changed, syslog() may
> start prepending the changed string, and if the string it points
> to ceases to exist, the results are undefined. Most portable is
> to use a string constant.
>
> This removes 0001-src-log.c-Include-libgen.h-for-basename-API.patch[4]
> from the SRC_URI if libc-glibc overrides so that it is not applied when
> using glibc.
Hmm, this patch moves "0001-vpn-Adding-support-for-latest-pppd-2.5.0-release.patch"
not 0001-src-log.c-Include-libgen.h-for-basename-API.patch"
> Note: The patch was submitted to connamn, and was never get merged[5].
> Moreover the patch was removed from poky after bumping to 1.43[6].
>
> Fixes:
>
> Sep 7 06:10:36 qemux86-64 daemon.info ^A[776]: Connection Manager version 1.42
>
> This fixes commit 992d59564b84333740e6465ec696238274b73938.
Where it this commit from? I can't find it in oe-core nor poky.
>
> [1]: https://sourceware.org/git/?p=glibc.git;a=blob;f=misc/syslog.c;h=b7414e7b43a510342273bece335b4258e8754905;hb=47dd7e0dacf50c740b04c78d3f85fbf983d53aba#l338
> [2]: https://git.musl-libc.org/cgit/musl/tree/src/misc/syslog.c?h=v1.2.4#n64
> [3]: https://linux.die.net/man/3/syslog
> [4]: https://git.yoctoproject.org/poky/tree/meta/recipes-connectivity/connman/connman/0001-src-log.c-Include-libgen.h-for-basename-API.patch?h=scarthgap
> [5]: https://lore.kernel.org/connman/0caf957f-e046-4453-a8ae-fd6c994ac95d@gmail.com/
> [6]: https://github.com/openembedded/openembedded-core/commit/467d28f5d243d821722cf8dcdbb9675a2820cd4f
>
> Signed-off-by: Gaël PORTAY <gael.portay+rtone@gmail.com>
> ---
> meta/recipes-connectivity/connman/connman_1.42.bb | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/connman/connman_1.42.bb b/meta/recipes-connectivity/connman/connman_1.42.bb
> index 9b3abbe258..5c8bdd43f2 100644
> --- a/meta/recipes-connectivity/connman/connman_1.42.bb
> +++ b/meta/recipes-connectivity/connman/connman_1.42.bb
> @@ -5,13 +5,14 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
> file://0001-connman.service-stop-systemd-resolved-when-we-use-co.patch \
> file://connman \
> file://no-version-scripts.patch \
> - file://0001-vpn-Adding-support-for-latest-pppd-2.5.0-release.patch \
> file://0001-src-log.c-Include-libgen.h-for-basename-API.patch \
> file://CVE-2025-32743.patch \
> file://CVE-2025-32366.patch \
> "
>
> -SRC_URI:append:libc-musl = " file://0002-resolve-musl-does-not-implement-res_ninit.patch"
> +SRC_URI:append:libc-musl = " file://0001-vpn-Adding-support-for-latest-pppd-2.5.0-release.patch \
> + file://0002-resolve-musl-does-not-implement-res_ninit.patch \
> + "
>
> SRC_URI[sha256sum] = "a3e6bae46fc081ef2e9dae3caa4f7649de892c3de622c20283ac0ca81423c2aa"
>
Regards,
--
Yoann Congal
Smile ECS
next prev parent reply other threads:[~2026-10-02 15:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 9:30 [scarthgap][PATCH] connman: fix syslog identity with glibc Gaël PORTAY
2026-10-02 15:17 ` Yoann Congal [this message]
2026-10-13 5:24 ` [OE-core] " Gaël PORTAY
2026-10-13 7:07 ` Yoann Congal
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=DLUGAJL0DW01.2UDQ8P6GXPBUN@smile.fr \
--to=yoann.congal@smile.fr \
--cc=gael.portay+rtone@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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