• Bug#1070836: rust-apple-nvram: Switch from rust-nix 0.26 to 0.27

    From Andreas Henriksson@21:1/5 to All on Fri May 10 18:50:01 2024
    Hello Jeremy Bicha,

    Thanks for explicitly CCing me on this. See below. There's no urgency to
    fix this as the relevant rdeps are still stuck in NEW (for 6+ months).

    On Fri, May 10, 2024 at 05:31:54AM -0400, Jeremy Bícha wrote:
    Source: rust-apple-nvram
    Version: 0.2.0-1
    Severity: serious
    Tags: ftbfs upstream sid
    X-Debbugs-CC: andreas@fatal.se

    rust-apple-nvram Depends and Build-Depends: rust-nix 0.26 but Unstable
    has rust-nix 0.27 instead. I tried doing a simple version bump from
    0.26 to 0.27 in the package but dh_auto_test failed.

    Thank you,
    Jeremy Bícha

    I got the following error when trying the same thing.
    I have no idea why, since the ioctl_write_ptr and ioctl_read macros are
    still supposed to be around. I can't spot any relevant change in nix
    that would cause this to happen. Help would be appreciated.

    ```
    error[E0433]: failed to resolve: could not find `ioctl_write_ptr` in `nix`
    --> src/mtd.rs:50:6
    |
    50 | nix::ioctl_write_ptr!(mtd_mem_erase, b'M', 2, EraseInfoUser);
    | ^^^^^^^^^^^^^^^ could not find `ioctl_write_ptr` in `nix`

    error[E0433]: failed to resolve: could not find `ioctl_read` in `nix`
    --> src/mtd.rs:51:6
    |
    51 | nix::ioctl_read!(mtd_mem_get_info, b'M', 1, MtdInfoUser);
    | ^^^^^^^^^^ could not find `ioctl_read` in `nix`

    error[E0425]: cannot find function `mtd_mem_get_info` in this scope
    --> src/mtd.rs:54:17
    |
    54 | if unsafe { mtd_mem_get_info(file.as_raw_fd(), &mut MtdInfoUser::default()) }.is_err() {
    | ^^^^^^^^^^^^^^^^ not found in this scope

    error[E0425]: cannot find function `mtd_mem_erase` in this scope
    --> src/mtd.rs:62:9
    |
    62 | mtd_mem_erase(file.as_raw_fd(), &erase_info).unwrap();
    | ^^^^^^^^^^^^^ not found in this scope

    Some errors have detailed explanations: E0425, E0433.
    For more information about an error, try `rustc --explain E0425`.
    error: could not compile `apple-nvram` (lib test) due to 4 previous errors
    ```

    Regards,
    Andreas Henriksson

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter green@21:1/5 to All on Sat May 11 03:10:01 2024
    I got the following error when trying the same thing.
    I have no idea why, since the ioctl_write_ptr and ioctl_read macros are
    still supposed to be around. I can't spot any relevant change in nix
    that would cause this to happen. Help would be appreciated.

    The relavent change is.

    All Cargo features have been removed from the default set. Users will
    need to specify which features they depend on in their Cargo.toml.

    I've bumped the dependency, added the feature, run the autopkgtest
    and uploaded the package.

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