Repository navigation
Conversation
|
GNU testsuite comparison: |
Merging this PR will not alter performance
|
|
I don't like this solution. This is already covered by feature. |
|
I would like to get |
|
It does not making a sense to clippy unsupported part. |
|
At least, I think distributor does not want to distribute stubs if |
This comment was marked as outdated.
This comment was marked as outdated.
|
You should ask upstream to auto-skip clippy when |
|
We already use supports stubs for chcon and runcon: #8795 |
|
People on MSYS2 could try to replace system binary with main's binary, or replace cygwin binary with windows binary if cygpath is not an issue. In the case, people can incorrectly override proper nohup.exe by stub nohup.exe and break the system.
(*con are accidentally exception since MSYS does not have them. But we should not have)
|
|
I guess we could avoid stubs with: Then we get a linker error, but at least no compile errors. |
|
How about just removing |
|
The crate fails compile for non-Unix, so it seems the only options are to use a stub, linker error, or compile error. |
|
I passed |
|
I'll investigate what I can do for |
2d58805 to
731518f
Compare
|
|
Doesn't help for compile errors, e.g. with |
|
Linker error should happen also for multicall-call binary. |
How can I test this? |
|
|
731518f to
f203f6c
Compare
f203f6c to
60984f1
Compare
0908e7b to
fb677d3
Compare
|
Closing, work is tracked by #14912. |
|
Reopening for CI. |
3fb2a7b to
505ef1f
Compare
```sh RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std=std,panic_abort -p uutests --all-features --target=powerpc64-ibm-aix --target=x86_64-linux-android --target=x86_64-pc-cygwin --target=aarch64-apple-darwin --target=x86_64-unknown-freebsd --target=x86_64-unknown-haiku --target=x86_64-unknown-hermit --target=x86_64-unknown-hurd-gnu --target=aarch64-unknown-illumos --target=x86_64-unknown-linux-gnu --target=i686-unknown-netbsd --target=x86_64-unknown-openbsd --target=x86_64-unknown-redox --target=x86_64-pc-solaris --target=wasm32-wasip1 --target=x86_64-pc-windows-gnu ```
The feature now compiles successfully on DragonFly BSD, Haiku, Hermit and Hurd targets: ```sh RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std=std,panic_abort -p uucore --features=fsext --all-targets --target=powerpc64-ibm-aix --target=i686-linux-android --target=x86_64-pc-cygwin --target=aarch64-apple-darwin --target=x86_64-unknown-dragonfly --target=x86_64-unknown-freebsd --target=x86_64-unknown-haiku --target=x86_64-unknown-hurd-gnu --target=aarch64-unknown-illumos --target=x86_64-unknown-linux-gnu --target=i686-unknown-netbsd --target=x86_64-unknown-openbsd --target=x86_64-unknown-redox --target=x86_64-pc-solaris --target=wasm32-wasip1 --target=x86_64-pc-windows-gnu ```
Use `libc::EPERM` instead of `nix::errno::Errno::EPERM` to avoid referencing the optional `nix` dependency when it is not enabled.
```sh cargo clippy -q -p uucore --all-targets --no-default-features ```
505ef1f to
e7e3c80
Compare
Fix compilation errors on some platforms that caused
cargo checkto fail.Closes #14912.
Related: #11019