glibc: Upgrade to 2.39
PATCH 1/2 glibc: Upgrade to 2.39
License-Update: Relicenses the IBM portions of resolv/base64.c and resolv/res_debug.c to a new license that does not have use-limited patent language [1]
Upgrade localdef to get glibc 2.39 build fixes
Details of release [2]
Add fix for mips clone3 crash
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f
[2] https://sourceware.org/glibc/wiki/Release/2.39
---
meta/conf/distro/include/tcmode-default.inc | 2 +-
...2.38.bb => cross-localedef-native_2.39.bb} | 2 +-
meta/recipes-core/glibc/glibc-common.inc | 4 +-
...bc-locale_2.38.bb => glibc-locale_2.39.bb} | 0
...bc-mtrace_2.38.bb => glibc-mtrace_2.39.bb} | 0
...-scripts_2.38.bb => glibc-scripts_2.39.bb} | 0
...tsuite_2.38.bb => glibc-testsuite_2.39.bb} | 0
meta/recipes-core/glibc/glibc-version.inc | 8 +-
...ests_2.38.bb => glibc-y2038-tests_2.39.bb} | 0
...dd-hardlink-resolver-from-util-linux.patch | 2 +-
...-fix-ups-hardlink-to-make-it-compile.patch | 2 +-
...Look-for-host-system-ld.so.cache-as-.patch | 8 +-
...Fix-buffer-overrun-with-a-relocated-.patch | 4 +-
...Raise-the-size-of-arrays-containing-.patch | 22 ++---
...k-glibc-Allow-64-bit-atomics-for-x86.patch | 4 +-
...Make-relocatable-install-for-locales.patch | 10 +--
...Fall-back-to-faccessat-on-faccess2-r.patch | 4 +-
...the-path-sets-wrong-config-variables.patch | 2 +-
...ss-building-and-testing-instructions.patch | 2 +-
...glibc-Help-bootstrap-cross-toolchain.patch | 4 +-
...eglibc-Resolve-__fpscr_values-on-SH4.patch | 4 +-
...port-cross-locale-generation-support.patch | 46 +++++-----
...-archive-uses-a-hard-coded-locale-pa.patch | 4 +-
...Do-not-ask-compiler-for-finding-arch.patch | 2 +-
...y-the-header-between-arm-and-aarch64.patch | 4 +-
...h-printf-builtin-in-nscd-init-script.patch | 2 +-
...igure.ac-Set-libc_cv_rootsbindir-onl.patch | 2 +-
...ell-interpreter-overridable-in-tzsel.patch | 6 +-
...Use-bin-sh-default-shell-interpreter.patch | 2 +-
...d-failed-in-unprivileged-process-BZ-.patch | 6 +-
...build-time-paths-in-the-output-binar.patch | 6 +-
...e-Pass-mcpu-along-with-march-to-dete.patch | 5 +-
...s-FIx-clone3-implementation-BZ-31325.patch | 83 +++++++++++++++++++
.../glibc/{glibc_2.38.bb => glibc_2.39.bb} | 1 +
34 files changed, 166 insertions(+), 87 deletions(-)
rename meta/recipes-core/glibc/{cross-localedef-native_2.38.bb => cross-localedef-native_2.39.bb} (96%)
rename meta/recipes-core/glibc/{glibc-locale_2.38.bb => glibc-locale_2.39.bb} (100%)
rename meta/recipes-core/glibc/{glibc-mtrace_2.38.bb => glibc-mtrace_2.39.bb} (100%)
rename meta/recipes-core/glibc/{glibc-scripts_2.38.bb => glibc-scripts_2.39.bb} (100%)
rename meta/recipes-core/glibc/{glibc-testsuite_2.38.bb => glibc-testsuite_2.39.bb} (100%)
rename meta/recipes-core/glibc/{glibc-y2038-tests_2.38.bb => glibc-y2038-tests_2.39.bb} (100%)
create mode 100644 meta/recipes-core/glibc/glibc/0024-mips-FIx-clone3-implementation-BZ-31325.patch
rename meta/recipes-core/glibc/{glibc_2.38.bb => glibc_2.39.bb} (98%)meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -20,7 +20,7 @@ GCCVERSION ?= "13.%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.42%" GDBVERSION ?= "14.%" -GLIBCVERSION ?= "2.38%" +GLIBCVERSION ?= "2.39%" LINUXLIBCVERSION ?= "6.6%" QEMUVERSION ?= "8.2%" GOVERSION ?= "1.20%"
meta/recipes-core/glibc/cross-localedef-native_2.39.bb renamed from meta/recipes-core/glibc/cross-localedef-native_2.38.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" SECTION = "libs" LICENSE = "LGPL-2.1-only" -LIC_FILES_CHKSUM = "file://LICENSES;md5=1541fd8f5e8f1579512bf05f533371ba \ +LIC_FILES_CHKSUM = "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \ file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
meta/recipes-core/glibc/glibc-common.inc +2 -2
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" SECTION = "libs" LICENSE = "GPL-2.0-only & LGPL-2.1-only" -LIC_FILES_CHKSUM ?= "file://LICENSES;md5=1541fd8f5e8f1579512bf05f533371ba \ +LIC_FILES_CHKSUM ?= "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \ file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
@@ -22,4 +22,4 @@ ARM_INSTRUCTION_SET:armv6 = "arm" # COMPATIBLE_HOST:libc-musl:class-target = "null" -PV = "2.38" +PV = "2.39+git"
meta/recipes-core/glibc/glibc-locale_2.39.bb renamed from meta/recipes-core/glibc/glibc-locale_2.38.bb +0 -0
meta/recipes-core/glibc/glibc-mtrace_2.39.bb renamed from meta/recipes-core/glibc/glibc-mtrace_2.38.bb +0 -0
meta/recipes-core/glibc/glibc-scripts_2.39.bb renamed from meta/recipes-core/glibc/glibc-scripts_2.38.bb +0 -0
meta/recipes-core/glibc/glibc-testsuite_2.39.bb renamed from meta/recipes-core/glibc/glibc-testsuite_2.38.bb +0 -0
meta/recipes-core/glibc/glibc-version.inc +4 -4
@@ -1,7 +1,7 @@ -SRCBRANCH ?= "release/2.38/master" -PV = "2.38+git" -SRCREV_glibc ?= "1e04dcec491bd8f48b5b74ce3e8414132578a645" -SRCREV_localedef ?= "e0eca29583b9e0f62645c4316ced93cf4e4e26e1" +SRCBRANCH ?= "release/2.39/master" +PV = "2.39+git" +SRCREV_glibc ?= "6d1e3fb07b45e2e31e469b16cf21b24bccf8914c" +SRCREV_localedef ?= "fab74f31b3811df543e24b6de47efdf45b538abc" GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https"
meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb renamed from meta/recipes-core/glibc/glibc-y2038-tests_2.38.bb +0 -0
meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch +1 -1
@@ -1,4 +1,4 @@ -From 7c06ca59b47ce06f785b9fce7b9e9d675d5b6e10 Mon Sep 17 00:00:00 2001 +From 544d23dea91b2be793c805b9e4bce8cd1d28121f Mon Sep 17 00:00:00 2001 From: Jason Wessel <[email protected]> Date: Sat, 7 Dec 2019 09:59:22 -0800 Subject: [PATCH] localedef: Add hardlink resolver from util-linux
meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch +1 -1
@@ -1,4 +1,4 @@ -From 9ff5200eb16e9c89ca8da89d7e07975d082a13b0 Mon Sep 17 00:00:00 2001 +From ebb1e37285ab541135005cfe945b7a58e4b95040 Mon Sep 17 00:00:00 2001 From: Jason Wessel <[email protected]> Date: Sat, 7 Dec 2019 10:01:37 -0800 Subject: [PATCH] localedef: fix-ups hardlink to make it compile
meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch +4 -4
@@ -1,4 +1,4 @@ -From 0d996c5600603a67f0265e870511cdd18dbaa8a6 Mon Sep 17 00:00:00 2001 +From 9770abfda8e85fe027f95871bc03450d05b1e2c8 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:48:24 +0000 Subject: [PATCH] nativesdk-glibc: Look for host system ld.so.cache as well
@@ -30,10 +30,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/elf/dl-load.c b/elf/dl-load.c -index 9a87fda9c9..0a6fa9b8f0 100644 +index ce8fdea302..1f502eb026 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c -@@ -2102,6 +2102,14 @@ _dl_map_object (struct link_map *loader, const char *name, +@@ -2105,6 +2105,14 @@ _dl_map_object (struct link_map *loader, const char *name, } }
@@ -48,7 +48,7 @@ index 9a87fda9c9..0a6fa9b8f0 100644 #ifdef USE_LDCONFIG if (fd == -1 && (__glibc_likely ((mode & __RTLD_SECURE) == 0) -@@ -2160,14 +2168,6 @@ _dl_map_object (struct link_map *loader, const char *name, +@@ -2163,14 +2171,6 @@ _dl_map_object (struct link_map *loader, const char *name, } #endif
meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch +2 -2
@@ -1,4 +1,4 @@ -From c3492719b2deaf3339eefb1ab30f4337e592ed80 Mon Sep 17 00:00:00 2001 +From 587b92ff99e6d8f59c461ee8beecae39d8818f7e Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:50:00 +0000 Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK
@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 12 insertions(+) diff --git a/elf/dl-load.c b/elf/dl-load.c -index 0a6fa9b8f0..3a23dc618c 100644 +index 1f502eb026..c4a543fb00 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1802,7 +1802,19 @@ open_path (const char *name, size_t namelen, int mode,
meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch +11 -11
@@ -1,4 +1,4 @@ -From e874dacbfdb06520240887e9077c58006ee33f87 Mon Sep 17 00:00:00 2001 +From 49caf586b80ba030a0ee4af9f6128ff2979ea636 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:51:38 +0000 Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths
@@ -26,7 +26,7 @@ Signed-off-by: Khem Raj <[email protected]> 8 files changed, 15 insertions(+), 10 deletions(-) diff --git a/elf/dl-cache.c b/elf/dl-cache.c -index 804bf23222..d99501c389 100644 +index 85f3f179ed..cc55887c56 100644 --- a/elf/dl-cache.c +++ b/elf/dl-cache.c @@ -352,6 +352,10 @@ search_cache (const char *string_table, uint32_t string_table_size,
@@ -41,7 +41,7 @@ index 804bf23222..d99501c389 100644 _dl_cache_libcmp (const char *p1, const char *p2) { diff --git a/elf/dl-load.c b/elf/dl-load.c -index 3a23dc618c..563e703096 100644 +index c4a543fb00..27fb70f09b 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -117,8 +117,8 @@ enum { ncapstr = 1, max_capstrlen = 0 };
@@ -56,7 +56,7 @@ index 3a23dc618c..563e703096 100644 SYSTEM_DIRS_LEN }; diff --git a/elf/dl-usage.c b/elf/dl-usage.c -index 98f0b0d027..ab4f76e1fe 100644 +index 5baac4ba8e..60097ad0e2 100644 --- a/elf/dl-usage.c +++ b/elf/dl-usage.c @@ -25,6 +25,8 @@
@@ -68,7 +68,7 @@ index 98f0b0d027..ab4f76e1fe 100644 void _dl_usage (const char *argv0, const char *wrong_option) { -@@ -184,7 +186,7 @@ setting environment variables (which would be inherited by subprocesses).\n\ +@@ -185,7 +187,7 @@ setting environment variables (which would be inherited by subprocesses).\n\ --list list all dependencies and how they are resolved\n\ --verify verify that given object really is a dynamically linked\n\ object we can handle\n\
@@ -77,7 +77,7 @@ index 98f0b0d027..ab4f76e1fe 100644 --library-path PATH use given PATH instead of content of the environment\n\ variable LD_LIBRARY_PATH\n\ --glibc-hwcaps-prepend LIST\n\ -@@ -203,7 +205,7 @@ setting environment variables (which would be inherited by subprocesses).\n\ +@@ -204,7 +206,7 @@ setting environment variables (which would be inherited by subprocesses).\n\ \n\ This program interpreter self-identifies as: " RTLD "\n\ ",
@@ -87,7 +87,7 @@ index 98f0b0d027..ab4f76e1fe 100644 print_hwcaps_subdirectories (state); _exit (EXIT_SUCCESS); diff --git a/elf/interp.c b/elf/interp.c -index ae21ae0cb3..b168e6da66 100644 +index 8b705824bf..7d094829f3 100644 --- a/elf/interp.c +++ b/elf/interp.c @@ -18,5 +18,5 @@
@@ -98,7 +98,7 @@ index ae21ae0cb3..b168e6da66 100644 +const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) = RUNTIME_LINKER; diff --git a/elf/ldconfig.c b/elf/ldconfig.c -index d26eef1fb4..e5af6e5c01 100644 +index b64c54b53e..caf7001745 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -150,6 +150,8 @@ static struct argp argp =
@@ -111,7 +111,7 @@ index d26eef1fb4..e5af6e5c01 100644 static error_t parse_opt (int key, char *arg, struct argp_state *state) diff --git a/elf/rtld.c b/elf/rtld.c -index a91e2a4471..56d816d4d9 100644 +index 4f494b792e..d1c1252188 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -190,6 +190,7 @@ dso_name_valid_for_suid (const char *p)
@@ -123,7 +123,7 @@ index a91e2a4471..56d816d4d9 100644 static void audit_list_init (struct audit_list *list) diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c -index ee9e97e1bd..01a99382d0 100644 +index 1063c31a2b..57fa832e52 100644 --- a/iconv/gconv_conf.c +++ b/iconv/gconv_conf.c @@ -35,7 +35,7 @@
@@ -136,7 +136,7 @@ index ee9e97e1bd..01a99382d0 100644 /* Type to represent search path. */ struct path_elem diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h -index bd39ff7fb7..38f9e2ad57 100644 +index 919e49ffc8..cd3f8ba94b 100644 --- a/sysdeps/generic/dl-cache.h +++ b/sysdeps/generic/dl-cache.h @@ -34,10 +34,6 @@
meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch +2 -2
@@ -1,4 +1,4 @@ -From 76eaf7340a7f9063ab1ad2d7c6c0e205f22f544c Mon Sep 17 00:00:00 2001 +From 3a94365c730d174a3c30c6d9282e6ca12d9ad091 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 31 Dec 2015 14:35:35 -0800 Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h -index 95663099e4..4d81efc51a 100644 +index cfd395087b..28a937c468 100644 --- a/sysdeps/x86/atomic-machine.h +++ b/sysdeps/x86/atomic-machine.h @@ -26,19 +26,14 @@
meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch +5 -5
@@ -1,4 +1,4 @@ -From ef8bb46455d602cb00caf59b2044a9a23b240cc2 Mon Sep 17 00:00:00 2001 +From 296bdde0683aa55cdea0fd0cab05ff8fbc462b17 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 3 Aug 2018 09:55:12 -0700 Subject: [PATCH] nativesdk-glibc: Make relocatable install for locales
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <[email protected]> 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/locale/findlocale.c b/locale/findlocale.c -index 1b7034348b..939d4fd613 100644 +index 8d6e4e33e3..bfe74f241d 100644 --- a/locale/findlocale.c +++ b/locale/findlocale.c @@ -55,7 +55,7 @@ struct __locale_data *const _nl_C[] attribute_hidden =
@@ -41,7 +41,7 @@ index 1b7034348b..939d4fd613 100644 else /* We really have to load some data. First see whether the name is diff --git a/locale/loadarchive.c b/locale/loadarchive.c -index 5b857d5d24..e642912e2a 100644 +index 452e3eb6e3..c7467aec42 100644 --- a/locale/loadarchive.c +++ b/locale/loadarchive.c @@ -42,7 +42,7 @@
@@ -54,7 +54,7 @@ index 5b857d5d24..e642912e2a 100644 /* Size of initial mapping window, optimal if large enough to cover the header plus the initial locale. */ diff --git a/locale/localeinfo.h b/locale/localeinfo.h -index 8bbf281427..7a930079a5 100644 +index ed698faef1..f7efc288a5 100644 --- a/locale/localeinfo.h +++ b/locale/localeinfo.h @@ -347,7 +347,7 @@ _nl_lookup_word (locale_t l, int category, int item)
@@ -67,7 +67,7 @@ index 8bbf281427..7a930079a5 100644 /* Load the locale data for CATEGORY from the file specified by *NAME. If *NAME is "", use environment variables as specified by POSIX, and diff --git a/locale/programs/locale.c b/locale/programs/locale.c -index 1d1a9b2f00..d9ed395b39 100644 +index c7ee1874e8..8281e32236 100644 --- a/locale/programs/locale.c +++ b/locale/programs/locale.c @@ -631,6 +631,7 @@ nameentcmp (const void *a, const void *b)
meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch +2 -2
@@ -1,4 +1,4 @@ -From 7f05e35c675a6d1af2144b4cfbabab250de43f38 Mon Sep 17 00:00:00 2001 +From 70da806febac8b2eead6ddc32451bbc1787a1d7d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 6 Mar 2021 14:48:56 -0800 Subject: [PATCH] nativesdk-glibc: Fall back to faccessat on faccess2 returns
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c -index 0ccbd778b5..9df1a0fe12 100644 +index 2fa57fd63d..4d0d5ff0c4 100644 --- a/sysdeps/unix/sysv/linux/faccessat.c +++ b/sysdeps/unix/sysv/linux/faccessat.c @@ -30,7 +30,11 @@ __faccessat (int fd, const char *file, int mode, int flag)
meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch +1 -1
@@ -1,4 +1,4 @@ -From 70e721856c3ebf6ae0ea84b828396bd2af090acf Mon Sep 17 00:00:00 2001 +From 2192588942c5bc3b5fa10fc6d7433923f42e9ba0 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:31:06 +0000 Subject: [PATCH] 'yes' within the path sets wrong config variables
meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch +1 -1
@@ -1,4 +1,4 @@ -From 9625e90bdf35774c71f1e566e73d435e38c04171 Mon Sep 17 00:00:00 2001 +From ce8b13bdf488058754fce573754cea0b022c37e2 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:42:58 +0000 Subject: [PATCH] eglibc: Cross building and testing instructions
meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch +2 -2
@@ -1,4 +1,4 @@ -From cf2126b2d6e073137a3a7d9bcc261e0a760a82da Mon Sep 17 00:00:00 2001 +From 65b79161b9e2848a174d3519a03348884f182975 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:49:28 +0000 Subject: [PATCH] eglibc: Help bootstrap cross toolchain
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <[email protected]> create mode 100644 include/stubs-bootstrap.h diff --git a/Makefile b/Makefile -index c6d4817a9e..b4b0e23560 100644 +index 7052b46df8..46073abaa8 100644 --- a/Makefile +++ b/Makefile @@ -79,9 +79,18 @@ subdir-dirs = include
meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch +2 -2
@@ -1,4 +1,4 @@ -From 61948c02226acea68d34313cc6286ee1ab44a98c Mon Sep 17 00:00:00 2001 +From 07a5fa22a9a8bbd43982c1b35132f8c2d5276bfe Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:55:53 +0000 Subject: [PATCH] eglibc: Resolve __fpscr_values on SH4
@@ -33,7 +33,7 @@ index 3ad702e165..931985b5d6 100644 # a* alphasort64; diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.S b/sysdeps/unix/sysv/linux/sh/sysdep.S -index 9d85ff99a0..6bda921ca3 100644 +index d5d8c5e033..f356d02077 100644 --- a/sysdeps/unix/sysv/linux/sh/sysdep.S +++ b/sysdeps/unix/sysv/linux/sh/sysdep.S @@ -30,3 +30,14 @@ ENTRY (__syscall_error)
meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch +22 -24
126 lines not on this page · raw message
meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch +2 -2
@@ -1,4 +1,4 @@ -From 653b0631f80f17abe01957c06ef8a8d5d189b789 Mon Sep 17 00:00:00 2001 +From f4b1d6429298c0f8a2aa29ff559eb2093ea0188f Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 3 Aug 2018 09:42:06 -0700 Subject: [PATCH] localedef --add-to-archive uses a hard-coded locale path
@@ -18,7 +18,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c -index 71fd9f34fa..cd3eb90ad5 100644 +index 8d79a1b6d1..6dc7ecd4e7 100644 --- a/locale/programs/locarchive.c +++ b/locale/programs/locarchive.c @@ -339,12 +339,24 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head)
meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch +1 -1
@@ -1,4 +1,4 @@ -From fae5ee7d7b9dca2f25684a99f7046042d870235f Mon Sep 17 00:00:00 2001 +From 2d064c0c1243ea0bf405909285d7cddca92cf097 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 7 Aug 2020 14:31:16 -0700 Subject: [PATCH] powerpc: Do not ask compiler for finding arch
meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch +2 -2
@@ -1,4 +1,4 @@ -From 91a7848698ce6c96c646f3a170714ee71eab6884 Mon Sep 17 00:00:00 2001 +From b1c374f7ede81a98f2d02def2c7ca17f1001f7cb Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 15 May 2020 17:05:45 -0700 Subject: [PATCH] wordsize.h: Unify the header between arm and aarch64
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <[email protected]> create mode 120000 sysdeps/arm/bits/wordsize.h diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h -index 04d4be9519..63876a7830 100644 +index 118e59172d..b4b0692eb5 100644 --- a/sysdeps/aarch64/bits/wordsize.h +++ b/sysdeps/aarch64/bits/wordsize.h @@ -17,12 +17,16 @@
meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch +1 -1
@@ -1,4 +1,4 @@ -From 63611cfd3b25f3656db168aee41a5850ac769dfc Mon Sep 17 00:00:00 2001 +From 0aac3b8ee5b13e289b6969da51de384443286a5b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 31 Dec 2015 14:33:02 -0800 Subject: [PATCH] Replace echo with printf builtin in nscd init script
meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch +1 -1
@@ -1,4 +1,4 @@ -From 912ccb5001ffa5355caff09354558e89e9aa937b Mon Sep 17 00:00:00 2001 +From 7a25d4796411f22f824742092a4c2a08df99752d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:27:10 +0000 Subject: [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its
meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch +3 -3
@@ -1,4 +1,4 @@ -From 1d518ac57b00a3335f80f10f899c1bc24a0ddbf5 Mon Sep 17 00:00:00 2001 +From 6aa1b835d95482287851e02abd3a406cbd0ef8c7 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 9 Dec 2021 15:14:42 -0800 Subject: [PATCH] timezone: Make shell interpreter overridable in tzselect.ksh
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 10 insertions(+) diff --git a/Makeconfig b/Makeconfig -index 77d7fd14df..e253046861 100644 +index 85e00cef94..643724108a 100644 --- a/Makeconfig +++ b/Makeconfig @@ -309,6 +309,15 @@ ifndef sysincludedir
@@ -34,7 +34,7 @@ index 77d7fd14df..e253046861 100644 # Commands to install files. ifndef INSTALL_DATA diff --git a/timezone/Makefile b/timezone/Makefile -index 0306c0bca9..4dfdcebdb7 100644 +index d7acb387ba..ec79326f66 100644 --- a/timezone/Makefile +++ b/timezone/Makefile @@ -136,6 +136,7 @@ $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch +1 -1
@@ -1,4 +1,4 @@ -From 7274541782927394852712ba0c8dfd67bd9b8b5b Mon Sep 17 00:00:00 2001 +From ef47e6199986c4951e681ed74f064042db1ae2e1 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 15 Dec 2021 21:47:53 -0800 Subject: [PATCH] tzselect.ksh: Use /bin/sh default shell interpreter
meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch +3 -3
@@ -1,4 +1,4 @@ -From 4a1bff4c1e34ad9b596a7ba44ab61f4c9d00097b Mon Sep 17 00:00:00 2001 +From 7254706544be5100843fc0a332e836fccffc9ef1 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <[email protected]> Date: Sun, 29 Aug 2021 20:49:16 +0800 Subject: [PATCH] fix create thread failed in unprivileged process [BZ #28287]
@@ -72,10 +72,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c -index 790739cfce..8d24d04917 100644 +index 40ef30303f..f97b1f6900 100644 --- a/sysdeps/unix/sysv/linux/clone-internal.c +++ b/sysdeps/unix/sysv/linux/clone-internal.c -@@ -106,7 +106,7 @@ __clone_internal (struct clone_args *cl_args, +@@ -98,7 +98,7 @@ __clone_internal (struct clone_args *cl_args, #ifdef HAVE_CLONE3_WRAPPER int saved_errno = errno; int ret = __clone3_internal (cl_args, func, arg);
meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch +3 -3
@@ -1,4 +1,4 @@ -From e61792fc978f9b8a9c790be468fbf97828ac8ae9 Mon Sep 17 00:00:00 2001 +From d39779afc72d34f87f052097592008cc38e20615 Mon Sep 17 00:00:00 2001 From: Richard Purdie <[email protected]> Date: Sun, 24 Jul 2022 07:07:29 -0700 Subject: [PATCH] Avoid hardcoded build time paths in the output binaries
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/Makefile b/support/Makefile -index 917a858bd1..17a747c8c7 100644 +index 362a51f882..56d2b37058 100644 --- a/support/Makefile +++ b/support/Makefile -@@ -227,9 +227,9 @@ libsupport-inhibit-o += .o +@@ -228,9 +228,9 @@ libsupport-inhibit-o += .o endif CFLAGS-support_paths.c = \
meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch +1 -4
@@ -1,4 +1,4 @@ -From d836f008a96aa9b2e88c7b394bfc110542e57176 Mon Sep 17 00:00:00 2001 +From f761f5ca2d453e11d34fc7d552dab4a0e189dae9 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 4 Aug 2023 09:34:50 -0700 Subject: [PATCH] aarch64/configure: Pass -mcpu along with -march to detect sve
@@ -51,6 +51,3 @@ index 8a708f2ef4..b6a146d2be 100644 libc_cv_aarch64_sve_asm=yes else libc_cv_aarch64_sve_asm=no --- -2.41.0 -
meta/recipes-core/glibc/glibc/0024-mips-FIx-clone3-implementation-BZ-31325.patch new file +83 -0
83 lines not on this page · raw message
meta/recipes-core/glibc/glibc_2.39.bb renamed from meta/recipes-core/glibc/glibc_2.38.bb +1 -0
@@ -51,6 +51,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \ file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \ file://0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch \ + file://0024-mips-FIx-clone3-implementation-BZ-31325.patch \ " S = "${WORKDIR}/git" B = "${WORKDIR}/build-${TARGET_SYS}"
Signature · 1 line
2.43.0
PATCH 2/2 glibc: Refresh CVE status w.r.t 2.39 release
From: Valek Andrej <[email protected]>
- drop irrelevant CVEs for 2.39 release
--- meta/recipes-core/glibc/glibc-version.inc | 5 ----- meta/recipes-core/glibc/glibc_2.39.bb | 2 -- 2 files changed, 7 deletions(-)
meta/recipes-core/glibc/glibc-version.inc +0 -5
@@ -7,9 +7,4 @@ GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)" -CVE_STATUS[CVE-2023-4527] = "fixed-version: Fixed in stable branch updates" CVE_STATUS[CVE-2023-4911] = "fixed-version: Fixed in stable branch updates" -CVE_STATUS[CVE-2023-4806] = "fixed-version: Fixed in stable branch updates" -CVE_STATUS[CVE-2023-5156] = "fixed-version: Fixed in stable branch updates" -CVE_STATUS[CVE-2023-4527] = "fixed-version: Fixed in stable branch updates" -CVE_STATUS[CVE-2023-0687] = "fixed-version: Fixed in stable branch updates"
meta/recipes-core/glibc/glibc_2.39.bb +0 -2
@@ -16,8 +16,6 @@ CVE_STATUS[CVE-2019-1010025] = "disputed: \ Allows for ASLR bypass so can bypass some hardening, not an exploit in itself, may allow \ easier access for another. 'ASLR bypass itself is not a vulnerability.'" -CVE_STATUS[CVE-2023-25139] = "cpe-stable-backport: This is integrated into the 2.37 branch as of 07b9521fc6" - DEPENDS += "gperf-native bison-native" NATIVESDKFIXES ?= ""
Signature · 1 line
2.43.0
Quoted 7 lines · Khem Raj
License-Update: Relicenses the IBM portions of
resolv/base64.candresolv/res_debug.cto a new license that does not have use-limited patent language [1]Upgrade localdef to get glibc 2.39 build fixes
Details of release [2]
Quoted 6 lines
Add fix for mips clone3 crash
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f
[2] https://sourceware.org/glibc/wiki/Release/2.39Signed-off-by Khem Raj <[email protected]>
I think we may still have an n32 mips failure:
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/8562/steps/27/logs/stdio
# error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
although I haven't 100% confirmed it is this patch.
Cheers,
Richard
Quoted 16 lines · Richard Purdie
Quoted 7 lines · Khem Raj
License-Update: Relicenses the IBM portions of
resolv/base64.candresolv/res_debug.cto a new license that does not have use-limited patent language [1]Upgrade localdef to get glibc 2.39 build fixes
Details of release [2]Quoted 6 lines
Add fix for mips clone3 crash
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f
[2] https://sourceware.org/glibc/wiki/Release/2.39Signed-off-by Khem Raj <[email protected]>
Quoted 7 lines
I think we may still have an n32 mips failure:
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/8562/steps/27/logs/stdio
# error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
although I haven't 100% confirmed it is this patch.
most likely, I will take a look later.
Quoted 4 lines
Cheers,
Richard
Quoted 21 lines · Khem Raj
Quoted 18 lines · Richard Purdie
Quoted 7 lines · Khem Raj
License-Update: Relicenses the IBM portions of
resolv/base64.candresolv/res_debug.cto a new license that does not have use-limited patent language [1]Upgrade localdef to get glibc 2.39 build fixes
Details of release [2]Quoted 6 lines
Add fix for mips clone3 crash
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f
[2] https://sourceware.org/glibc/wiki/Release/2.39Signed-off-by Khem Raj <[email protected]>I think we may still have an n32 mips failure:
Quoted 7 lines
Quoted 5 lines
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/8562/steps/27/logs/stdio
# error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
although I haven't 100% confirmed it is this patch.
most likely, I will take a look later.
The issue seems to be that assimp is vendoring zlib 1.2.x and there is a fix to zlib for 64bit time_t [1] which is available in release 1.3.1 onwards
glibc headers have become more transparent which brings this issue to front. So a fix is to patch the copy of zlib in assimp with the below zlib patch
or perhaps use some other application in this self test. We have deleted the assimp recipe already in YP 3.4 release onwards so maybe we should
replace building it in self-test as well.
[1] https://github.com/madler/zlib/commit/a566e156b3fa07b566ddbf6801b517a9dba04fa3
Quoted 5 lines
Quoted 5 lines
Cheers,
Richard
Quoted 42 lines · Khem Raj
Quoted 21 lines · Khem Raj
Quoted 18 lines · Richard Purdie
Quoted 7 lines · Khem Raj
License-Update: Relicenses the IBM portions of
resolv/base64.candresolv/res_debug.cto a new license that does not have use-limited patent language [1]Upgrade localdef to get glibc 2.39 build fixes
Details of release [2]Quoted 6 lines
Add fix for mips clone3 crash
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f
[2] https://sourceware.org/glibc/wiki/Release/2.39Signed-off-by Khem Raj <[email protected]>I think we may still have an n32 mips failure:
Quoted 7 lines
Quoted 5 lines
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/8562/steps/27/logs/stdio
# error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
although I haven't 100% confirmed it is this patch.
most likely, I will take a look later.
The issue seems to be that assimp is vendoring zlib 1.2.x and there is a fix to zlib for 64bit
time_t[1] which is available in release 1.3.1 onwards
glibc headers have become more transparent which brings this issue to front. So a fix is to patch the copy of zlib in assimp with the below zlib patch
or perhaps use some other application in this self test. We have deleted the assimp recipe already in YP 3.4 release onwards so maybe we should
replace building it in self-test as well.
I also wonder why does it resort to build internal zlib copy when the SDK has zlib so it might be
that zlib detection logic in assimp is failing which could be SDK issue of not packaging needed bits
to detect it.
Perhaps pass -DASSIMP_BUILD_ZLIB=OFF to assimp cmake invocation in test case and then it should fail
the build if it can not find zlib on system, then perhaps look into why cmake is failing to detect zlib.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Cheers,
Richard