You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5228223 ci: remove MSAN getrandom syscall workaround (fanquake)
d5e0691 random: switch to using getrandom() directly (fanquake)
c2ba3f5 random: add [[maybe_unused]] to GetDevURandom (fanquake)
c13c97d random: getentropy on macOS does not need unistd.h (fanquake)
Pull request description:
This requires a linux kernel of `3.17`+, which seems entirely
reasonable. `3.17` went EOL in 2015, and the last supported `3.x` kernel
(`3.16`) went EOL > 4 years ago, in 2020. For reference, the current
oldest maintained kernel is `4.14` (released 2017, going EOL Jan 2024).
Support for `getrandom()` (and `getentropy()`) was added to
glibc `2.25` https://sourceware.org/legacy-ml/libc-alpha/2017-02/msg00079.html:
> * The getentropy and getrandom functions, and the <sys/random.h> header
file have been added.
and we already require `2.27` or later.
All that being said, I don't think you would encounter a current day (+~6 months from now)
system, running with kernel headers older than 3.17 (released 2014) but also having a
glibc of 2.27+ (released 2018)?
Removing this (our only) use of `syscall()` also means we can drop a workaround in our MSAN jobs.
If this is merged, I'll drop the [same workaround in oss-fuzz](https://github.com/google/oss-fuzz/blob/25946a544856413d31d9cbb3a366a4aef5a8fd60/projects/bitcoin-core/build.sh#L49-L56).
ACKs for top commit:
josibake:
ACK bitcoin/bitcoin@5228223
hebasto:
ACK 5228223, I've tested build system changes on Ubuntu 22.04 and macOS Monterey 12.6.6 (x86_64).
Tree-SHA512: cc978e08510c461b875ca8c08ae176b4519fa1108f0efd74dcb7474518945357e0184e54423282c9a496de195e4ddc3e221ee78623bd63e24c50cc86acdf32e2
Copy file name to clipboardExpand all lines: doc/dependencies.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ You can find installation instructions in the `build-*.md` file for your platfor
20
20
|[Boost](../depends/packages/boost.mk)|[link](https://www.boost.org/users/download/)|[1.81.0](https://github.com/bitcoin/bitcoin/pull/26557)|[1.64.0](https://github.com/bitcoin/bitcoin/pull/22320)| No |
21
21
|[libevent](../depends/packages/libevent.mk)|[link](https://github.com/libevent/libevent/releases)|[2.1.12-stable](https://github.com/bitcoin/bitcoin/pull/21991)|[2.1.8](https://github.com/bitcoin/bitcoin/pull/24681)| No |
0 commit comments