[Pkg-rust-maintainers] Bug#975484: rust-dbus: autopkgtest regression: build failed: expected `str`, found struct `std::ffi::CStr`
Paul Gevers
elbrus at debian.org
Sun Nov 22 18:26:23 GMT 2020
Source: rust-dbus
Version: 0.9.0-2
X-Debbugs-CC: debian-ci at lists.debian.org
Severity: serious
User: debian-ci at lists.debian.org
Usertags: regression
Dear maintainer(s),
With a recent upload of rust-dbus the autopkgtest of rust-dbus fails in
testing when that autopkgtest is run with the binary packages of
rust-dbus from unstable. It passes when run with only packages from
testing. In tabular form:
pass fail
rust-dbus from testing 0.9.0-2
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[1] https://qa.debian.org/excuses.php?package=rust-dbus
https://ci.debian.net/data/autopkgtest/testing/amd64/r/rust-dbus/8343716/log.gz
Running `CARGO_MANIFEST_DIR=/usr/share/cargo/registry/dbus-0.9.0
LD_LIBRARY_PATH='/tmp/tmp.mOh7cBiqA2/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo CARGO_PKG_VERSION_MINOR=9 CARGO_PKG_VERSION_PATCH=0
CARGO_PKG_DESCRIPTION='Bindings to D-Bus, which is a bus commonly used
on Linux for inter-process communication.' CARGO_PKG_HOMEPAGE=
CARGO_PKG_REPOSITORY='https://github.com/diwic/dbus-rs'
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION=0.9.0 CARGO_PKG_NAME=dbus
CARGO_PKG_AUTHORS='David Henningsson <diwic at ubuntu.com>'
CARGO_PKG_VERSION_PRE= rustc --crate-name dbus --edition=2018 src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link
-C debuginfo=2 --test --cfg 'feature="no-string-validation"' -C
metadata=78a9c65232eb4ced -C extra-filename=-78a9c65232eb4ced --out-dir
/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps --target
x86_64-unknown-linux-gnu -C
incremental=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/incremental
-L
dependency=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps
-L dependency=/tmp/tmp.mOh7cBiqA2/target/debug/deps --extern
libc=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-4745c4b1773b68fd.rlib
--extern
libdbus_sys=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps/liblibdbus_sys-be39e730af80d440.rlib
--extern
tempfile=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps/libtempfile-d85e26fb23f42f7b.rlib
-C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix
/usr/share/cargo/registry/dbus-0.9.0=/usr/share/cargo/registry/dbus-0.9.0
-L native=/usr/lib/x86_64-linux-gnu`
error[E0308]: mismatched types
--> src/strings.rs:230:51
|
230 | assert_eq!(p2, Ok(Path(Cow::Borrowed(unsafe {
CStr::from_ptr(b"##invalid##\0".as_ptr() as *const c_char) }))));
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected
`str`, found struct `std::ffi::CStr`
|
= note: expected reference `&str`
found reference `&std::ffi::CStr`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: could not compile `dbus`.
Caused by:
process didn't exit successfully:
`CARGO_MANIFEST_DIR=/usr/share/cargo/registry/dbus-0.9.0
LD_LIBRARY_PATH='/tmp/tmp.mOh7cBiqA2/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo CARGO_PKG_VERSION_MINOR=9 CARGO_PKG_VERSION_PATCH=0
CARGO_PKG_DESCRIPTION='Bindings to D-Bus, which is a bus commonly used
on Linux for inter-process communication.' CARGO_PKG_HOMEPAGE=
CARGO_PKG_REPOSITORY='https://github.com/diwic/dbus-rs'
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION=0.9.0 CARGO_PKG_NAME=dbus
CARGO_PKG_AUTHORS='David Henningsson <diwic at ubuntu.com>'
CARGO_PKG_VERSION_PRE= rustc --crate-name dbus --edition=2018 src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link
-C debuginfo=2 --test --cfg 'feature="no-string-validation"' -C
metadata=78a9c65232eb4ced -C extra-filename=-78a9c65232eb4ced --out-dir
/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps --target
x86_64-unknown-linux-gnu -C
incremental=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/incremental
-L
dependency=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps
-L dependency=/tmp/tmp.mOh7cBiqA2/target/debug/deps --extern
libc=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-4745c4b1773b68fd.rlib
--extern
libdbus_sys=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps/liblibdbus_sys-be39e730af80d440.rlib
--extern
tempfile=/tmp/tmp.mOh7cBiqA2/target/x86_64-unknown-linux-gnu/debug/deps/libtempfile-d85e26fb23f42f7b.rlib
-C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix
/usr/share/cargo/registry/dbus-0.9.0=/usr/share/cargo/registry/dbus-0.9.0
-L native=/usr/lib/x86_64-linux-gnu` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20201122/dbc5af34/attachment.sig>
More information about the Pkg-rust-maintainers
mailing list