Skip to content

[BUG] watchexec2 breaks build on termux and will soon stop compiling #110

@dead10ck

Description

@dead10ck

Environment

  • OS: Termux on Android 12
  • Dotter version: 61ebe01 and later

Description

61ebe01 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions