Install doesn't include all binaries
Hi, thanks for the work on uutils/coreutils! I'm experimenting with using them as the base for a Gentoo system, and found the make based installer doesn't include all the binaries.
In particular, with MULTICALL=y, some of the checksums (for example sha256sum) are not included.
This may relate, for some users, to #6466, since the --list can be used to create symlinks exhaustively for all the available entrypoints.
I guess this is related to https://www.joshmcguigan.com/blog/gentoo-uutils-coreutils/
a matter of diff'ing those two lists and patching up any gaps
Missing in sys-apps/uutils-coreutils-0.0.27 (mostly missing symlinks):
b2sum
chcon (requires USE=selinux)
md5sum
runcon (requires USE=selinux)
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
stty (requires USE=selinux)
Missing in sys-apps/coreutils-9.4-r1:
coreutils (uutils internals)
groups (part of sys-apps/shadow)
hashsum (uutils internals?)
hostname (part of sys-apps/net-tools)
kill (part of sys-process/procps)
more (part of sys-apps/util-linux)
uptime (part of sys-process/procps)
I have inspected by installation and found these missing to be exact:
{'sha512sum', 'sha256sum', 'md5sum', 'stty', 'b2sum', 'runcon', 'sha224sum', 'sha1sum', 'sha384sum', 'chcon'}
Some of them make sense e.g. runcon, chcon since they are SELinux specific but I'm not sure about the check sum ones.
By inspecting the makefile this seems deliberate? None of the checksum commands are listed, then the two SELinux ones are listed but not linked: https://github.com/uutils/coreutils/blob/ed3da5fd6555db63af994717eb150fda163bcd5a/GNUmakefile
A "fix" will obviously be trivial, just change the makefile, and we can do symlink ourselves too but I'm more curious why they aren't installed for the first place, which I believe should have a reason.
Not sure who to ask though...
I also noticed the missing sha256sum, b2sum, ... binary, I suspect there might be an issue with this code:
https://github.com/uutils/coreutils/blob/94132060b69958586908f8894012329fa04b22f1/util/build-gnu.sh#L135-L139
The line earlier states the tests may modify the build output, so maybe not running tests may cause this?
https://github.com/uutils/coreutils/blob/94132060b69958586908f8894012329fa04b22f1/util/build-gnu.sh#L134