coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

Install doesn't include all binaries

Open JoshMcguigan opened this issue 1 year ago • 7 comments

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.

JoshMcguigan avatar Jun 22 '24 22:06 JoshMcguigan

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)

AngryLoki avatar Jun 24 '24 07:06 AngryLoki

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...

ed9w2in6 avatar Apr 27 '25 01:04 ed9w2in6

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

kpcyrd avatar May 29 '25 14:05 kpcyrd