• Bug#1103275: rust-sudo-rs: Autopkgtests fail on 32-bit architectures

    From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to All on Tue Apr 15 22:40:01 2025
    Source: rust-sudo-rs
    Version: 0.2.5-3
    Severity: serious
    Tags: upstream

    The autopkgtests for rust-sudo-rs are failing on 32-bit architectures.
    This is preventing the latest update from migrating to Testing.

    I'm filing an upstream bug for this.

    Autopkgtest log excerpt
    ======================
    error[E0308]: arguments to this function are incorrect
    --> src/system/time.rs:165:12
    |
    165 | Ok(ProcessCreateTime::new(spec.tv_sec, spec.tv_nsec))
    | ^^^^^^^^^^^^^^^^^^^^^^ ----------- ------------
    expected `i64`, found `i32`
    | |
    | expected `i64`, found `i32`
    |
    note: associated function defined here
    --> src/system/time.rs:141:12
    |
    141 | pub fn new(secs: i64, nsecs: i64) -> ProcessCreateTime {
    | ^^^ --------- ----------
    help: you can convert an `i32` to an `i64`
    |
    165 | Ok(ProcessCreateTime::new(spec.tv_sec.into(), spec.tv_nsec))
    | +++++++
    help: you can convert an `i32` to an `i64`
    |
    165 | Ok(ProcessCreateTime::new(spec.tv_sec, spec.tv_nsec.into()))
    | +++++++

    For more information about this error, try `rustc --explain E0308`.
    error: could not compile `sudo-rs` (lib test) due to 1 previous error

    Thank you,
    Jeremy BĂ­cha

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)