Debian Patches

Status for toybox/0.8.15+dfsg-3

Patch Description Author Forwarded Bugs Origin Last update
silent-blhc.patch Silent blhc Antoni Villalonga i Noceras <antoni@friki.cat> invalid 2020-08-10
tests-remove-binary-files.patch Disable tests using removed binary files Antoni Villalonga i Noceras <antoni@friki.cat> invalid 2022-01-10
du-skip-tmpfs.patch Skip du tests on tmpfs Directories occupy no blocks on tmpfs, so the expected sizes are wrong.
Adapted from patch on upstream issue #301.
Bastian Germann <bage@debian.org> no debian https://github.com/landley/toybox/issues/301
devmem-test-skip-big-endian-and-32-bit.patch Skip devmem tests on architectures devmem cannot support devmem prints values in the host's native byte order, and only supports an
8-byte width when long is 64 bits. The upstream test's expected values are
little-endian and assume a 64-bit long, so the selftests fail on big-endian
(s390x) and 32-bit (i386, armhf) architectures.
Skip the test on big-endian hosts and the 8-byte tests on 32-bit hosts.
Bastian Germann <bage@debian.org> yes 2026-11-09
taskset-test-even-cpu-list.patch taskset: fix 'even CPU list' test on even-CPU hosts The test feeds the CPU list `seq -s, 0 2 $CPUS` to taskset, which includes
the out-of-range CPU $CPUS when the host has an even number of CPUs. The
kernel silently drops that bit only when the host has exactly $CPUS CPUs
(as most autopkgtest runners do), so the test fails where the possible-CPU
count is larger than nproc (e.g. the riscv64 autopkgtest worker).
Generate the list up to $CPUS-1 instead, so only valid CPUs are used and
the expected output matches regardless of the host's possible-CPU mask.
Bastian Germann <bage@debian.org> invalid 2026-11-09
taskset-print-two-cpu-range.patch taskset: print a trailing two-CPU run as a range When printing a CPU list (taskset -pc), the range-compression logic prints
a two-CPU run as two singletons ("0,1") because it assumes the run could be
the start of a longer pattern and defers the second CPU to the next range.
If that two-CPU run is the end of the mask there is no next range, so a
two-CPU host (e.g. the i386 autopkgtest worker) prints the all-CPUs mask
as "0,1" instead of "0-1", failing the upstream 'print all as CPU list'
selftest (which expects "0-$((CPUS-1))").
Only defer the second CPU when there is actually another CPU after it;
otherwise print the complete range.
Bastian Germann <bage@debian.org> invalid 2026-11-09
sha3sum-fix-big-endian.patch sha3sum: fix hash output on big-endian hosts The Keccak-f[1600] permutation reads and writes its 1600-bit sponge state
through an "unsigned long long *" alias of the state's byte array, which
assumes the state lanes are stored in host byte order. The SHA-3/FIPS 202
specification instead numbers the lanes' bits little-endian, so on big-endian
hosts such as s390x every lane is read (and written back) byte-swapped and
the resulting digest is wrong.
Load each lane from the state one byte at a time (least significant byte
first) before the permutation and write it back the same way, which is
correct on both big- and little-endian hosts.
Bastian Germann <bage@debian.org> yes 2026-11-09

All known versions for source package 'toybox'

Links