Bug#952159: rust-nodrop-union: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101

2022-08-21 Thread Eric Long
> Was this patch just a result of general QA activity or is there some 
> program you are trying to package?

Yes, this patch is for QA. I assumed there are important packages that rely
on this abandoned crate, hence the workaround. Otherwise removing it from
Debian seems a better choice.



Bug#952159: rust-nodrop-union: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101

2022-08-21 Thread Peter Michael Green

I have written a merge request [1] to fix FTBFS on all platforms. Tested on my
dev machine on amd64 and riscv64. If more helps are needed, please let me know.

Thanks for the patch,

Was this patch just a result of general QA activity or is there some 
program you are trying to package?


We can fix this up if there is a good reason, but i'm more inclined to 
say a crate that is abandoned upstream, fails to build with current 
rustc and has been superseeded by funcationality in the standard library 
probablly doesn't belong in Debian.


Bug#952159: rust-nodrop-union: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101

2022-08-21 Thread Eric Long
tags 952159 + patch
thanks

Hello Lucas and Maintainers,

I have written a merge request [1] to fix FTBFS on all platforms. Tested on my
dev machine on amd64 and riscv64. If more helps are needed, please let me know.

Cheers,
Eric

[1]: https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/377


Bug#952159: rust-nodrop-union: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101

2020-02-23 Thread Lucas Nussbaum
Source: rust-nodrop-union
Version: 0.1.9-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200222 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> export RUSTC_BOOTSTRAP=1; \
> dh_auto_test
> debian cargo wrapper: options, profiles, parallel: ['parallel=4'] [] ['-j4']
> 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', 
> '-j4', '--target', 'x86_64-unknown-linux-gnu'],) {}
>Compiling nodrop-union v0.1.9 (/<>)
>  Running `CARGO_PKG_VERSION_PRE= 
> LD_LIBRARY_PATH='/<>/target/debug/deps:/usr/lib' 
> CARGO_PKG_VERSION_MINOR=1 CARGO=/usr/bin/cargo CARGO_PKG_HOMEPAGE= 
> CARGO_PKG_REPOSITORY='https://github.com/bluss/arrayvec' 
> CARGO_PKG_NAME=nodrop-union CARGO_PKG_AUTHORS=bluss 
> CARGO_MANIFEST_DIR=/<> CARGO_PKG_VERSION=0.1.9 
> CARGO_PKG_DESCRIPTION='A wrapper type to inhibit drop (destructor). 
> Implementation crate for nodrop, the untagged unions implementation (which is 
> unstable / requires nightly) as of this writing.' CARGO_PKG_VERSION_PATCH=9 
> CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name nodrop_union src/lib.rs --color 
> never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C 
> metadata=572ee23bdbbb16ca -C extra-filename=-572ee23bdbbb16ca --out-dir 
> /<>/target/x86_64-unknown-linux-gnu/debug/deps --target 
> x86_64-unknown-linux-gnu -C 
> incremental=/<>/target/x86_64-unknown-linux-gnu/debug/incremental
>  -L dependency=/<>/target/x86_64-unknown-linux-gnu/debug/deps -L 
> dependency=/<>/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 
> /<>=/usr/share/cargo/registry/nodrop-union-0.1.9`
> warning: unknown lint: `unions_with_drop_fields`
>   --> src/lib.rs:29:9
>|
> 29 | #[allow(unions_with_drop_fields)]
>| ^^^
>|
>= note: `#[warn(unknown_lints)]` on by default
> 
> error[E0740]: unions may not contain fields that need dropping
>   --> src/lib.rs:32:5
>|
> 32 | value: T,
>| 
>|
> note: `std::mem::ManuallyDrop` can be used to wrap the type
>   --> src/lib.rs:32:5
>|
> 32 | value: T,
>| 
> 
> error: aborting due to previous error
> 
> For more information about this error, try `rustc --explain E0740`.
> error: could not compile `nodrop-union`.
> 
> Caused by:
>   process didn't exit successfully: `CARGO_PKG_VERSION_PRE= 
> LD_LIBRARY_PATH='/<>/target/debug/deps:/usr/lib' 
> CARGO_PKG_VERSION_MINOR=1 CARGO=/usr/bin/cargo CARGO_PKG_HOMEPAGE= 
> CARGO_PKG_REPOSITORY='https://github.com/bluss/arrayvec' 
> CARGO_PKG_NAME=nodrop-union CARGO_PKG_AUTHORS=bluss 
> CARGO_MANIFEST_DIR=/<> CARGO_PKG_VERSION=0.1.9 
> CARGO_PKG_DESCRIPTION='A wrapper type to inhibit drop (destructor). 
> Implementation crate for nodrop, the untagged unions implementation (which is 
> unstable / requires nightly) as of this writing.' CARGO_PKG_VERSION_PATCH=9 
> CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name nodrop_union src/lib.rs --color 
> never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C 
> metadata=572ee23bdbbb16ca -C extra-filename=-572ee23bdbbb16ca --out-dir 
> /<>/target/x86_64-unknown-linux-gnu/debug/deps --target 
> x86_64-unknown-linux-gnu -C 
> incremental=/<>/target/x86_64-unknown-linux-gnu/debug/incremental
>  -L dependency=/<>/target/x86_64-unknown-linux-gnu/debug/deps -L 
> dependency=/<>/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 
> /<>=/usr/share/cargo/registry/nodrop-union-0.1.9` (exit code: 1)
> dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/rust-nodrop-union_0.1.9-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.