[Pkg-rust-maintainers] Bug#1012702: rust-libsystemd: FTBFS in unstable

Steve Langasek steve.langasek at canonical.com
Sun Jun 12 05:55:32 BST 2022


Source: rust-libsystemd
Version: 0.2.1-3
Severity: serious
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu kinetic

Dear maintainers,

rust-libsystemd fails to build in unstable.  It's not clear to me from a
build log which of its build-dependencies has triggered this failure.

[...]
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=libsystemd CARGO_MANIFEST_DIR=/tmp/rust-libsystemd-0.2.1 CARGO_PKG_AUTHORS='Luca Bruno <lucab at debian.org>' CARGO_PKG_DESCRIPTION='A pure-Rust client library to interact with systemd' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libsystemd CARGO_PKG_REPOSITORY='https://github.com/lucab/libsystemd-rs' CARGO_PKG_VERSION=0.2.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/rust-libsystemd-0.2.1/target/debug/deps:/usr/lib' rustc --crate-name libsystemd --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=391c7be326d65e00 -C extra-filename=-391c7be326d65e00 --out-dir /tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/tmp/rust-libsystemd-0.2.1/target/debug/deps --extern error_chain=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/liberror_chain-15dd2f8bde382f75.rmeta --extern hmac=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/libhmac-0d9d3a82e1ccf65d.rmeta --extern libc=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-2459bf3735a2a015.rmeta --extern nix=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/libnix-9a5d1ba2327a249a.rmeta --extern serde=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/libserde-d5817db1ffae001f.rmeta --extern sha2=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/libsha2-6cae8de9ca2e7dd5.rmeta --extern uuid=/tmp/rust-libsystemd-0.2.1/target/x86_64-unknown-linux-gnu/debug/deps/libuuid-ebba74dd0d63f470.rmeta -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /tmp/rust-libsystemd-0.2.1=/usr/share/cargo/registry/libsystemd-0.2.1`
warning: use of deprecated enum `nix::sys::socket::SockAddr`: use SockaddrLike or SockaddrStorage instead
 --> src/activation.rs:3:23
  |
3 | use nix::sys::socket::SockAddr;
  |                       ^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated variant `nix::sys::socket::SockAddr::Inet`: use SockaddrLike or SockaddrStorage instead
   --> src/activation.rs:177:34
    |
177 |                 if let SockAddr::Inet(_) = addr {
    |                                  ^^^^

warning: use of deprecated variant `nix::sys::socket::SockAddr::Unix`: use SockaddrLike or SockaddrStorage instead
   --> src/activation.rs:190:34
    |
190 |                 if let SockAddr::Unix(_) = addr {
    |                                  ^^^^

warning: use of deprecated enum `nix::sys::socket::SockAddr`: use SockaddrLike or SockaddrStorage instead
 --> src/logging.rs:4:59
  |
4 | use nix::sys::socket::{sendmsg, ControlMessage, MsgFlags, SockAddr};
  |                                                           ^^^^^^^^

warning: use of deprecated enum `nix::sys::socket::SockAddr`: use SockaddrLike or SockaddrStorage instead
   --> src/logging.rs:152:16
    |
152 |     let path = SockAddr::new_unix(SD_JOURNAL_SOCK_PATH)?;
    |                ^^^^^^^^

warning: use of deprecated field `nix::sys::socket::SockAddr::Inet::0`: use SockaddrLike or SockaddrStorage instead
   --> src/activation.rs:177:39
    |
177 |                 if let SockAddr::Inet(_) = addr {
    |                                       ^

warning: use of deprecated field `nix::sys::socket::SockAddr::Unix::0`: use SockaddrLike or SockaddrStorage instead
   --> src/activation.rs:190:39
    |
190 |                 if let SockAddr::Unix(_) = addr {
    |                                       ^

error[E0308]: mismatched types
   --> src/activation.rs:201:20
    |
201 |         mq_getattr(*self).is_ok()
    |                    ^^^^^ expected `&MqdT`, found `i32`

For more information about this error, try `rustc --explain E0308`.
warning: `libsystemd` (lib) generated 7 warnings
error: could not compile `libsystemd` due to previous error; 7 warnings emitted
[...]

  (https://launchpad.net/ubuntu/+source/rust-libsystemd/0.2.1-3/+build/23812417)

The above link is to an Ubuntu build log, but I've confirmed the build
failure is also reproducible in sid.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20220611/633e6a5a/attachment-0001.sig>


More information about the Pkg-rust-maintainers mailing list