Source: rust-hostname
Version: 0.3.1-1
Severity: normal

When building rust packages using librust-hostname-dev on riscv64,
the build fails with the following diagnostics:

   Compiling hostname v0.3.1
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=hostname 
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/hostname-0.3.1 
CARGO_PKG_AUTHORS='fengcen <fengcen.l...@gmail.com>:svartalf 
<s...@svartalf.info>' CARGO_PKG_DESCRIPTION='Cross-platform system'\''s host 
name functions' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT 
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=hostname 
CARGO_PKG_REPOSITORY='https://github.com/svartalf/hostname' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.3.1 CARGO_PKG_VERSION_MAJOR=0 
CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc 
--crate-name hostname 
/<<PKGBUILDDIR>>/debian/cargo_registry/hostname-0.3.1/src/lib.rs 
--error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat 
--crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C 
debuginfo=2 --cfg 'feature="default"' -C metadata=b65d191c62f2f29c -C 
extra-filename=-b65d191c62f2f29c --out-dir 
/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps --target 
riscv64gc-unknown-linux-gnu -L 
dependency=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps -L 
dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern 
libc=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/liblibc-8a51d731e0dcd23a.rmeta
 --extern 
match_cfg=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/libmatch_cfg-a5ac8faeda475488.rmeta
 --cap-lints warn -C debuginfo=2 --cap-lints warn -C 
linker=riscv64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix 
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/virtiofsd-1.5.1 --remap-path-prefix 
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
warning: trivial cast: `*mut u8` as `*mut u8`
  --> /usr/share/cargo/registry/hostname-0.3.1/src/nix.rs:22:27
   |
22 |         libc::gethostname(buffer.as_mut_ptr() as *mut libc::c_char, size)
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> /usr/share/cargo/registry/hostname-0.3.1/src/lib.rs:53:5
   |
53 |     trivial_casts,
   |     ^^^^^^^^^^^^^
   = help: cast can be replaced by coercion; this might require a temporary 
variable

So the result is that other package(s) FTBFS.

Reply via email to