dotter
dotter copied to clipboard
[BUG] watchexec2 breaks build on termux and will soon stop compiling
Environment
- OS: Termux on Android 12
- Dotter version: 61ebe010f1ec073b3db4520dd26b843f6ead4b71 and later
Description
61ebe010f1ec073b3db4520dd26b843f6ead4b71 introduced a new transitive dependency on pwd, which does not build on Android due to getpwent and friends being unavailable in bionic.
error[E0432]: unresolved imports `libc::endpwent`, `libc::getpwent`, `libc::setpwent` --> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/pwd-1.3.1/src/unix.rs:2:20
|
2 | use libc::{c_char, endpwent, getpwent, getpwnam, getpwuid, getuid, passwd, setpwent};
| ^^^^^^^^ ^^^^^^^^ no `getpwent` in the root ^^^^^^^^ no `setpwent` in the root
| | no `endpwent` in the root
| help: a similar name exists in the module
|
2 | use libc::{c_char, endpwent, getutent, getpwnam, getpwuid, getuid, passwd, setpwent};
| ~~~~~~~~ help: a similar name exists in the module
|
2 | use libc::{c_char, endpwent, getpwent, getpwnam, getpwuid, getuid, passwd, setutent};
| ~~~~~~~~
For more information about this error, try `rustc --explain E0432`.
error: could not compile `pwd` due to previous error
Additionally current version of watchexec pulls in dependencies that will stop compiling soon. Should update to latest release, however there are breaking changes.