• [gentoo-dev] [PATCH] profiles/features/musl: add sys-apps/musl-locales

    From Violet Purcell@21:1/5 to All on Fri Jul 4 13:10:02 2025
    musl by default does not provide any sort of locale support, and so does
    not have a `locale` binary by default. This often results in spurious
    command not found QA notices or in extreme cases even build failures.
    Adelie's musl-locales project has been adopted as the de facto solution
    for locales on musl, so having it in @system for consistency with glibc
    is probably a good idea.

    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    ---
    profiles/features/musl/packages | 5 ++++-
    1 file changed, 4 insertions(+), 1 deletion(-)

    diff --git a/profiles/features/musl/packages b/profiles/features/musl/packages index 4bbf9c32099c..a3dc9087872c 100644
    --- a/profiles/features/musl/packages
    +++ b/profiles/features/musl/packages
    @@ -1,6 +1,9 @@
    -# Copyright 1999-2018 Gentoo Foundation.
    +# Copyright 1999-2025 Gentoo Authors.
    # Distributed under the terms of the GNU General Public License v2

    *app-misc/pax-utils
    *sys-apps/sandbox
    -*sys-apps/man-pages
    +
    +# Provides the `locale` binary, which is not present in musl itself +*sys-apps/musl-locales
    --
    2.50.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to Violet Purcell on Sat Jul 5 09:30:01 2025
    Violet Purcell <vimproved@inventati.org> writes:

    musl by default does not provide any sort of locale support, and so does
    not have a `locale` binary by default. This often results in spurious
    command not found QA notices or in extreme cases even build failures. Adelie's musl-locales project has been adopted as the de facto solution
    for locales on musl, so having it in @system for consistency with glibc
    is probably a good idea.

    Sounds good. We may want to make the musl-locales ebuild add an env.d
    entry which immolo mentioned the other day, but that can be done as a followup.

    I'll push it now.


    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    ---
    profiles/features/musl/packages | 5 ++++-
    1 file changed, 4 insertions(+), 1 deletion(-)

    diff --git a/profiles/features/musl/packages b/profiles/features/musl/packages
    index 4bbf9c32099c..a3dc9087872c 100644
    --- a/profiles/features/musl/packages
    +++ b/profiles/features/musl/packages
    @@ -1,6 +1,9 @@
    -# Copyright 1999-2018 Gentoo Foundation.
    +# Copyright 1999-2025 Gentoo Authors.
    # Distributed under the terms of the GNU General Public License v2

    *app-misc/pax-utils
    *sys-apps/sandbox
    -*sys-apps/man-pages
    +
    +# Provides the `locale` binary, which is not present in musl itself +*sys-apps/musl-locales

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Immolo@21:1/5 to Sam James on Mon Jul 7 09:40:01 2025
    Just to make sure we don't double up on work, I've added the env file
    creation in https://github.com/gentoo/gentoo/pull/42911

    Once everyone is happy, then I'll clean up the docs to match in https://wiki.gentoo.org/wiki/Musl

    immolo

    On Sat, 5 Jul 2025 at 07:22, Sam James <sam@gentoo.org> wrote:

    Violet Purcell <vimproved@inventati.org> writes:

    musl by default does not provide any sort of locale support, and so does not have a `locale` binary by default. This often results in spurious command not found QA notices or in extreme cases even build failures. Adelie's musl-locales project has been adopted as the de facto solution
    for locales on musl, so having it in @system for consistency with glibc
    is probably a good idea.

    Sounds good. We may want to make the musl-locales ebuild add an env.d
    entry which immolo mentioned the other day, but that can be done as a followup.

    I'll push it now.


    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    ---
    profiles/features/musl/packages | 5 ++++-
    1 file changed, 4 insertions(+), 1 deletion(-)

    diff --git a/profiles/features/musl/packages
    b/profiles/features/musl/packages
    index 4bbf9c32099c..a3dc9087872c 100644
    --- a/profiles/features/musl/packages
    +++ b/profiles/features/musl/packages
    @@ -1,6 +1,9 @@
    -# Copyright 1999-2018 Gentoo Foundation.
    +# Copyright 1999-2025 Gentoo Authors.
    # Distributed under the terms of the GNU General Public License v2

    *app-misc/pax-utils
    *sys-apps/sandbox
    -*sys-apps/man-pages
    +
    +# Provides the `locale` binary, which is not present in musl itself +*sys-apps/musl-locales


    <div dir="ltr"><div>Just to make sure we don&#39;t double up on work, I&#39;ve added the env file creation in <a href="https://github.com/gentoo/gentoo/pull/42911">https://github.com/gentoo/gentoo/pull/42911</a></div><div><br></div><div>Once everyone is
    happy, then I&#39;ll clean up the docs to match in <a href="https://wiki.gentoo.org/wiki/Musl">https://wiki.gentoo.org/wiki/Musl</a></div><div><br></div><div>immolo</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="
    gmail_attr">On Sat, 5 Jul 2025 at 07:22, Sam James &lt;<a href="mailto:sam@gentoo.org">sam@gentoo.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Violet
    Purcell &lt;<a href="mailto:vimproved@inventati.org" target="_blank">vimproved@inventati.org</a>&gt; writes:<br>

    &gt; musl by default does not provide any sort of locale support, and so does<br>
    &gt; not have a `locale` binary by default. This often results in spurious<br> &gt; command not found QA notices or in extreme cases even build failures.<br> &gt; Adelie&#39;s musl-locales project has been adopted as the de facto solution<br>
    &gt; for locales on musl, so having it in @system for consistency with glibc<br>
    &gt; is probably a good idea.<br>

    Sounds good. We may want to make the musl-locales ebuild add an env.d<br>
    entry which immolo mentioned the other day, but that can be done as a followup.<br>

    I&#39;ll push it now.<br>

    &gt;<br>
    &gt; Signed-off-by: Violet Purcell &lt;<a href="mailto:vimproved@inventati.org" target="_blank">vimproved@inventati.org</a>&gt;<br>
    &gt; ---<br>
    &gt;  profiles/features/musl/packages | 5 ++++-<br>
    &gt;  1 file changed, 4 insertions(+), 1 deletion(-)<br>
    &gt;<br>
    &gt; diff --git a/profiles/features/musl/packages b/profiles/features/musl/packages<br>
    &gt; index 4bbf9c32099c..a3dc9087872c 100644<br>
    &gt; --- a/profiles/features/musl/packages<br>
    &gt; +++ b/profiles/features/musl/packages<br>
    &gt; @@ -1,6 +1,9 @@<br>
    &gt; -# Copyright 1999-2018 Gentoo Foundation.<br>
    &gt; +# Copyright 1999-2025 Gentoo Authors.<br>
    &gt;  # Distributed under the terms of the GNU General Public License v2<br> &gt;  <br>
    &gt;  *app-misc/pax-utils<br>
    &gt;  *sys-apps/sandbox<br>
    &gt;  -*sys-apps/man-pages<br>
    &gt; +<br>
    &gt; +# Provides the `locale` binary, which is not present in musl itself<br> &gt; +*sys-apps/musl-locales<br>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)