kumquat-buildroot/package/busybox
Raphaël Mélotte cd02f96b87 package: busybox: backport fix for missing getrandom()
The current Busybox version (1.36.0) fails to build with some
libc/linux combinations where getrandom() is not available. Two fixes
for glibc already exists upstream, so backport them here. A third
one (submitted upstream, not part of the main branch yet) was needed
to be able to compile with older musl and uClibc versions (or older
kernels).

This fixes the following build failure raised since commit
d68b617993:

miscutils/seedrng.c:45:24: fatal error: sys/random.h: No such file or directory
 #include <sys/random.h>

Fixes:
- http://autobuild.buildroot.net/results/44a0476b86c579e6aa658f156f0292958d40513c
- http://autobuild.buildroot.net/results/ed028160db397581558fd8c96755621dd8298bb1
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624008
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624034
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624044
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624048
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624051

It also fixes the following (similar) build failure, raised since the
same commit:

miscutils/lib.a(seedrng.o): In function `seedrng_main':
seedrng.c:(.text.seedrng_main+0x26c): undefined reference to `getrandom'
seedrng.c:(.text.seedrng_main+0x2e8): undefined reference to `getrandom'
collect2: error: ld returned 1 exit status

Fixes:
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624028
- https://gitlab.com/buildroot.org/buildroot/-/jobs/4122624031

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-05-09 20:44:55 +02:00
..
0001-networking-libiproute-use-linux-if_packet.h-instead-.patch
0002-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch
0003-libbb-sockaddr2str-ensure-only-printable-characters-.patch package/busybox: update to 1.36.0 2023-02-07 14:30:56 +01:00
0004-nslookup-sanitize-all-printed-strings-with-printable.patch package/busybox: update to 1.36.0 2023-02-07 14:30:56 +01:00
0005-seedrng-fix-for-glibc-2.24-not-providing-getrandom.patch package: busybox: backport fix for missing getrandom() 2023-05-09 20:44:55 +02:00
0006-seedrng-fix-for-glibc-2.24-not-providing-random-head.patch package: busybox: backport fix for missing getrandom() 2023-05-09 20:44:55 +02:00
0007-seedrng-fix-getrandom-detection-for-non-glibc-libc.patch package: busybox: backport fix for missing getrandom() 2023-05-09 20:44:55 +02:00
busybox-minimal.config
busybox.config package/busybox: update to 1.36.0 2023-02-07 14:30:56 +01:00
busybox.hash package/busybox: update to 1.36.0 2023-02-07 14:30:56 +01:00
busybox.mk package/busybox: disable sha1/sha256 hwaccel with x86 2023-05-07 15:01:28 +02:00
Config.in
inittab
mdev.conf
S01syslogd
S02klogd
S02sysctl
S10mdev
S15watchdog
S50telnet
telnetd.service
udhcpc.script