busybox: backport hexdump fix for Big Endian systems
authorÁlvaro Fernández Rojas <[email protected]>
Sun, 23 Nov 2025 16:07:05 +0000 (17:07 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 23 Nov 2025 16:10:00 +0000 (17:10 +0100)
commit749d54fea89914a5c26f4f2464b11af385130c49
tree7c9c46ff50414ee58455a82bac1297100aba7b29
parent671898c7d266ac01b67de74107b8328edcde1e22
busybox: backport hexdump fix for Big Endian systems

hexdump isn't working properly on some Big Endian systems, producing
incorrect output such as:
  hexdump -vn 5 -e '"fd" 1/1 "%02x:" 2/2 "%x:"' /dev/urandom
  fdff:542c0054:17920017:
Which should be:
  fdff:542c:1792:

This breaks the default ULA prefix generation on some systems. See:
https://github.com/openwrt/openwrt/issues/19844

The issue has already been fixed upstream, so we can backport the fix:
https://git.busybox.net/busybox/commit/libbb/dump.c?id=f5c7cae55fc3e19d074198bc12152486067ea8c7

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
package/utils/busybox/patches/003-hexdump-fix-regression-for-uint16-on-big-endian-systems.patch [new file with mode: 0644]