coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

Install man page, completions by cargo install and drop GNU make support

Open oech3 opened this issue 6 months ago • 1 comments

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.

oech3 avatar Jun 11 '25 10:06 oech3

Patches welcome! I have more important things on the roadmap for now

sylvestre avatar Jun 11 '25 11:06 sylvestre

Note that "Cargo install" is limited, by design. It does not support installing .so files (needed for libstdbuf.so).

Ecordonnier avatar Jun 20 '25 19:06 Ecordonnier

Is this use case covered by make CARGOFLAGS e.g. CARGOFLAGS=--feat_external_libstdbuf? If so, there is a no reason to drop make.

oech3 avatar Jun 20 '25 20:06 oech3

Yes, I think it would be good that "make install" should install libstdbuf.so when feat_external_libstdbuf is enabled.

Ecordonnier avatar Jun 20 '25 20:06 Ecordonnier

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 avatar Jun 21 '25 05:06 oech3

@oech3 I've sent https://github.com/uutils/coreutils/pull/8238 to cover this use-case.

Ecordonnier avatar Jun 21 '25 22:06 Ecordonnier

Cannot cargo install symlink(hardkink) too without adding installer binary?

oech3 avatar Oct 19 '25 08:10 oech3

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.

oech3 avatar Nov 10 '25 19:11 oech3