Skip to content

uucore, uptime: various deprecation warnings with musl #7865

@cakebaker

Description

@cakebaker

In the CI, various deprecation warnings show up in musl-related jobs (I omitted duplicate warnings):

warning: use of deprecated type alias `libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow that change in the future release. See #1848 for more info.
  --> src/uucore/src/lib/features/uptime.rs:17:11
   |
17 | use libc::time_t;
   |           ^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated function `libc::endutxent`: musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html
  --> src/uucore/src/lib/features/utmpx.rs:43:15
   |
43 | pub use libc::endutxent;
   |               ^^^^^^^^^

warning: use of deprecated function `libc::getutxent`: musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html
  --> src/uucore/src/lib/features/utmpx.rs:44:15
   |
44 | pub use libc::getutxent;
   |               ^^^^^^^^^

warning: use of deprecated function `libc::setutxent`: musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html
  --> src/uucore/src/lib/features/utmpx.rs:45:15
   |
45 | pub use libc::setutxent;
   |               ^^^^^^^^^

warning: use of deprecated function `libc::utmpxname`: musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html
  --> src/uucore/src/lib/features/utmpx.rs:48:15
   |
48 | pub use libc::utmpxname;
   |               ^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions