[Pkg-rust-maintainers] Bug#915283: rust-sha2-asm FTBFS on amd64: abort: could not determine source-distribution conditions

Adrian Bunk bunk at debian.org
Sun Dec 2 12:00:26 GMT 2018


Source: rust-sha2-asm
Version: 0.5.1-2
Severity: serious
Tags: ftbfs

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/rust-sha2-asm.html

...
cargo:rustc-link-lib=static=sha512
cargo:rustc-link-search=native=/build/1st/rust-sha2-asm-0.5.1/target/x86_64-unknown-linux-gnu/debug/build/sha2-asm-36f55ef2e5293fa7/out
dh-cargo:deb-built-using=sha256=0=/build/1st/rust-sha2-asm-0.5.1
     Running `rustc --crate-name sha2_asm src/lib.rs --color never --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=981cdd1018729bb5 -C extra-filename=-981cdd1018729bb5 --out-dir /build/1st/rust-sha2-asm-0.5.1/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/build/1st/rust-sha2-asm-0.5.1/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/build/1st/rust-sha2-asm-0.5.1/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/build/1st/rust-sha2-asm-0.5.1/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /build/1st/rust-sha2-asm-0.5.1=/usr/share/cargo/registry/sha2-asm-0.5.1 -L native=/build/1st/rust-sha2-asm-0.5.1/target/x86_64-unknown-linux-gnu/debug/build/sha2-asm-36f55ef2e5293fa7/out -L native=/build/1st/rust-sha2-asm-0.5.1/target/x86_64-unknown-linux-gnu/debug/build/sha2-asm-36f55ef2e5293fa7/out -l static=sha256 -l static=sha512`
    Finished dev [unoptimized + debuginfo] target(s) in 10.82s
debian cargo wrapper: options, profiles, parallel: ['buildinfo=+all', 'reproducible=+all', 'parallel=16'] [] ['-j16']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'build', '--verbose', '--verbose', '-j16', '--target', 'x86_64-unknown-linux-gnu'],) {}
/usr/share/cargo/dh-cargo-built-using: static library derived from /build/1st/rust-sha2-asm-0.5.1 which is the top-level crate being built, no need to add Built-Using
/usr/share/cargo/dh-cargo-built-using: abort: could not determine source-distribution conditions of build/sha2-asm-36f55ef2e5293fa7/out/libsha512.a.
You must patch build.rs of sha2-asm to output 'println!("dh-cargo:deb-built-using=sha512=$s={}", env::var("CARGO_MANIFEST_DIR").unwrap());' where:
- $s is 1 if the license(s) of the included static libs require source distribution alongside binaries, otherwise 0
dh_auto_test: env CARGO_CHANNEL=debug /usr/share/cargo/dh-cargo-built-using returned exit code 1
make[1]: *** [debian/rules:12: override_dh_auto_test] Error 25



More information about the Pkg-rust-maintainers mailing list