mbox series

[bug#67686,core-updates,v2,0/7] Update glibc to 2.38; make C.UTF-8 always available

Message ID cover.1701989279.git.ludo@gnu.org
Headers show
Series Update glibc to 2.38; make C.UTF-8 always available | expand

Message

Ludovic Courtès Dec. 7, 2023, 10:54 p.m. UTC
Changes since v1:

  • The ‘install-utf8-c-locale’ phase now installs nothing when
    cross-compiling.

    Eventually, I’d like to (1) change the package to use gexps,
    and (2) use the native ‘localedef’ from ‘this-package’ to
    build locales when cross-compiling as this appears to do
    the job.

  • Incorporated the GCC and MPFR patches by Janneke.

(Since we haven’t yet added a ‘core-packages’ team, I’m seeing
people likely to be interested.  :-))

Ludo’.

Greg Hogan (1):
  gnu: gcc@11: Update to 11.4.0.

Janneke Nieuwenhuizen (1):
  gnu: mpfr: Update to 4.2.1.

Ludovic Courtès (5):
  gnu: glibc-utf8-locales: Generalize and use gexps.
  DRAFT gnu: glibc: Update to 2.38.
  gnu: glibc: Install C.UTF-8 locale.
  gnu: glibc: Ensure C.UTF-8 locale is always found.
  gnu: glibc: Improve handling of empty .a files.

 gnu/local.mk                                  |   1 +
 gnu/packages/base.scm                         | 166 ++++++++++++------
 gnu/packages/commencement.scm                 |  10 +-
 gnu/packages/gcc.scm                          |   7 +-
 gnu/packages/multiprecision.scm               |   4 +-
 .../glibc-2.37-versioned-locpath.patch        |  57 +++---
 .../patches/glibc-2.38-ldd-x86_64.patch       |   8 +
 7 files changed, 152 insertions(+), 101 deletions(-)
 create mode 100644 gnu/packages/patches/glibc-2.38-ldd-x86_64.patch


base-commit: 69d31a158001f2cb97983bd13f4575f6c9484451

Comments

Ludovic Courtès Dec. 9, 2023, 2:58 p.m. UTC | #1
Hello!

I’ve just pushed v2:

  5bbddafeaa gnu: glibc: Improve handling of empty .a files.
  1cebc334a7 gnu: glibc: Ensure C.UTF-8 locale is always found.
  c76e44396e gnu: glibc: Install C.UTF-8 locale.
  d5242a562e gnu: glibc: Update to 2.38.
  cd43baad60 gnu: mpfr: Update to 4.2.1.
  3ea04038b5 gnu: glibc-utf8-locales: Generalize and use gexps.
  22f06be928 gnu: gcc@11: Update to 11.4.0.

I think it’s just the beginning of a journey :-) since we’ll have to
test and fix cross-compilation, and eventually investigate the
(define glibc/hurd glibc) problems Janneke already reported.

By pushing my hope is to get support from the build farms so we can test
these higher-level issues without having to rebuild everything locally.

Ludo’.
Efraim Flashner Dec. 9, 2023, 4:37 p.m. UTC | #2
On Sat, Dec 09, 2023 at 03:58:16PM +0100, Ludovic Courtès wrote:
> Hello!
> 
> I’ve just pushed v2:
> 
>   5bbddafeaa gnu: glibc: Improve handling of empty .a files.
>   1cebc334a7 gnu: glibc: Ensure C.UTF-8 locale is always found.
>   c76e44396e gnu: glibc: Install C.UTF-8 locale.
>   d5242a562e gnu: glibc: Update to 2.38.
>   cd43baad60 gnu: mpfr: Update to 4.2.1.
>   3ea04038b5 gnu: glibc-utf8-locales: Generalize and use gexps.
>   22f06be928 gnu: gcc@11: Update to 11.4.0.
> 
> I think it’s just the beginning of a journey :-) since we’ll have to
> test and fix cross-compilation, and eventually investigate the
> (define glibc/hurd glibc) problems Janneke already reported.
> 
> By pushing my hope is to get support from the build farms so we can test
> these higher-level issues without having to rebuild everything locally.

With the v1 patchset I found that by reverting the file update and
bringing it back to 5.44 I was able to build all the way to hello on
x86_64-linux, i686-linux, aarch64-linux, riscv64-linux and
powerpc64le-linux. I haven't tested armhf- or powerpc- yet.

For cross-compiling I ran into a test failure in mpfr@4.2.0 and 4.2.1
as needed by gcc-cross-i686-linux-gnu-11.4.0.

FAIL: tsprintf
==============

Error in mpfr_vsprintf (s, "%0+ -'13.10Pd:", ...);
expected: "+01,234,567  :"
got:      "+0001,234,567:"
FAIL tsprintf (exit status: 1)