Bump glibc to 2.41
cover Bump glibc to 2.41
Hello,
glibc 2.41 was released recently, and we want to give a try to have it in 2025.02, so now is the good time to do the version bump.
While doing the bump, we noticed that a few IGNORE_CVES entries had become irrelevant, which is solved by PATCH 1/2.
The bump itself is mostly boring, with just a minor tweak to a patch against localedef.
A quick read of the glibc 2.41 release notes doesn't really show anything that would cause major breakage, but of course the devil is in the details, and only an autobuilder pass on this stuff will tell us.
Thomas
Thomas Petazzoni (2):
package/glibc: drop bogus IGNORE_CVES entries
package/{glibc,localedef}: bump to version 2.41
package/glibc/glibc.hash | 2 +- package/glibc/glibc.mk | 15 ++------------- ...01-HACK-only-build-and-install-localedef.patch | 10 +++++----- ...dency-on-GCC-to-4.8-and-binutils-to-2.24.patch | 10 +++++----- ...SOC23_SOURCE-undefined-to-build-localede.patch | 14 ++++++++------ package/localedef/localedef.mk | 2 +- 6 files changed, 22 insertions(+), 31 deletions(-)
Signature · 6 lines
2.48.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/2 package/glibc: drop bogus IGNORE_CVES entries
When glibc was bumped from 2.39 to 2.40 in commit 74cb378aff231c4f4605d7f479b9ae1a7a4e1fb6 ("package/{glibc, localdef}:
bump to version 2.40"), the IGNORE_CVES entries should have been dropped, as they were applicable to the 2.39 branch. Drop them now.
We did verify the pkg-stats output, and those CVEs don't show up as affecting glibc even after this change, as expected.
--- package/glibc/glibc.mk | 12 ------------ 1 file changed, 12 deletions(-)
package/glibc/glibc.mk +0 -12
@@ -24,18 +24,6 @@ GLIBC_CPE_ID_VENDOR = gnu # allow proper matching with the CPE database. GLIBC_CPE_ID_VERSION = $(word 1, $(subst -,$(space),$(GLIBC_VERSION))) -# Fixed by glibc-2.39-31-g31da30f23cddd36db29d5b6a1c7619361b271fb4 -GLIBC_IGNORE_CVES += CVE-2024-2961 - -# Fixed by glibc-2.39-35-g1263d583d2e28afb8be53f8d6922f0842036f35d -GLIBC_IGNORE_CVES += CVE-2024-33599 - -# Fixed by glibc-2.39-37-gc99f886de54446cd4447db6b44be93dabbdc2f8b -GLIBC_IGNORE_CVES += CVE-2024-33600 - -# Fixed by glibc-2.39-38-ga9a8d3eebb145779a18d90e3966009a1daa63cd -GLIBC_IGNORE_CVES += CVE-2024-33601 CVE-2024-33602 - # All these CVEs are considered as not being security issues by # upstream glibc: # https://security-tracker.debian.org/tracker/CVE-2010-4756
Signature · 6 lines
2.48.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/2] package/glibc: drop bogus IGNORE_CVES entries
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:
When glibc was bumped from 2.39 to 2.40 in commit
74cb378aff231c4f4605d7f479b9ae1a7a4e1fb6("package/{glibc, localdef}:
bump to version 2.40"), theIGNORE_CVESentries should have been dropped, as they were applicable to the 2.39 branch. Drop them now.We did verify the pkg-stats output, and those CVEs don't show up as affecting glibc even after this change, as expected.
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/2] package/glibc: drop bogus IGNORE_CVES entries
In reply to Thomas Petazzoni via buildrootQuoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:
When glibc was bumped from 2.39 to 2.40 in commit
74cb378aff231c4f4605d7f479b9ae1a7a4e1fb6("package/{glibc, localdef}:
bump to version 2.40"), theIGNORE_CVESentries should have been dropped, as they were applicable to the 2.39 branch. Drop them now.We did verify the pkg-stats output, and those CVEs don't show up as affecting glibc even after this change, as expected.
Signed-off-by Thomas Petazzoni <[email protected]>
Committed to 2024.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/{glibc, localedef}: bump to version 2.41
In reply to Thomas Petazzoni via buildrootRelease notes:
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
The only thing that required a small change is our 0003-HACK-keep-_ISOC23_SOURCE-undefined-to-build-localede.patch to continue to fix the build issue it aims at fixing, by taking into account changes in glibc 2.41.
--- package/glibc/glibc.hash | 2 +- package/glibc/glibc.mk | 3 ++- ...001-HACK-only-build-and-install-localedef.patch | 10 +++++----- ...ndency-on-GCC-to-4.8-and-binutils-to-2.24.patch | 10 +++++----- ...ISOC23_SOURCE-undefined-to-build-localede.patch | 14 ++++++++------ package/localedef/localedef.mk | 2 +- 6 files changed, 22 insertions(+), 19 deletions(-)
package/glibc/glibc.hash +1 -1
@@ -1,5 +1,5 @@ # Locally calculated (fetched from Github) -sha256 6426766187d177412e7f3daed793dec93fce417db5ae99296c0d880aa808091e glibc-2.40-18-g5641780762723156b0d20a0b9f7df1d76831bab0.tar.gz +sha256 ed2cd1f058f22f682e700c5be408975db62025a14863a5a6700ee93d5927504e glibc-2.41-5-gcb7f20653724029be89224ed3a35d627cc5b4163.tar.gz # Hashes for license files sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
package/glibc/glibc.mk +2 -1
@@ -7,7 +7,8 @@ # Generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- # When updating the version, please also update localedef -GLIBC_VERSION = 2.40-18-g5641780762723156b0d20a0b9f7df1d76831bab0 +GLIBC_VERSION = 2.41-5-gcb7f20653724029be89224ed3a35d627cc5b4163 + # Upstream doesn't officially provide an https download link. # There is one (https://sourceware.org/git/glibc.git) but it's not reliable, # sometimes the connection times out. So use an unofficial github mirror.
package/localedef/0001-HACK-only-build-and-install-localedef.patch +5 -5
@@ -1,4 +1,4 @@ -From 03b1573ca341f1852ac05a884a68ed375cceccc0 Mon Sep 17 00:00:00 2001 +From b90ae9abee7e5cc3a92b053f00db959c853a745e Mon Sep 17 00:00:00 2001 From: Michael Olbrich <[email protected]> Date: Mon, 21 May 2018 16:45:02 +0200 Subject: [PATCH] HACK: only build and install localedef
@@ -17,10 +17,10 @@ Signed-off-by: Yann E. MORIN <[email protected]> 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Rules b/Rules -index 9010c5d5b2..f5e5525061 100644 +index c8adc00008..4acf69790f 100644 --- a/Rules +++ b/Rules -@@ -223,10 +223,16 @@ binaries-shared-notests = $(filter-out $(binaries-pie) $(binaries-static), \ +@@ -234,10 +234,16 @@ binaries-shared-notests = $(filter-out $(binaries-pie) $(binaries-static), \ $(binaries-all-notests)) ifneq "$(strip $(binaries-shared-notests))" ""
@@ -42,7 +42,7 @@ index 9010c5d5b2..f5e5525061 100644 ifneq "$(strip $(binaries-shared-tests))" "" diff --git a/locale/Makefile b/locale/Makefile -index 2810f28605..6b4cc9e831 100644 +index 9d9c1a7691..4d26032c15 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -76,7 +76,6 @@ aux = \
@@ -70,5 +70,5 @@ index 2810f28605..6b4cc9e831 100644 libBrokenLocale-routines = broken_cur_max -- -2.45.2 +2.48.1
package/localedef/0002-relax-dependency-on-GCC-to-4.8-and-binutils-to-2.24.patch +5 -5
@@ -1,4 +1,4 @@ -From 1ddee6fdcde6b12df22619380d51b47e6c8f2c08 Mon Sep 17 00:00:00 2001 +From df211e396f3a2183eed33dc3ac05ecea6bc16f0a Mon Sep 17 00:00:00 2001 From: Matt Weber <[email protected]> Date: Thu, 6 Feb 2020 14:36:21 -0600 Subject: [PATCH] relax dependency on GCC to 4.8 and binutils to 2.24
@@ -35,10 +35,10 @@ Signed-off-by: Yann E. MORIN <[email protected]> 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure -index 1d543548cd..3e13c46b2e 100755 +index eb8abd0054..24abd55594 100755 --- a/configure +++ b/configure -@@ -5302,7 +5302,7 @@ printf %s "checking version of $LD... " >&6; } +@@ -5329,7 +5329,7 @@ printf %s "checking version of $LD... " >&6; } ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
@@ -47,7 +47,7 @@ index 1d543548cd..3e13c46b2e 100755 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; -@@ -5750,7 +5750,7 @@ int +@@ -5777,7 +5777,7 @@ int main (void) {
@@ -57,5 +57,5 @@ index 1d543548cd..3e13c46b2e 100755 #endif ; -- -2.45.2 +2.48.1
package/localedef/0003-HACK-keep-_ISOC23_SOURCE-undefined-to-build-localede.patch +8 -6
@@ -1,4 +1,4 @@ -From efc989e7e5dcbc38ccc32634e49cfc2881c5a318 Mon Sep 17 00:00:00 2001 +From 7f52329793c88260260631593c9bc558b7eb01f8 Mon Sep 17 00:00:00 2001 From: Romain Naour <[email protected]> Date: Sat, 9 Sep 2023 23:58:50 +0200 Subject: [PATCH] HACK: keep _ISOC23_SOURCE undefined to build localedef with
@@ -15,21 +15,23 @@ Signed-off-by: Romain Naour <[email protected]> to _ISOC23_SOURCE] Signed-off-by: Thomas Petazzoni <[email protected]> --- - include/features.h | 1 - - 1 file changed, 1 deletion(-) + include/features.h | 2 -- + 1 file changed, 2 deletions(-) diff --git a/include/features.h b/include/features.h -index 093de6f44c..8d9ca6e402 100644 +index 44bc4bbc85..c856368a71 100644 --- a/include/features.h +++ b/include/features.h -@@ -215,7 +215,6 @@ +@@ -217,9 +217,7 @@ # undef _ISOC11_SOURCE # define _ISOC11_SOURCE 1 # undef _ISOC23_SOURCE -# define _ISOC23_SOURCE 1 + # undef _ISOC2Y_SOURCE +-# define _ISOC2Y_SOURCE 1 # undef _POSIX_SOURCE # define _POSIX_SOURCE 1 # undef _POSIX_C_SOURCE -- -2.45.2 +2.48.1
package/localedef/localedef.mk +1 -1
@@ -7,7 +7,7 @@ # Use the same VERSION and SITE as target glibc # As in glibc.mk, generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- -LOCALEDEF_VERSION = 2.40-18-g5641780762723156b0d20a0b9f7df1d76831bab0 +LOCALEDEF_VERSION = 2.41-5-gcb7f20653724029be89224ed3a35d627cc5b4163 LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION).tar.gz LOCALEDEF_SITE = $(call github,bminor,glibc,$(LOCALEDEF_VERSION)) HOST_LOCALEDEF_DL_SUBDIR = glibc
Signature · 6 lines
2.48.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/{glibc, localedef}: bump to version 2.41
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:
Release notes:
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.htmlThe only thing that required a small change is our 0003-HACK-keep-_ISOC23_SOURCE-undefined-to-build-localede.patch to continue to fix the build issue it aims at fixing, by taking into account changes in glibc 2.41.
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot