In libq/human_readable.c, the format strings use %'Lu as a format specifier, but L is not a valid length specifier for u. Since sys-libs/glibc has implemented L and ll as synonyms, this works for most systems, but sys-libs/musl has been more literal, and causes the result to be an empty string. Reproducible: Always Steps to Reproduce: 1. On a musl-based system (or with portage-utils built against musl), run `qsize -k portage-utils' Actual Results: app-portage/portage-utils-0.63: 36 files, 10 non-files, KiB Expected Results: app-portage/portage-utils-0.63: 36 files, 10 non-files, 184 KiB Since val is an unsigned long long, using %'llu seems to work fine. The attached patch has been tested on x86_64-pc-linux-gnu and armv7a-hardfloat-linux-musleabi.
Created attachment 442912 [details, diff] Patch which fixes the issue for me
just need to re-sync with the busybox sources as they've fixed this long ago
should be fixed here: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=c913c735be27d2f67221abf255dc38e31a9c3bad