coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

unexpected `selinux` features enabled when using `--workspace`

Open Fearyncess opened this issue 3 weeks ago • 2 comments

I have a linux environment that doesnt have any selinux incl. libselinux. When building by cargo build --workspace --feature unix, I have got a error said failed to build selinux-sys because I don't have any libselinux installed. I think this is a unexpected problem when not choosing to enable selinux features.

Fearyncess avatar Dec 03 '25 10:12 Fearyncess

Yes. It is why we have cargo build --release --bins --workspace --exclude coreutils --exclude uu_runcon --exclude uu_chcon at README.md.

I don't think we can do somethong for it more than documentation.

oech3 avatar Dec 03 '25 13:12 oech3

@Fearyncess Would you send a PR to exclude uu_runcon and uu_chcon package if feat_selinux is not specified? I'm not familiar with cargo.

oech3 avatar Dec 06 '25 07:12 oech3