#1012418 librust-zbus-dev: Broken with nix 0.24.1

Package:
librust-zbus-dev
Source:
rust-zbus
Description:
API for D-Bus communication - Rust source code
Submitter:
dcz
Date:
2022-06-11 16:21:03 UTC
Severity:
grave
#1012418#5
Date:
2022-06-06 18:23:39 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#1012418#10
Date:
2022-06-06 18:40:17 UTC
From:
To:
Filling in the gaps.

zbus is broken since a couple days: https://gitlab.gnome.org/World/Phosh/squeekboard/-/jobs/2047130

in particular, it tries to call into nix::sendmsg, but it seems sendmsg parameters have changed:

   Compiling zbus v1.9.2
error[E0308]: mismatched types
  --> /usr/share/cargo/registry/zbus-1.9.2/src/raw/socket.rs:70:13
   |
70 |             &iov,
   |             ^^^^ types differ in mutability
   |
   = note: expected mutable reference `&mut [IoSliceMut<'_>]`
                      found reference `&[IoVec<&mut [u8]>; 1]`
error[E0308]: mismatched types
  --> /usr/share/cargo/registry/zbus-1.9.2/src/raw/socket.rs:99:41
   |
99 |         match sendmsg(self.as_raw_fd(), &iov, &cmsg, MsgFlags::empty(), None) {
   |                                         ^^^^ expected slice, found array of 1 element
   |
   = note: expected reference `&[IoSlice<'_>]`
              found reference `&[IoVec<&[u8]>; 1]`
For more information about this error, try `rustc --explain E0308`.

#1012418#15
Date:
2022-06-11 16:20:16 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-zbus, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1012418@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Michael Green <plugwash@debian.org> (supplier of updated rust-zbus package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 11 Jun 2022 16:03:02 +0000
Source: rust-zbus
Architecture: source
Version: 1.9.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed-By: Peter Michael Green <plugwash@debian.org>
Closes: 1012418
Changes:
 rust-zbus (1.9.2-2) unstable; urgency=medium
 .
   * Team upload.
   * Package zbus 1.9.2 from crates.io using debcargo 2.5.0
   * Add patch for nix 0.24 (Closes: 1012418)
Checksums-Sha1:
 2ad126cecbed676df3a101e4a9e173fa9895cf39 2999 rust-zbus_1.9.2-2.dsc
 4af484d749f5dd7b346b2283891b825e7e294bba 4876 rust-zbus_1.9.2-2.debian.tar.xz
 aa7e3c9c21d25b52c50ee212bc966ad190b54c52 10377 rust-zbus_1.9.2-2_source.buildinfo
Checksums-Sha256:
 10b66cb5e8371347f8c066dcd90166506a7dd87387627989f810fc3effc1a106 2999 rust-zbus_1.9.2-2.dsc
 5da4c077ebab4db2427341b0c4cf1388b670a2ac4483fd315de242fdc28bf5e0 4876 rust-zbus_1.9.2-2.debian.tar.xz
 8263db22ab84e30f5c86921895c6e5c3f70d14cce690480d62235121417409db 10377 rust-zbus_1.9.2-2_source.buildinfo
Files:
 e41dd6901cfbc1c0b1c5c1d4c4a61154 2999 rust optional rust-zbus_1.9.2-2.dsc
 c8150ae37040405c47f81383061476bc 4876 rust optional rust-zbus_1.9.2-2.debian.tar.xz
 55c155ce2019af9e00cd68d1da72c73b 10377 rust optional rust-zbus_1.9.2-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEU0DQATYMplbjSX63DEjqKnqP/XsFAmKkvOEUHHBsdWd3YXNo
QGRlYmlhbi5vcmcACgkQDEjqKnqP/XtA/hAAhg807YG3DogYcAGpGXqqZ3mghY3Q
6TFZ3m7pJa8lIwGvYi9+sn2bQC/uMYGsGtbqioHCFDQT3VRvcv0uGqjvB4B5LuoO
sWJbj51Hje66d4/P2nWqck6hJ0MmSFTuChaw4E67vCln5Gf4J+iv/+hB1BFRWt+R
rBTsw/Q41YOwWCupWS2cmaBOQznik2t3j3lfMIYZD7f+w/7frXvc9IjElj0x/R1k
BjSR2pBLeHosdqYa58Bszl34cUtQcUl7DQcvZaXI8TveyLc2d8riyd5bCKiHc17I
cb1VKX1F7acNwJp8oGs+yzRKpajhFe826vApoG+vtWgFwYrml3BwwI+3iWnlCjW+
2YPDQ0MScArbeKxS3ajARj3nBIamdMNM1WttPo5krOwytgKwVDvUoBIU6TeIMpIB
3Pi8HC0yBrcIt34bbeDwo3GHCv4G78GWnAscJyoMVWA3VqNOx/T4aSTqtXJQ6fwF
LNIGcco+el3KiSXuHqRr89DlPX+QNGsjK5Y1/GI+gusOSNWyulwDjnFFgeci1N9R
jeQocmeNDByFsbbancQCcl96jadILSwf3MPrRyPpqzFUFY8kV6U7vVQvd5hxBnrJ
9N4KQpWk94WJUXr3k5xkOpqN51+4cd2p1FrRfJnfidkZf5m2069oYug0tCoCLTid
m7oNKnS6jY3TKmw=
=4sMK
-----END PGP SIGNATURE-----