grub-git: Upgrade to tip of master and fix with glibc 2.25
PATCH 1/2 grub-git: Upgrade to tip of master and fix with glibc 2.25
--- meta/recipes-bsp/grub/grub_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/grub/grub_git.bb +1 -1
@@ -6,7 +6,7 @@ DEFAULT_PREFERENCE_arm = "1" FILESEXTRAPATHS =. "${FILE_DIRNAME}/grub-git:" PV = "2.00+${SRCPV}" -SRCREV = "7a5b301e3adb8e054288518a325135a1883c1c6c" +SRCREV = "ce95549cc54b5d6f494608a7c390dba3aab4fba7" SRC_URI = "git://git.savannah.gnu.org/grub.git \ file://0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch \ file://autogen.sh-exclude-pc.patch \
Signature · 1 line
2.11.0
PATCH 2/2 glibc: Upgrade to 2.25
---
meta/conf/distro/include/tcmode-default.inc | 2 +-
...tive_2.24.bb => cross-localedef-native_2.25.bb} | 5 +-
...glibc-initial_2.24.bb => glibc-initial_2.25.bb} | 0
.../{glibc-locale_2.24.bb => glibc-locale_2.25.bb} | 0
.../{glibc-mtrace_2.24.bb => glibc-mtrace_2.25.bb} | 0
...glibc-scripts_2.24.bb => glibc-scripts_2.25.bb} | 0
...libc-Look-for-host-system-ld.so.cache-as-.patch | 12 +-
...libc-Fix-buffer-overrun-with-a-relocated-.patch | 10 +-
...libc-Raise-the-size-of-arrays-containing-.patch | 123 ++++++++-------------
...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch | 8 +-
...500-e5500-e6500-603e-fsqrt-implementation.patch | 6 +-
...-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch | 6 +-
...-Fix-undefined-reference-to-__sqrt_finite.patch | 6 +-
...qrt-f-are-now-inline-functions-and-call-o.patch | 6 +-
...bug-1443-which-explains-what-the-patch-do.patch | 6 +-
...n-libm-err-tab.pl-with-specific-dirs-in-S.patch | 6 +-
...qrt-f-are-now-inline-functions-and-call-o.patch | 6 +-
...ersion-output-matching-grok-gold-s-output.patch | 14 +--
...-configure.ac-handle-correctly-libc_cv_ro.patch | 6 +-
.../glibc/glibc/0014-Add-unused-attribute.patch | 6 +-
...thin-the-path-sets-wrong-config-variables.patch | 6 +-
...-timezone-re-written-tzselect-as-posix-sh.patch | 6 +-
...move-bash-dependency-for-nscd-init-script.patch | 8 +-
...c-Cross-building-and-testing-instructions.patch | 6 +-
...019-eglibc-Help-bootstrap-cross-toolchain.patch | 14 +--
.../glibc/0020-eglibc-cherry-picked-from.patch | 6 +-
.../0021-eglibc-Clear-cache-lines-on-ppc8xx.patch | 6 +-
...0022-eglibc-Resolve-__fpscr_values-on-SH4.patch | 6 +-
.../glibc/0023-eglibc-Install-PIC-archives.patch | 20 ++--
...ward-port-cross-locale-generation-support.patch | 18 +--
...0025-Define-DUMMY_LOCALE_T-if-not-defined.patch | 6 +-
...c-Make-_dl_build_local_scope-breadth-fir.patch} | 8 +-
...k-__startcontext-as-.cantunwind-bug-20435.patch | 46 --------
...locale-fix-hard-coded-reference-to-gcc-E.patch} | 17 ++-
.../glibc/{glibc_2.24.bb => glibc_2.25.bb} | 22 ++--
35 files changed, 171 insertions(+), 252 deletions(-)
rename meta/recipes-core/glibc/{cross-localedef-native_2.24.bb => cross-localedef-native_2.25.bb} (94%)
rename meta/recipes-core/glibc/{glibc-initial_2.24.bb => glibc-initial_2.25.bb} (100%)
rename meta/recipes-core/glibc/{glibc-locale_2.24.bb => glibc-locale_2.25.bb} (100%)
rename meta/recipes-core/glibc/{glibc-mtrace_2.24.bb => glibc-mtrace_2.25.bb} (100%)
rename meta/recipes-core/glibc/{glibc-scripts_2.24.bb => glibc-scripts_2.25.bb} (100%)
rename meta/recipes-core/glibc/glibc/{0026-build_local_scope.patch => 0026-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch} (88%)
delete mode 100644 meta/recipes-core/glibc/glibc/0027-arm-mark-__startcontext-as-.cantunwind-bug-20435.patch
rename meta/recipes-core/glibc/glibc/{0001-locale-fix-hard-coded-reference-to-gcc-E.patch => 0027-locale-fix-hard-coded-reference-to-gcc-E.patch} (86%)
rename meta/recipes-core/glibc/{glibc_2.24.bb => glibc_2.25.bb} (93%)meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -26,7 +26,7 @@ GCCVERSION ?= "6.3%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.27%" GDBVERSION ?= "7.12%" -GLIBCVERSION ?= "2.24" +GLIBCVERSION ?= "2.25" UCLIBCVERSION ?= "1.0%" LINUXLIBCVERSION ?= "4.8%"
meta/recipes-core/glibc/cross-localedef-native_2.25.bb renamed from meta/recipes-core/glibc/cross-localedef-native_2.24.bb +3 -2
@@ -17,11 +17,12 @@ inherit autotools FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:" -SRCBRANCH ?= "release/${PV}/master" +#SRCBRANCH ?= "release/${PV}/master" +SRCBRANCH ?= "master" GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)" -SRCREV_glibc ?= "ea23815a795f72035262953dad5beb03e09c17dd" +SRCREV_glibc ?= "d054a81ab3a2515a45d28e6c26d2b190ff74e8ec" SRCREV_localedef ?= "29869b6dc11427c5bab839bdb155c85a7c644c71" SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
meta/recipes-core/glibc/glibc-initial_2.25.bb renamed from meta/recipes-core/glibc/glibc-initial_2.24.bb +0 -0
meta/recipes-core/glibc/glibc-locale_2.25.bb renamed from meta/recipes-core/glibc/glibc-locale_2.24.bb +0 -0
meta/recipes-core/glibc/glibc-mtrace_2.25.bb renamed from meta/recipes-core/glibc/glibc-mtrace_2.24.bb +0 -0
meta/recipes-core/glibc/glibc-scripts_2.25.bb renamed from meta/recipes-core/glibc/glibc-scripts_2.24.bb +0 -0
meta/recipes-core/glibc/glibc/0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch +6 -6
@@ -1,7 +1,7 @@ -From 7e11aafc3a7cb873b3f648740c8acd379597e4d1 Mon Sep 17 00:00:00 2001 +From 2727e58d1d269994de17cadb12195001b14585e7 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:48:24 +0000 -Subject: [PATCH 01/25] nativesdk-glibc: Look for host system ld.so.cache as +Subject: [PATCH 01/26] nativesdk-glibc: Look for host system ld.so.cache as well Upstream-Status: Inappropriate [embedded specific]
@@ -31,10 +31,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 c0d6249..2c73105 100644 +index 51fb0d0..f503dbc 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c -@@ -2094,6 +2094,14 @@ _dl_map_object (struct link_map *loader, const char *name, +@@ -2054,6 +2054,14 @@ _dl_map_object (struct link_map *loader, const char *name, } }
@@ -49,7 +49,7 @@ index c0d6249..2c73105 100644 #ifdef USE_LDCONFIG if (fd == -1 && (__glibc_likely ((mode & __RTLD_SECURE) == 0) -@@ -2152,14 +2160,6 @@ _dl_map_object (struct link_map *loader, const char *name, +@@ -2112,14 +2120,6 @@ _dl_map_object (struct link_map *loader, const char *name, } #endif
@@ -65,5 +65,5 @@ index c0d6249..2c73105 100644 if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_LIBS)) _dl_debug_printf ("\n"); -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch +5 -5
@@ -1,7 +1,7 @@ -From 5fd884dc28d5d84001fae8ffdd8be698bb84143e Mon Sep 17 00:00:00 2001 +From 1578f52647ec8804186d1944d4cd2095132efc39 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:50:00 +0000 -Subject: [PATCH 02/25] nativesdk-glibc: Fix buffer overrun with a relocated +Subject: [PATCH 02/26] nativesdk-glibc: Fix buffer overrun with a relocated SDK When ld-linux-*.so.2 is relocated to a path that is longer than the
@@ -22,10 +22,10 @@ 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 2c73105..c7b8797 100644 +index f503dbc..3a3d112 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c -@@ -1793,7 +1793,19 @@ open_path (const char *name, size_t namelen, int mode, +@@ -1753,7 +1753,19 @@ open_path (const char *name, size_t namelen, int mode, given on the command line when rtld is run directly. */ return -1;
@@ -46,5 +46,5 @@ index 2c73105..c7b8797 100644 { struct r_search_path_elem *this_dir = *dirs; -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch +46 -77
175 lines not on this page · raw message
meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch +3 -5
@@ -1,7 +1,7 @@ -From a56e7aa2fd10b178b9498f88a7a2ca8aad671a53 Mon Sep 17 00:00:00 2001 +From 0b95f34207ffed3aa53fa949662bfbccc7c864a4 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 31 Dec 2015 14:35:35 -0800 -Subject: [PATCH 04/25] nativesdk-glibc: Allow 64 bit atomics for x86 +Subject: [PATCH 04/26] nativesdk-glibc: Allow 64 bit atomics for x86 The fix consist of allowing 64bit atomic ops for x86. This should be safe for i586 and newer CPUs.
@@ -11,8 +11,6 @@ Signed-off-by: Juro Bystricky <[email protected]> Signed-off-by: Richard Purdie <[email protected]> Signed-off-by: Khem Raj <[email protected]> --- -Upstream-Status: Pending - sysdeps/i386/atomic-machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -30,5 +28,5 @@ index ce62b33..4fe44ea 100644 -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0005-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch +3 -3
@@ -1,7 +1,7 @@ -From 450473ce27b47cebec2c5c5b611a8c8bed41e6e8 Mon Sep 17 00:00:00 2001 +From 77a7495376c7d0c5507c0ec99bf1568150339ef4 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:01:50 +0000 -Subject: [PATCH 05/25] fsl e500/e5500/e6500/603e fsqrt implementation +Subject: [PATCH 05/26] fsl e500/e5500/e6500/603e fsqrt implementation Upstream-Status: Pending Signed-off-by: Edmar Wienskoski <[email protected]>
@@ -1580,5 +1580,5 @@ index 0000000..04ff8cc @@ -0,0 +1 @@ +powerpc/powerpc64/e6500/fpu -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0006-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch +3 -3
@@ -1,7 +1,7 @@ -From bb065b78e9e0d3301e64a26e37550a657c885ebc Mon Sep 17 00:00:00 2001 +From 520cb9e746af637cf01fea385b7f4ee4aadbdfdd Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:11:22 +0000 -Subject: [PATCH 06/25] readlib: Add OECORE_KNOWN_INTERPRETER_NAMES to known +Subject: [PATCH 06/26] readlib: Add OECORE_KNOWN_INTERPRETER_NAMES to known names This bolts in a hook for OE to pass its own version of interpreter
@@ -29,5 +29,5 @@ index 8a66ffe..08d56fc 100644 static struct known_names known_libs[] = -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0007-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch +3 -3
@@ -1,7 +1,7 @@ -From 4a91bbdb11a15f93094695bba4e0849c421fad48 Mon Sep 17 00:00:00 2001 +From 64130262787d54e2e6695ae4ed8783bfec14ffef Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:15:07 +0000 -Subject: [PATCH 07/25] ppc/sqrt: Fix undefined reference to `__sqrt_finite' +Subject: [PATCH 07/26] ppc/sqrt: Fix undefined reference to `__sqrt_finite' on ppc fixes the errors like below | ./.libs/libpulsecore-1.1.so: undefined reference to `__sqrt_finite'
@@ -204,5 +204,5 @@ index 26fa067..9d17512 100644 } +strong_alias (__ieee754_sqrtf, __sqrtf_finite) -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0008-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch +3 -3
@@ -1,7 +1,7 @@ -From ce2746a1560b4430d89d114e1b65c7be225b4c2a Mon Sep 17 00:00:00 2001 +From 5afb0147e3e49c3b474404524014efe51b2bca5a Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:16:38 +0000 -Subject: [PATCH 08/25] __ieee754_sqrt{,f} are now inline functions and call +Subject: [PATCH 08/26] __ieee754_sqrt{,f} are now inline functions and call out __slow versions Upstream-Status: Pending
@@ -383,5 +383,5 @@ index 9d17512..10de1f0 100644 + strong_alias (__ieee754_sqrtf, __sqrtf_finite) -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0009-Quote-from-bug-1443-which-explains-what-the-patch-do.patch +3 -3
@@ -1,7 +1,7 @@ -From 1b61649e545de76dd79a5e2c39bb16d0c4623160 Mon Sep 17 00:00:00 2001 +From ddd51bb4e005432cb3c0f8f33822954408a9fee1 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:20:09 +0000 -Subject: [PATCH 09/25] Quote from bug 1443 which explains what the patch does +Subject: [PATCH 09/26] Quote from bug 1443 which explains what the patch does : We build some random program and link it with -lust. When we run it,
@@ -58,5 +58,5 @@ index 60eee00..7d54d5e 100644 case R_ARM_TLS_TPOFF32: -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0010-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch +3 -3
@@ -1,7 +1,7 @@ -From 91af416408b8718b004c83d93a6daa1f34cba48d Mon Sep 17 00:00:00 2001 +From d7e74670825330f5421a55f5aa2a1ce6fda7d7fb Mon Sep 17 00:00:00 2001 From: Ting Liu <[email protected]> Date: Wed, 19 Dec 2012 04:39:57 -0600 -Subject: [PATCH 10/25] eglibc: run libm-err-tab.pl with specific dirs in ${S} +Subject: [PATCH 10/26] eglibc: run libm-err-tab.pl with specific dirs in ${S} libm-err-tab.pl will parse all the files named "libm-test-ulps" in the given dir recursively. To avoid parsing the one in
@@ -32,5 +32,5 @@ index f2f694f..e062833 100644 touch $@ -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch +3 -3
@@ -1,7 +1,7 @@ -From 6a71f688471fe0c85f8ad9afc4ee0723a20aae1d Mon Sep 17 00:00:00 2001 +From d6e2076571263e45c48889896d3d94ff576df2be Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:24:46 +0000 -Subject: [PATCH 11/25] __ieee754_sqrt{,f} are now inline functions and call +Subject: [PATCH 11/26] __ieee754_sqrt{,f} are now inline functions and call out __slow versions Upstream-Status: Pending
@@ -57,5 +57,5 @@ index 8126535..10de1f0 100644 #endif { -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0012-Make-ld-version-output-matching-grok-gold-s-output.patch +7 -7
@@ -1,7 +1,7 @@ -From f9d024edb158659e403b51cc9d93da9bca6e5d7b Mon Sep 17 00:00:00 2001 +From c0974c746e026650bef5d1940eb3f519765c77af Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:25:45 +0000 -Subject: [PATCH 12/25] Make ld --version output matching grok gold's output +Subject: [PATCH 12/26] Make ld --version output matching grok gold's output adapted from from upstream branch roland/gold-vs-libc
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure -index 8fe5937..7888a3f 100755 +index 5cf3230..391f29d 100755 --- a/configure +++ b/configure -@@ -4482,7 +4482,7 @@ else +@@ -4555,7 +4555,7 @@ else # Found it, now check the version. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 $as_echo_n "checking version of $LD... " >&6; }
@@ -27,10 +27,10 @@ index 8fe5937..7888a3f 100755 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) diff --git a/configure.ac b/configure.ac -index 3c766b7..6908a99 100644 +index d719fad..5b5877c 100644 --- a/configure.ac +++ b/configure.ac -@@ -944,7 +944,7 @@ AC_CHECK_PROG_VER(AS, $AS, --version, +@@ -990,7 +990,7 @@ AC_CHECK_PROG_VER(AS, $AS, --version, [2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*], AS=: critic_missing="$critic_missing as") AC_CHECK_PROG_VER(LD, $LD, --version,
@@ -40,5 +40,5 @@ index 3c766b7..6908a99 100644 LD=: critic_missing="$critic_missing ld") -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0013-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch +3 -3
@@ -1,7 +1,7 @@ -From 2ece12093c8ba4cf688d235f35d36f1feb02324c Mon Sep 17 00:00:00 2001 +From 2a12eadfd7940b6b0913de8e95d851254cce7953 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:27:10 +0000 -Subject: [PATCH 13/25] sysdeps/gnu/configure.ac: handle correctly +Subject: [PATCH 13/26] sysdeps/gnu/configure.ac: handle correctly $libc_cv_rootsbindir Upstream-Status:Pending
@@ -38,5 +38,5 @@ index 634fe4d..3db1697 100644 ;; esac -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0014-Add-unused-attribute.patch +3 -3
@@ -1,7 +1,7 @@ -From 9fec083dc99d2b524090e1d098e03709eed64a72 Mon Sep 17 00:00:00 2001 +From ec4f7763b30603b7ba0b70bd7750e34d442821b3 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:28:41 +0000 -Subject: [PATCH 14/25] Add unused attribute +Subject: [PATCH 14/26] Add unused attribute Helps in avoiding gcc warning when header is is included in a source file which does not use both functions
@@ -30,5 +30,5 @@ index 95cbce7..191a0dd 100644 { int slash_count = 0; -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0015-yes-within-the-path-sets-wrong-config-variables.patch +3 -3
@@ -1,7 +1,7 @@ -From 1794a97cba0b09b726eebc565c783c7b7c22dfba Mon Sep 17 00:00:00 2001 +From 18d64951cbb68d8d75e8ef347cbd0e0a5c14604b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:31:06 +0000 -Subject: [PATCH 15/25] 'yes' within the path sets wrong config variables +Subject: [PATCH 15/26] 'yes' within the path sets wrong config variables It seems that the 'AC_EGREP_CPP(yes...' example is quite popular but being such a short word to grep it is likely to produce
@@ -259,5 +259,5 @@ index 0822915..9a32fdd 100644 ], libc_cv_ppc64_def_call_elf=yes, libc_cv_ppc64_def_call_elf=no)]) if test $libc_cv_ppc64_def_call_elf = no; then -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0016-timezone-re-written-tzselect-as-posix-sh.patch +3 -3
@@ -1,7 +1,7 @@ -From fdb5c9c88e3d1bc5ae6ef9ebcfcf560d3c42f0a6 Mon Sep 17 00:00:00 2001 +From 2bed515b9f9f613ae0db9b9607d8fa60a4afca5b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:33:03 +0000 -Subject: [PATCH 16/25] timezone: re-written tzselect as posix sh +Subject: [PATCH 16/26] timezone: re-written tzselect as posix sh To avoid the bash dependency.
@@ -41,5 +41,5 @@ index 2c3b2f4..0c04a61 100755 # Output one argument as-is to standard output. # Safer than 'echo', which can mishandle '\' or leading '-'. -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0017-Remove-bash-dependency-for-nscd-init-script.patch +3 -5
@@ -1,7 +1,7 @@ -From 88ad88d014a5ee68b0e044d2def5ab13743c8ae0 Mon Sep 17 00:00:00 2001 +From c8814875b362efbfd778345d0d2777478bf11a30 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 31 Dec 2015 14:33:02 -0800 -Subject: [PATCH 17/25] Remove bash dependency for nscd init script +Subject: [PATCH 17/26] Remove bash dependency for nscd init script The nscd init script uses #! /bin/bash but only really uses one bashism (translated strings), so remove them and switch the shell to #!/bin/sh.
@@ -9,8 +9,6 @@ The nscd init script uses #! /bin/bash but only really uses one bashism Signed-off-by: Ross Burton <[email protected]> Signed-off-by: Khem Raj <[email protected]> --- -Upstream-Status: Pending - nscd/nscd.init | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
@@ -71,5 +69,5 @@ index a882da7..b02986e 100644 ;; esac -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0018-eglibc-Cross-building-and-testing-instructions.patch +3 -3
@@ -1,7 +1,7 @@ -From 49c0ad7dc2e02e808ed150296a109b586c34115a Mon Sep 17 00:00:00 2001 +From df96d6b61bb60f13cd3d4989d1afc56d705f4a33 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:42:58 +0000 -Subject: [PATCH 18/25] eglibc: Cross building and testing instructions +Subject: [PATCH 18/26] eglibc: Cross building and testing instructions Ported from eglibc Upstream-Status: Pending
@@ -615,5 +615,5 @@ index 0000000..b67b468 + simply place copies of these libraries in the top GLIBC build + directory. -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0019-eglibc-Help-bootstrap-cross-toolchain.patch +7 -7
@@ -1,7 +1,7 @@ -From e881face7a10354612bf634b44e09e3bc6462c67 Mon Sep 17 00:00:00 2001 +From 2cb7e3cae4020f431d426ad1740bb25506cde899 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:49:28 +0000 -Subject: [PATCH 19/25] eglibc: Help bootstrap cross toolchain +Subject: [PATCH 19/26] eglibc: Help bootstrap cross toolchain Taken from EGLIBC, r1484 + r1525
@@ -29,10 +29,10 @@ Signed-off-by: Khem Raj <[email protected]> create mode 100644 include/stubs-bootstrap.h diff --git a/Makefile b/Makefile -index 32748b3..6d055ba 100644 +index 1ae3281..26ab7bf 100644 --- a/Makefile +++ b/Makefile -@@ -69,9 +69,18 @@ subdir-dirs = include +@@ -70,9 +70,18 @@ subdir-dirs = include vpath %.h $(subdir-dirs) # What to install.
@@ -52,7 +52,7 @@ index 32748b3..6d055ba 100644 ifeq (yes,$(build-shared)) headers += gnu/lib-names.h endif -@@ -151,6 +160,16 @@ others: $(common-objpfx)testrun.sh +@@ -152,6 +161,16 @@ others: $(common-objpfx)testrun.sh subdir-stubs := $(foreach dir,$(subdirs),$(common-objpfx)$(dir)/stubs)
@@ -69,7 +69,7 @@ index 32748b3..6d055ba 100644 ifndef abi-variants installed-stubs = $(inst_includedir)/gnu/stubs.h else -@@ -177,6 +196,7 @@ $(inst_includedir)/gnu/stubs.h: $(+force) +@@ -178,6 +197,7 @@ $(inst_includedir)/gnu/stubs.h: $(+force) install-others-nosubdir: $(installed-stubs) endif
@@ -96,5 +96,5 @@ index 0000000..1d2b669 + EGLIBC subdir 'stubs' make targets, on every .o file in EGLIBC, but + an empty stubs.h like this will do fine for GCC. */ -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0020-eglibc-cherry-picked-from.patch +3 -3
@@ -1,7 +1,7 @@ -From 723a31d3e2627211b39fbcc08f75b3c23c4096c5 Mon Sep 17 00:00:00 2001 +From b2ed906ec864583b43379ef9ad2b5630c1232565 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 31 Dec 2015 15:10:33 -0800 -Subject: [PATCH 20/25] eglibc: cherry-picked from +Subject: [PATCH 20/26] eglibc: cherry-picked from http://www.eglibc.org/archives/patches/msg00772.html
@@ -60,5 +60,5 @@ index a4b376f..3256e12 100644 if (resp->nscount > 0) __res_iclose (resp, true); -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0021-eglibc-Clear-cache-lines-on-ppc8xx.patch +3 -3
@@ -1,7 +1,7 @@ -From 9699873820d0347c2f377f0d86bce615d87a5e47 Mon Sep 17 00:00:00 2001 +From 000ab518aa1269714bc0a9a4633b0a538fae91d9 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 31 Dec 2015 15:15:09 -0800 -Subject: [PATCH 21/25] eglibc: Clear cache lines on ppc8xx +Subject: [PATCH 21/26] eglibc: Clear cache lines on ppc8xx 2007-06-13 Nathan Sidwell <[email protected]> Mark Shinwell <[email protected]>
@@ -79,5 +79,5 @@ index 0efd297..8cc0ef8 100644 break; #ifndef SHARED -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0022-eglibc-Resolve-__fpscr_values-on-SH4.patch +3 -3
@@ -1,7 +1,7 @@ -From 8904f4249c930d187e19c7e9d3e73c835d11e18f Mon Sep 17 00:00:00 2001 +From a50c6e80543fb4cbc589978c11fe846bf4a94492 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 00:55:53 +0000 -Subject: [PATCH 22/25] eglibc: Resolve __fpscr_values on SH4 +Subject: [PATCH 22/26] eglibc: Resolve __fpscr_values on SH4 2010-09-29 Nobuhiro Iwamatsu <[email protected]> Andrew Stubbs <[email protected]>
@@ -52,5 +52,5 @@ index 0024d79..d1db7e4 100644 +weak_alias (___fpscr_values, __fpscr_values) + -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0023-eglibc-Install-PIC-archives.patch +10 -10
@@ -1,7 +1,7 @@ -From 1947f211fab4001e84bb52868cddbd401e597889 Mon Sep 17 00:00:00 2001 +From 101568daf48d99e71b280a2fdd85460fe740d583 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:57:01 +0000 -Subject: [PATCH 23/25] eglibc: Install PIC archives +Subject: [PATCH 23/26] eglibc: Install PIC archives Forward port from eglibc
@@ -29,10 +29,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/Makerules b/Makerules -index 53eabfa..1cd2a53 100644 +index 61a0240..373e628 100644 --- a/Makerules +++ b/Makerules -@@ -694,6 +694,9 @@ ifeq ($(build-shared),yes) +@@ -762,6 +762,9 @@ ifeq ($(build-shared),yes) $(common-objpfx)libc.so: $(common-objpfx)libc.map endif common-generated += libc.so libc_pic.os
@@ -42,7 +42,7 @@ index 53eabfa..1cd2a53 100644 ifdef libc.so-version $(common-objpfx)libc.so$(libc.so-version): $(common-objpfx)libc.so $(make-link) -@@ -936,6 +939,7 @@ endif +@@ -1004,6 +1007,7 @@ endif install: check-install-supported
@@ -50,7 +50,7 @@ index 53eabfa..1cd2a53 100644 install: $(installed-libcs) $(installed-libcs): $(inst_libdir)/lib$(libprefix)%: lib $(+force) $(make-target-directory) -@@ -964,6 +968,22 @@ versioned := $(strip $(foreach so,$(install-lib.so),\ +@@ -1032,6 +1036,22 @@ versioned := $(strip $(foreach so,$(install-lib.so),\ install-lib.so-versioned := $(filter $(versioned), $(install-lib.so)) install-lib.so-unversioned := $(filter-out $(versioned), $(install-lib.so))
@@ -73,7 +73,7 @@ index 53eabfa..1cd2a53 100644 # For versioned libraries, we install three files: # $(inst_libdir)/libfoo.so -- for linking, symlink or ld script # $(inst_slibdir)/libfoo.so.NN -- for loading by SONAME, symlink -@@ -1206,9 +1226,22 @@ $(addprefix $(inst_includedir)/,$(headers-nonh)): $(inst_includedir)/%: \ +@@ -1275,9 +1295,22 @@ $(addprefix $(inst_includedir)/,$(headers-nonh)): $(inst_includedir)/%: \ endif # headers-nonh endif # headers
@@ -97,7 +97,7 @@ index 53eabfa..1cd2a53 100644 install-bin-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin)) install-bin-script-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin-script)) install-rootsbin-nosubdir: \ -@@ -1221,6 +1254,10 @@ install-data-nosubdir: $(addprefix $(inst_datadir)/,$(install-data)) +@@ -1290,6 +1323,10 @@ install-data-nosubdir: $(addprefix $(inst_datadir)/,$(install-data)) install-headers-nosubdir: $(addprefix $(inst_includedir)/,$(headers)) install-others-nosubdir: $(install-others) install-others-programs-nosubdir: $(install-others-programs)
@@ -108,7 +108,7 @@ index 53eabfa..1cd2a53 100644 # We need all the `-nosubdir' targets so that `install' in the parent # doesn't depend on several things which each iterate over the subdirs. -@@ -1230,7 +1267,8 @@ install-%:: install-%-nosubdir ; +@@ -1299,7 +1336,8 @@ install-%:: install-%-nosubdir ; .PHONY: install install-no-libc.a-nosubdir install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir \
@@ -119,5 +119,5 @@ index 53eabfa..1cd2a53 100644 install-no-libc.a-nosubdir: install-bin-nosubdir install-bin-script-nosubdir \ install-rootsbin-nosubdir install-sbin-nosubdir \ -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0024-eglibc-Forward-port-cross-locale-generation-support.patch +9 -9
@@ -1,7 +1,7 @@ -From 11d7633178301add26a24657e2f1596a2f7dddce Mon Sep 17 00:00:00 2001 +From 82516e3ed372f618c886a2de4f9498f597aa8a8b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 18 Mar 2015 01:33:49 +0000 -Subject: [PATCH 24/25] eglibc: Forward port cross locale generation support +Subject: [PATCH 24/26] eglibc: Forward port cross locale generation support Upstream-Status: Pending
@@ -91,7 +91,7 @@ index 0000000..9fad357 + [LC_ALL] = sizeof ("LC_ALL") - 1 + }; diff --git a/locale/localeinfo.h b/locale/localeinfo.h -index 94627f3..d0db77b 100644 +index 1f4da92..7f68935 100644 --- a/locale/localeinfo.h +++ b/locale/localeinfo.h @@ -224,7 +224,7 @@ __libc_tsd_define (extern, __locale_t, LOCALE)
@@ -363,10 +363,10 @@ index b885f65..0afb631 100644 size_t bufmax = 56; diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c -index 6becd9a..8ddd080 100644 +index b4c48f1..ed08d48 100644 --- a/locale/programs/localedef.c +++ b/locale/programs/localedef.c -@@ -114,6 +114,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; +@@ -108,6 +108,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; #define OPT_LIST_ARCHIVE 309 #define OPT_LITTLE_ENDIAN 400 #define OPT_BIG_ENDIAN 401
@@ -374,7 +374,7 @@ index 6becd9a..8ddd080 100644 /* Definitions of arguments for argp functions. */ static const struct argp_option options[] = -@@ -150,6 +151,8 @@ static const struct argp_option options[] = +@@ -143,6 +144,8 @@ static const struct argp_option options[] = N_("Generate little-endian output") }, { "big-endian", OPT_BIG_ENDIAN, NULL, 0, N_("Generate big-endian output") },
@@ -383,7 +383,7 @@ index 6becd9a..8ddd080 100644 { NULL, 0, NULL, 0, NULL } }; -@@ -239,12 +242,14 @@ main (int argc, char *argv[]) +@@ -232,12 +235,14 @@ main (int argc, char *argv[]) ctype locale. (P1003.2 4.35.5.2) */ setlocale (LC_CTYPE, "POSIX");
@@ -398,7 +398,7 @@ index 6becd9a..8ddd080 100644 /* Process charmap file. */ charmap = charmap_read (charmap_file, verbose, 1, be_quiet, 1); -@@ -338,6 +343,9 @@ parse_opt (int key, char *arg, struct argp_state *state) +@@ -328,6 +333,9 @@ parse_opt (int key, char *arg, struct argp_state *state) case OPT_BIG_ENDIAN: set_big_endian (true); break;
@@ -562,5 +562,5 @@ index 69b3141..1cef0be 100644 # define WEAK_POSTLOAD(postload) weak_extern (postload) #else -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0025-Define-DUMMY_LOCALE_T-if-not-defined.patch +3 -3
@@ -1,7 +1,7 @@ -From 89ec25290d34413ce5c8ba6c378e31dbae3a37c0 Mon Sep 17 00:00:00 2001 +From c2d8cdeab116caacdfedb35eeb3e743b44807bec Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 20 Apr 2016 21:11:00 -0700 -Subject: [PATCH 25/25] Define DUMMY_LOCALE_T if not defined +Subject: [PATCH 25/26] Define DUMMY_LOCALE_T if not defined This is a hack to fix building the locale bits on an older CentOs 5.X machine
@@ -28,5 +28,5 @@ index f606365..0e5f8c3 100644 #define PACKAGE _libc_intl_domainname #ifndef VERSION -- -2.8.2 +2.10.2
meta/recipes-core/glibc/glibc/0026-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch renamed from meta/recipes-core/glibc/glibc/0026-build_local_scope.patch +4 -4
@@ -1,7 +1,7 @@ -From 6e4ec5a3c5fe63b6458036f18d43124de4a7e724 Mon Sep 17 00:00:00 2001 +From fb315c197cca61299a6f6588ea3460145c255d06 Mon Sep 17 00:00:00 2001 From: Mark Hatle <[email protected]> Date: Thu, 18 Aug 2016 14:07:58 -0500 -Subject: [PATCH] elf/dl-deps.c: Make _dl_build_local_scope breadth first +Subject: [PATCH 26/26] elf/dl-deps.c: Make _dl_build_local_scope breadth first According to the ELF specification:
@@ -24,7 +24,7 @@ Signed-off-by: Mark Hatle <[email protected]> 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/elf/dl-deps.c b/elf/dl-deps.c -index 6a82987..fc37c87 100644 +index 6a82987..53be824 100644 --- a/elf/dl-deps.c +++ b/elf/dl-deps.c @@ -73,13 +73,19 @@ _dl_build_local_scope (struct link_map **list, struct link_map *map)
@@ -52,5 +52,5 @@ index 6a82987..fc37c87 100644 } -- -2.5.5 +2.10.2
meta/recipes-core/glibc/glibc/0027-arm-mark-__startcontext-as-.cantunwind-bug-20435.patch deleted +0 -46
46 lines not on this page · raw message
meta/recipes-core/glibc/glibc/0027-locale-fix-hard-coded-reference-to-gcc-E.patch renamed from meta/recipes-core/glibc/glibc/0001-locale-fix-hard-coded-reference-to-gcc-E.patch +8 -9
@@ -1,30 +1,29 @@ -From 2c0ab83eb54c0e0fccbf261726dc03803b236079 Mon Sep 17 00:00:00 2001 +From a2fc86cb8d0366171f100ebd033aeb9609fa40de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= <[email protected]> Date: Mon, 22 Aug 2016 16:09:25 +0200 -Subject: [PATCH] locale: fix hard-coded reference to gcc -E +Subject: [PATCH 27/27] locale: fix hard-coded reference to gcc -E -When new version of compilers are published, they may not be compatible with +When new version of compilers are published, they may not be compatible with older versions of software. This is particularly common when software is built with -Werror. Autotools provides a way for a user to specify the name of his compiler using a set of variables ($CC $CXX $CPP etc.). Those variables are used correctly when compiling glibc but the script used to generate transliterations in the locale/ -subdirectory directly calls the gcc binary to get the output of the -preprocessor instead of using the $CPP variable provided by the build -environment. +subdirectory directly calls the gcc binary to get the output of the +preprocessor instead of using the $CPP variable provided by the build +environment. This patch replaces the hard-coded reference to the gcc binary with the proper environment variable, thus allowing a user to override it. Upstream-Status : Submitted [https://sourceware.org/ml/libc-alpha/2016-08/msg00746.html] - --- locale/gen-translit.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/gen-translit.pl b/locale/gen-translit.pl -index 30d3f2f..7b287fa 100644 +index 30d3f2f..e976530 100644 --- a/locale/gen-translit.pl +++ b/locale/gen-translit.pl @@ -1,5 +1,5 @@
@@ -35,5 +34,5 @@ index 30d3f2f..7b287fa 100644 sub cstrlen { -- -2.9.3 +2.10.2
meta/recipes-core/glibc/glibc_2.25.bb renamed from meta/recipes-core/glibc/glibc_2.24.bb +11 -11
@@ -7,14 +7,19 @@ LIC_FILES_CHKSUM = "file://LICENSES;md5=e9a558e243b36d3209f380deb394b213 \ DEPENDS += "gperf-native" -SRCREV ?= "ea23815a795f72035262953dad5beb03e09c17dd" +SRCREV ?= "d054a81ab3a2515a45d28e6c26d2b190ff74e8ec" -SRCBRANCH ?= "release/${PV}/master" +#SRCBRANCH ?= "release/${PV}/master" +SRCBRANCH ?= "master" GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)" SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ + file://etc/ld.so.conf \ + file://generate-supported.mk \ + \ + ${NATIVESDKFIXES} \ file://0005-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch \ file://0006-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \ file://0007-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch \
@@ -36,17 +41,12 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0023-eglibc-Install-PIC-archives.patch \ file://0024-eglibc-Forward-port-cross-locale-generation-support.patch \ file://0025-Define-DUMMY_LOCALE_T-if-not-defined.patch \ - file://0026-build_local_scope.patch \ - file://0027-arm-mark-__startcontext-as-.cantunwind-bug-20435.patch \ + file://0026-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch \ + file://0027-locale-fix-hard-coded-reference-to-gcc-E.patch \ " -SRC_URI += "\ - file://etc/ld.so.conf \ - file://generate-supported.mk \ - file://0001-locale-fix-hard-coded-reference-to-gcc-E.patch \ - " - -SRC_URI_append_class-nativesdk = "\ +NATIVESDKFIXES ?= "" +NATIVESDKFIXES_class-nativesdk = "\ file://0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch \ file://0002-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch \ file://0003-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch \
Signature · 1 line
2.11.0
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 2 lines · Khem Raj
Signed-off-by Khem Raj <[email protected]>
This fails when building gdk-pixbuf for x86-64 with gobject-introspection enabled:
|
Quoted 6 lines
/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/gdk-pixbuf/2.36.1-r0/build/gdk-pixbuf/tmp-introspectylz98kc7/.libs/GdkPixbuf-2.0:
Relink
`/data/poky-master/tmp-glibc/sysroots/intel-corei7-64//usr/lib/libpng16.so.16'
with
`/data/poky-master/tmp-glibc/sysroots/intel-corei7-64//lib/libpthread.so.0'
for IFUNC symbol `longjmp'
The gdk-pixbuf link does use -lpthread, is this saying that libpng should be linked against pthread too? I can replicate on demand if you have any suggestions.
Ross
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 5 lines · Ross
Quoted 5 lines · Khem Raj
Quoted 1 line
Quoted 1 line
Signed-off-by Khem Raj <[email protected]>This fails when building gdk-pixbuf for x86-64 with gobject-
introspection enabled:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
| /data/poky-master/tmp-glibc/work/corei7-64-poky-linux/gdk-
pixbuf/2.36.1-r0/build/gdk-pixbuf/tmp- introspectylz98kc7/.libs/GdkPixbuf-2.0: Relink /data/poky- master/tmp-glibc/sysroots/intel-corei7-64//usr/lib/libpng16.so.16' with /data/poky-master/tmp-glibc/sysroots/intel-corei7- 64//lib/libpthread.so.0' for IFUNC symbol `longjmp'
Quoted 1 line
Quoted 1 line
Quoted 1 line
The gdk-pixbuf link does use -lpthread, is this saying that libpng
should be linked against pthread too? I can replicate on demand if you have any suggestions.
Quoted 2 lines
That's what it's saying, and this was introduced by the fix for:
https://sourceware.org/bugzilla/show_bug.cgi?id=20019
But I think this new behaviour is in itself a bug. It isn't reasonable to expect any library that calls longjmp() to link -lpthread just in case it might end up coexisting with another library that does. (The fact that libpthread defines longjmp is arguably a bug in itself, but one that we are stuck with.)
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 27 lines · Phil Blundell
On Wed, 2017-01-11 at 12:19 +0000, Burton, Ross wrote:
On 11 January 2017 at 03:51, Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>This fails when building gdk-pixbuf for x86-64 with gobject-introspection enabled:
| /data/poky-master/tmp-glibc/work/corei7-64-poky-linux/gdk-pixbuf/2.36.1-r0/build/gdk-pixbuf/tmp-introspectylz98kc7/.libs/GdkPixbuf-2.0:
Relink
`/data/poky-master/tmp-glibc/sysroots/intel-corei7-64//usr/lib/libpng16.so.16'
with
`/data/poky-master/tmp-glibc/sysroots/intel-corei7-64//lib/libpthread.so.0'
for IFUNC symbol `longjmp'The gdk-pixbuf link does use -lpthread, is this saying that libpng should be linked against pthread too? I can replicate on demand if you have any suggestions.
That's what it's saying, and this was introduced by the fix for:
Quoted 7 lines
https://sourceware.org/bugzilla/show_bug.cgi?id=20019
But I think this new behaviour is in itself a bug. It isn't reasonable to expect any library that calls
longjmp()to link -lpthread just in case it might end up coexisting with another library that does. (The fact that libpthread defines longjmp is arguably a bug in itself, but one that we are stuck with.)
This is showing when executing target binaries in qemu here I believe. One workaround we could try is to use LD_PRELOAD of libpthread.so.0, that might get us over this error, but the issue still may manifest on target apps using libpng16 with other library pulling in libpthread
Quoted 3 lines
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 7 lines · Khem Raj
This is showing when executing target binaries in qemu here I believe. One
workaround we could try is to useLD_PRELOADof libpthread.so.0, that might get us over this error, but the issue still may manifest on target apps
using libpng16 with other library pulling in libpthread
Yeah, we should just get the bug fixed (or temporarily revert the patch in question) rather than applying our own hacks to work around it. I doubt libpng is the only library that uses longjmp and doesn't link -lpthread.
I imagine it'd be fairly easy to generate a testcase, do you want to have a go at that?
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
In reply to Burton, RossQuoted 1 line · Ross
Quoted 1 line
Quoted 1 line
The gdk-pixbuf link does use -lpthread, is this saying that libpng
should be linked against pthread too? I can replicate on demand if you have any suggestions.
Quoted 2 lines
So, amusingly, it now appears that libpng in pthread-using programs has actually been a bit broken for a long time, since about glibc 2.22. It's just that the failure has now become more obvious, because ld.so will refuse to load the binary at all rather than allowing it to load and having it crash later under some circumstances.
Whether the circumstances that would cause the crash (libpng calling longjmp) can ever arise with gdk-pixbuf is another question and I don't know the answer offhand. If this can happen then it would probably be when dealing with a corrupted input file.
Anyway, this is definitely a glibc bug and it is now on the list of blockers for 2.25. Good work by Ross in finding it!
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 11 lines · Phil Blundell
Quoted 3 lines · Ross
The gdk-pixbuf link does use -lpthread, is this saying that libpng should be linked against pthread too? I can replicate on demand if you have any suggestions.
So, amusingly, it now appears that libpng in pthread-using programs has actually been a bit broken for a long time, since about glibc 2.22.
It's just that the failure has now become more obvious, because ld.so
will refuse to load the binary at all rather than allowing it to load and having it crash later under some circumstances.
Quoted 7 lines
Whether the circumstances that would cause the crash (libpng calling longjmp) can ever arise with gdk-pixbuf is another question and I don't know the answer offhand. If this can happen then it would probably be when dealing with a corrupted input file.
Anyway, this is definitely a glibc bug and it is now on the list of blockers for 2.25. Good work by Ross in finding it!
I have sent a patchset with IFUNC change reverted for now until its fixed.
Quoted 5 lines
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 3 lines · Khem Raj
I have sent a patchset with IFUNC change reverted for now until its fixed.
Yeah, I saw that. But in light of recent developments it seems like it might be better to revert the earlier NPTL patch that apparently introduced the real problem.
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
In reply to Khem RajQuoted 1 line · Khem Raj
Signed-off-by Khem Raj <[email protected]>
The log message for this commit is a bit misleading. Glibc 2.25 has not been released (and the release is not scheduled for another three weeks) and we clearly can't upgrade to a version that doesn't yet exist.
If you want to update the recipe to the current tip of master in order to get more testing of a 2.25 preview during the freeze period then I think that's a fine idea, but it should not be described as "upgrade to 2.25".
p.
Re: [PATCH 2/2] glibc: Upgrade to 2.25
Quoted 6 lines · Phil Blundell
The log message for this commit is a bit misleading. Glibc 2.25 has not been released (and the release is not scheduled for another three weeks) and we clearly can't upgrade to a version that doesn't yet exist.
I'll admit that I threw it my build machine before looking closely at the patch. Yes, this message isn't correct.
Ross
Re: [PATCH 2/2] glibc: Upgrade to 2.25
In reply to Phil BlundellQuoted 8 lines · Phil Blundell
Quoted 1 line · Khem Raj
Signed-off-by Khem Raj <[email protected]>The log message for this commit is a bit misleading. Glibc 2.25 has not been released (and the release is not scheduled for another three weeks) and we clearly can't upgrade to a version that doesn't yet exist.
Quoted 4 lines
If you want to update the recipe to the current tip of master in order to get more testing of a 2.25 preview during the freeze period then I think that's a fine idea, but it should not be described as "upgrade to 2.25".
Agreed. I can change it to append RC, I wanted to have wider testing before we get the final release in Feb first week. So we can weed out issues proactively.
Quoted 3 lines
p.