[Pkg-rust-maintainers] Bug#1070836: rust-apple-nvram: Switch from rust-nix 0.26 to 0.27

Andreas Henriksson andreas at fatal.se
Fri May 10 17:33:37 BST 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 at 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



More information about the Pkg-rust-maintainers mailing list