coreutils
coreutils copied to clipboard
Install man page, completions by cargo install and drop GNU make support
At least for Arch Linux, offline build and splitting packaging process is recommended. i.e.
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" # Download crates needed for build
cargo build --frozen --release --all-features # offline build
cargo install --no-track --frozen --all-features --root "$pkgdir/usr/" --path . # packaging
However, the step to install everything is provided only by GNU make and manual installation of manpages,etc... needs many steps. I know cargo fetch before make is possible, but difficult to understand it.
Consider supporting to install them by cargo install --all-features.
Consider also dropping support of GNU make since it internally calls cargo too many times already.
Patches welcome! I have more important things on the roadmap for now
Note that "Cargo install" is limited, by design. It does not support installing .so files (needed for libstdbuf.so).
Is this use case covered by make CARGOFLAGS e.g. CARGOFLAGS=--feat_external_libstdbuf?
If so, there is a no reason to drop make.
Yes, I think it would be good that "make install" should install libstdbuf.so when feat_external_libstdbuf is enabled.
It seems make install CARGOFLAGS=--feat_external_libstdbuf SKIP_UTILS="runcon chcon" does not work on main branch yet.
Is there any way to enable external libstdbuf with --features flag?
GNUmakefile has ${CARGO} build ${CARGOFLAGS} --features.
@oech3 I've sent https://github.com/uutils/coreutils/pull/8238 to cover this use-case.
Cannot cargo install symlink(hardkink) too without adding installer binary?
Reopening because GNUmakefile is buggy and has many duplicated operation with cargo.
We might not have cargo native solution yet, but I think we should remove make too as same as onig.