There's a closed pull request on the void-packages repository [RFC] switch to functions for libc, atomic support, etc checks https://github.com/void-linux/void-packages/pull/24539 Description: - I just threw the functions in `shutils/common.sh`, they can certainly go elsewhere. They haven't undergone extensive testing at all. - The packages with additional changes in the second commit (`xbps_target_libc`) should get their own commits. Possible additions: `xbps_target_wordsize`, `xbps_host_target_wordsize_differ` (or something to that effect).