-
-
Notifications
You must be signed in to change notification settings - Fork 18k
glibc: 2.33-108 -> 2.34-115 #133431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
glibc: 2.33-108 -> 2.34-115 #133431
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
97acaf6
glibc: 2.33-108 -> 2.34-115
Ma27 7459a40
stdenv-bootstrap: force using new libc from stage2
Ma27 7bc32b3
glibc: symlink `libpthread.so -> libpthread.so.0` (same for `-lrt`) f…
Ma27 49028fb
findutils: fix build w/glibc-2.34
Ma27 9fe34cc
glibc: also create backwards-compat symlinks for libdl and libutil
Ma27 f363b7c
boost1{69,70,72}: fix build w/glibc-2.34
Ma27 1b8aa88
glibc: revert `/bin/bash` usage
Ma27 2357e82
gdb: fix build w/glibc-2.34
Ma27 3aa6c49
libressl: fix build w/glibc-2.34
Ma27 8631ba1
fuse: fix build w/glibc-2.34
Ma27 486f248
catch: fix build w/glibc-2.34
Ma27 f81f59d
autofs: fix build w/glibc-2.34
Ma27 b9078e5
qt515.qtwebengine: fix build w/glibc-2.34
Ma27 0caf7e5
qt514.qtwebengine: fix build w/glibc-2.34
Ma27 96418eb
rcs: fix build w/glibc-2.34
Ma27 48d7135
emacs: fix build w/glibc-2.34
Ma27 1470227
postfix: fix build w/glibc-2.34
Ma27 917b7e5
ocaml: fix build w/glibc-2.34
Ma27 8e16dcc
openjdk11: fix build w/glibc-2.34
Ma27 f97b995
texinfo: fix build w/glibc-2.34
Ma27 bcf8aef
ocaml 4.10/4.11: fix build w/glibc-2.34
Ma27 f8a7d99
spdlog: 1.8.5 -> 1.9.2, fix build w/glibc-2.34
Ma27 49a7ee9
seasocks: fix build w/glibc-2.34
Ma27 c205067
leatherman: fix build w/glibc-2.34
Ma27 b770794
eternal-terminal: fix build w/glibc-2.34
Ma27 c905ab5
trenchbroom: fix build w/glibc-2.34
Ma27 7c57816
trafficserver: fix build w/glibc-2.34
Ma27 d4593d4
pdfslicer: fix build w/glibc-2.34
Ma27 a3f4ff5
openmw: mark as broken
Ma27 dbe99a0
ntp: fix build w/glibc-2.34
Ma27 f8fc20d
breakpad: fix build w/glibc-2.34
Ma27 65f5fdb
arangodb*: fix build w/glibc-2.34
Ma27 84635a6
apitrace: fix build w/glibc-2.34
Ma27 40fc009
aspcud: fix build w/glibc-2.34
Ma27 0bdcc48
conky: fix build w/glibc-2.34
Ma27 29e14f8
polyml*: fix build w/glibc-2.34
Ma27 da905d4
nixos/stage-1: fix `modprobe` in initial ramdisk on systems w/glibc-2.34
Ma27 5188650
libowfat: mark as broken
Ma27 5f56cd5
tiscamera: fix build w/glibc-2.34
Ma27 18d915e
ursadb: fix build w/glibc-2.34
Ma27 89caa8e
libfive: mark as broken
Ma27 fe58c18
libspf2: fix build w/glibc-2.34
Ma27 6b98a5e
nethack-qt: fix build w/glibc-2.34
Ma27 748faeb
glibc: don't hide symbol `__nss_files_fopen`
Ma27 1046c86
libosmscout: fix build w/glibc-2.34
Ma27 c0f4954
maude: fix build w/glibc-2.34
Ma27 4427e54
jetbrains.jdk: fix build w/glibc-2.34
Ma27 81e0c94
xnee: fix build w/glibc-2.34
Ma27 7605d49
qt512.qtwebengine: fix build w/glibc-2.34
Ma27 f319309
djmount: fix build w/glibc-2.34
Ma27 52bba1d
clingcon: fix build w/glibc-2.34
Ma27 322c490
mustache-hpp: fix build w/glibc-2.34
Ma27 a2ac7c6
recastnavigation: fix build w/glibc-2.34
Ma27 5f9c36c
spdlog_0: fix build w/glibc-2.34
Ma27 8ba95b6
symengine: fix build w/glibc-2.34
Ma27 6a97775
zeroc-ice: fix build w/glibc-2.34
Ma27 e10ea96
gcc{7,9,10}: apply patches for asan w/glibc-2.34
Ma27 64f9c92
soci: fix build w/glibc-2.34
Ma27 da55ba2
sfizz: fix build w/glibc-2.34, actually enable tests
Ma27 9a9fff5
quvi*: mark as broken
Ma27 357dd9e
zeroc-ice-36: remove, unmaintained
Ma27 2db6c7e
jumanpp: fix build w/glibc-2.34
Ma27 b43a356
cpp-hocon: fix build w/glibc-2.34
Ma27 6320b72
cataclysm-dda: fix build w/glibc-2.34
Ma27 25172c9
securefs: fix build w/glibc-2.34
Ma27 11597d1
sfxr-qt: fix build w/glibc-2.34
Ma27 e9187ab
gdb: remove `--disable-sim` fix
Ma27 69af73d
texinfo: review fixes
Ma27 e110983
glibc: add empty libpthread.a
Ma27 1077a6e
nixos/stage-1: typo fixes
Ma27 91fa765
stdenv: revert gcc hack
Ma27 41eb407
Revert "jetbrains.jdk: fix build w/glibc-2.34"
Ma27 82580b1
cataclysm-dda: fix eval
Ma27 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkgs/applications/graphics/apitrace/glibc-2.34-compat.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp | ||
| index 2eda082..0c0c8ee 100644 | ||
| --- a/wrappers/dlsym.cpp | ||
| +++ b/wrappers/dlsym.cpp | ||
| @@ -34,7 +34,7 @@ | ||
| #include "os.hpp" | ||
|
|
||
|
|
||
| -#ifdef __GLIBC__ | ||
| +#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 34 | ||
|
|
||
|
|
||
| #include <dlfcn.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
pkgs/development/compilers/gcc/10/gcc10-asan-glibc-2.34.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| From 950bac27d63c1c2ac3a6ed867692d6a13f21feb3 Mon Sep 17 00:00:00 2001 | ||
| From: Jakub Jelinek <jakub@redhat.com> | ||
| Date: Sat, 17 Apr 2021 11:27:14 +0200 | ||
| Subject: [PATCH] sanitizer: Fix asan against glibc 2.34 [PR100114] | ||
|
|
||
| As mentioned in the PR, SIGSTKSZ is no longer a compile time constant in | ||
| glibc 2.34 and later, so | ||
| static const uptr kAltStackSize = SIGSTKSZ * 4; | ||
| needs dynamic initialization, but is used by a function called indirectly | ||
| from .preinit_array and therefore before the variable is constructed. | ||
| This results in using 0 size instead and all asan instrumented programs | ||
| die with: | ||
| ==91==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) | ||
|
|
||
| Here is a cherry-pick from upstream to fix this. | ||
|
|
||
| 2021-04-17 Jakub Jelinek <jakub@redhat.com> | ||
|
|
||
| PR sanitizer/100114 | ||
| * sanitizer_common/sanitizer_posix_libcdep.cpp: Cherry-pick | ||
| llvm-project revisions 82150606fb11d28813ae6da1101f5bda638165fe | ||
| and b93629dd335ffee2fc4b9b619bf86c3f9e6b0023. | ||
|
|
||
| (cherry picked from commit d9f462fb372fb02da032cefd6b091d7582c425ae) | ||
| --- | ||
| .../sanitizer_common/sanitizer_posix_libcdep.cpp | 13 ++++++++----- | ||
| 1 file changed, 8 insertions(+), 5 deletions(-) | ||
|
|
||
| diff --git a/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp b/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp | ||
| index 304b3a01a08..ac88fbe074e 100644 | ||
| --- a/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp | ||
| +++ b/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp | ||
| @@ -169,7 +169,11 @@ bool SupportsColoredOutput(fd_t fd) { | ||
|
|
||
| #if !SANITIZER_GO | ||
| // TODO(glider): different tools may require different altstack size. | ||
| -static const uptr kAltStackSize = SIGSTKSZ * 4; // SIGSTKSZ is not enough. | ||
| +static uptr GetAltStackSize() { | ||
| + // SIGSTKSZ is not enough. | ||
| + static const uptr kAltStackSize = SIGSTKSZ * 4; | ||
| + return kAltStackSize; | ||
| +} | ||
|
|
||
| void SetAlternateSignalStack() { | ||
| stack_t altstack, oldstack; | ||
| @@ -180,10 +184,9 @@ void SetAlternateSignalStack() { | ||
| // TODO(glider): the mapped stack should have the MAP_STACK flag in the | ||
| // future. It is not required by man 2 sigaltstack now (they're using | ||
| // malloc()). | ||
| - void* base = MmapOrDie(kAltStackSize, __func__); | ||
| - altstack.ss_sp = (char*) base; | ||
| + altstack.ss_size = GetAltStackSize(); | ||
| + altstack.ss_sp = (char *)MmapOrDie(altstack.ss_size, __func__); | ||
| altstack.ss_flags = 0; | ||
| - altstack.ss_size = kAltStackSize; | ||
| CHECK_EQ(0, sigaltstack(&altstack, nullptr)); | ||
| } | ||
|
|
||
| @@ -191,7 +194,7 @@ void UnsetAlternateSignalStack() { | ||
| stack_t altstack, oldstack; | ||
| altstack.ss_sp = nullptr; | ||
| altstack.ss_flags = SS_DISABLE; | ||
| - altstack.ss_size = kAltStackSize; // Some sane value required on Darwin. | ||
| + altstack.ss_size = GetAltStackSize(); // Some sane value required on Darwin. | ||
| CHECK_EQ(0, sigaltstack(&altstack, &oldstack)); | ||
| UnmapOrDie(oldstack.ss_sp, oldstack.ss_size); | ||
| } | ||
| -- | ||
| 2.27.0 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
pkgs/development/compilers/gcc/7/gcc8-asan-glibc-2.34.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| From ef195a39d0d3b929cc676302d074b42c25460601 Mon Sep 17 00:00:00 2001 | ||
| From: Jakub Jelinek <jakub@redhat.com> | ||
| Date: Sat, 17 Apr 2021 11:27:14 +0200 | ||
| Subject: [PATCH] sanitizer: Fix asan against glibc 2.34 [PR100114] | ||
|
|
||
| As mentioned in the PR, SIGSTKSZ is no longer a compile time constant in | ||
| glibc 2.34 and later, so | ||
| static const uptr kAltStackSize = SIGSTKSZ * 4; | ||
| needs dynamic initialization, but is used by a function called indirectly | ||
| from .preinit_array and therefore before the variable is constructed. | ||
| This results in using 0 size instead and all asan instrumented programs | ||
| die with: | ||
| ==91==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) | ||
|
|
||
| Here is a cherry-pick from upstream to fix this. | ||
|
|
||
| 2021-04-17 Jakub Jelinek <jakub@redhat.com> | ||
|
|
||
| PR sanitizer/100114 | ||
| * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick | ||
| llvm-project revisions 82150606fb11d28813ae6da1101f5bda638165fe | ||
| and b93629dd335ffee2fc4b9b619bf86c3f9e6b0023. | ||
|
|
||
| (cherry picked from commit 950bac27d63c1c2ac3a6ed867692d6a13f21feb3) | ||
| --- | ||
| .../sanitizer_common/sanitizer_posix_libcdep.cc | 13 ++++++++----- | ||
| 1 file changed, 8 insertions(+), 5 deletions(-) | ||
|
|
||
| diff --git a/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc b/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc | ||
| index 1a37118c299..066079b3954 100644 | ||
| --- a/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc | ||
| +++ b/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cc | ||
| @@ -159,7 +159,11 @@ bool SupportsColoredOutput(fd_t fd) { | ||
|
|
||
| #if !SANITIZER_GO | ||
| // TODO(glider): different tools may require different altstack size. | ||
| -static const uptr kAltStackSize = SIGSTKSZ * 4; // SIGSTKSZ is not enough. | ||
| +static uptr GetAltStackSize() { | ||
| + // SIGSTKSZ is not enough. | ||
| + static const uptr kAltStackSize = SIGSTKSZ * 4; | ||
| + return kAltStackSize; | ||
| +} | ||
|
|
||
| void SetAlternateSignalStack() { | ||
| stack_t altstack, oldstack; | ||
| @@ -170,10 +174,9 @@ void SetAlternateSignalStack() { | ||
| // TODO(glider): the mapped stack should have the MAP_STACK flag in the | ||
| // future. It is not required by man 2 sigaltstack now (they're using | ||
| // malloc()). | ||
| - void* base = MmapOrDie(kAltStackSize, __func__); | ||
| - altstack.ss_sp = (char*) base; | ||
| + altstack.ss_size = GetAltStackSize(); | ||
| + altstack.ss_sp = (char *)MmapOrDie(altstack.ss_size, __func__); | ||
| altstack.ss_flags = 0; | ||
| - altstack.ss_size = kAltStackSize; | ||
| CHECK_EQ(0, sigaltstack(&altstack, nullptr)); | ||
| } | ||
|
|
||
| @@ -181,7 +184,7 @@ void UnsetAlternateSignalStack() { | ||
| stack_t altstack, oldstack; | ||
| altstack.ss_sp = nullptr; | ||
| altstack.ss_flags = SS_DISABLE; | ||
| - altstack.ss_size = kAltStackSize; // Some sane value required on Darwin. | ||
| + altstack.ss_size = GetAltStackSize(); // Some sane value required on Darwin. | ||
| CHECK_EQ(0, sigaltstack(&altstack, &oldstack)); | ||
| UnmapOrDie(oldstack.ss_sp, oldstack.ss_size); | ||
| } | ||
| -- | ||
| 2.27.0 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.