Repository navigation
glibc: 2.42 -> 2.43 - #502924
glibc: 2.42 -> 2.43#502924philiptaron wants to merge 4 commits into
Conversation
|
The massive diff is the result of dropping |
|
cc @trofi |
2524602 to
f4135bf
Compare
|
The "const" change may turn out annoying (from distro point of view), at least for packages which use I created a jobset already: |
|
And before we get to Hydra working on this, I'd prefer if you didn't include |
Doing so will delay it then, since it relies on a couple package bumps that are in current staging. I'm on mobile but off the top of my head: gettext 1.0, mesa-libgbm 26.0.3, something from GNU that @trofi put up in January. Maybe one more that's escaping me. |
|
@philiptaron I recommend to base this on a merge-base of staging and staging-next and then use the "Compare to jobset" of Hydra to spot regressions. If there are regressions to look at, I'm happy to help. Thanks a lot for doing that! For the future it would be nice if you could leave me a note as a maintainer of pkgs.glibc because doing the exact same work was also on my todo-list, just didn't get to it yet. |
|
We have no |
|
Right, in that case it's probably the easiest to base this on the last staging-next jobset eval, no? |
|
As for delaying, I think might be beneficial anyway. The release is only two months old, so packages often haven't caught up yet in nixpkgs. Lots may get fixed "by itself" on nixpkgs level just by waiting, though I can only guess how this progression looks like. As an example, in my upstream CI we only found glibc-2.43 regressions this week, and release won't be immediate (even if bump in nixpkgs would follow immediately in this case). |
I had hoped that by requesting your review -- which you can see I requested as the very first step -- I would do so. What's your preferred method of contact? Happy to oblige. As a first-time |
I hear that. I'm a little impatient because I'd like to start to make real the "complete clang build" scenario -- and this is the very first glibc that's able to do that. But I will go with the team on this. There is, as always, a bit of a chicken and egg situation -- the sooner a distro uses glibc, the sooner the repo authors start getting PRs and such. |
The CI I mentioned triggered on testing an Arch build. |
I assume there's a difference in when you started doing this vs. when you opened the PR given the amount of fixes you already had, no? Btw just thought I might drop it here, we're considering to delay anyways so I'd really like to schedule the following security-update first: #503779
This is always a slippery slope IMHO: whenever there are some notable changes in the actual API, fixing the critical mass of all regressions will take a while. That being said, I'm sure a lot of projects welcome these kinds of fixes ;-) |
|
Hydra built ~40% of this, but I'm pausing it for now. |
This comment was marked as outdated.
This comment was marked as outdated.
Update the minimal-bootstrap glibc from 2.42 to 2.43. glibc 2.43 introduces C23 const-preserving macros for strchr and similar functions, which causes a -Werror=discarded-qualifiers failure in libgomp when building GCC 15.2.0. Apply the upstream fix from gcc commit 9c9d3aef2f66 via sed.
glibc 2.43 implements C23 const-preserving macros for strchr and similar functions. This causes -Werror=discarded-qualifiers in libgomp/affinity-fmt.c when building GCC 15.2.0. Backport upstream fix from gcc commit 9c9d3aef2f66. Uses --replace-fail so the build will fail when GCC ships the fix (>= 15.3 or >= 16.1), prompting removal of this workaround.
Update the main glibc from 2.42 to 2.43. Changes: - Replace 2.42-master.patch with 2.43-master.patch (21 commits from the stable branch) - Rebase dont-use-system-ld-so-cache.patch for elf/Makefile and elf/ldconfig.c changes - Rebase 0001-Revert-...BASH...patch for copyright year and line number changes - Rebase 0001-aarch64-math-vector.h-add-NVCC-include-guard.patch for restructured math-vector.h - Drop fix-x64-abi.patch: upstream has had a proper assembly fix in sysdeps/x86_64/tls_get_addr.S since glibc 2.27, making this C-level workaround redundant glibc 2.43 introduces C23 const-preserving macros for strchr, strstr, memchr and similar functions. Combined with GCC 15's default -std=gnu23 mode, packages using -Werror will fail with -Wdiscarded-qualifiers when assigning these return values to non-const pointers. libfaketime is patched here as it's in the nixosTests.simple closure. Includes two CVE fixes: - CVE-2026-4437: resolv: Count records correctly - CVE-2026-4438: resolv: Check hostname for validity
glibc 2.43 introduces C23 const-preserving macros for strchr, strstr, memchr and similar functions. Combined with GCC 15's -Werror defaults, several packages fail to build. - libfaketime: add -Wno-error=discarded-qualifiers - libtpms: add -Wno-error=discarded-qualifiers - krb5: add -Wno-error=discarded-qualifiers - dtc: add -Wno-error=discarded-qualifiers - librist: add -Wno-error=discarded-qualifiers - elfutils: add -Wno-error=discarded-qualifiers - grub: add -Wno-error=discarded-qualifiers - bpftools: add -Wno-error=discarded-qualifiers - pipewire: add -Wno-error=discarded-qualifiers - sane-backends: backport upstream patches removing unnecessary (const char *) casts from strchr calls - ldb: backport upstream samba commit 04e0fb9b2d fixing memset_explicit arg count (C23 memset_explicit takes 3 args, not 4)
|
The patch set from upstream grew from -14 to -21:
I successfully built and ran |
|
Actually, will we be missing 26.05, as a glibc major upgrade would get restricted in about a week?
|
|
Repeating what I said in the Staging matrix channel about sending this for 26.05:
|
|
I don't care too much about hitting or not hitting 26.05 -- I've lived off master for my entire NixOS journey. I'll go with the team. I just wish it weren't a two-month delay in practice due to the amount of stuff that accretes to staging. |
|
Soon-ish after branch-off is the ideal time to get riskier changes into unstable/master 🙂 |
|
Any update on this? |
|
I'm currently preparing 2.44. |
|
So you think that we should skip 2.43? |
|
For reference, feel free to ask for a jobset for whatever is getting ready to merge. Since the queue-runner upgrade we tend to have a free day or two of x86_64-linux power on Hydra roughly weekly, so that's quite useful for similar projects. |
Announcements: * https://inbox.sourceware.org/libc-announce/13932477.uLZWGnKmhe@pinacolada/T/#u * https://inbox.sourceware.org/libc-announce/[email protected]/T/#u Closes NixOS#502924
Announcements: * https://inbox.sourceware.org/libc-announce/13932477.uLZWGnKmhe@pinacolada/T/#u * https://inbox.sourceware.org/libc-announce/[email protected]/T/#u Closes NixOS#502924
Announcements: * https://inbox.sourceware.org/libc-announce/13932477.uLZWGnKmhe@pinacolada/T/#u * https://inbox.sourceware.org/libc-announce/[email protected]/T/#u Closes NixOS#502924
|
closing due to the merge of #557451 |
Hey, it's a new glibc!
What's in glibc 2.43
What I changed in nixpkgs
glibc patches:
GCC 15.2.0 libgomp fix (backport of upstream 9c9d3aef2f66):
Package fixes for C23 const-preserving macros (-Wno-error=discarded-qualifiers):
Proper upstream fixes backported:
Other fixes:
Test results
35+ NixOS tests pass including:
... and more.
30+ major packages pass including: linux, systemd, python3, postgresql, nginx, openssh, git, rustc, go, nodejs, clang, docker, qemu, vim, emacs, mesa, xorg, pipewire, pulseaudio, vlc, ffmpeg, libreoffice, gimp, samba, and more.
Known remaining failures
Likely both of these will need something from upstream, but I expect that'll happen.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.