Package: rust-simplelog Version: 0.7.4-2 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu impish ubuntu-patch
Hi Sylvestre, The rust-simplelog package has been failing to build in Ubuntu with the following error: ---- tests::test stdout ---- thread 'tests::test' panicked at 'called `Option::unwrap()` on a `None` value', /usr/src/rustc-1.41.0/src/libcore/macros/mod.rs:15:40 stack backtrace: 0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Displa y>::fmt 1: core::fmt::write 2: std::io::Write::write_fmt 3: std::io::impls::<impl std::io::Write for alloc::boxed::Box<W>>::write_fmt 4: std::panicking::default_hook::{{closure}} 5: std::panicking::default_hook 6: std::panicking::rust_panic_with_hook 7: rust_begin_unwind 8: core::panicking::panic_fmt 9: core::panicking::panic 10: core::option::Option<T>::unwrap at /usr/src/rustc-1.41.0/src/libcore/macros/mod.rs:15 11: simplelog::tests::test at src/lib.rs:117 12: simplelog::tests::test::{{closure}} at src/lib.rs:88 13: core::ops::function::FnOnce::call_once at /usr/src/rustc-1.41.0/src/libcore/ops/function.rs:232 14: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once 15: __rust_maybe_catch_panic 16: test::run_test_in_process note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. This happens because the Ubuntu build environment sets TERM=unknown, whereas Debian I believe sets it to TERM=linux. The attached patch overrides TERM in debian/rules, to ensure consistent build/test results regardless of the environment. Thanks for considering. -- 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/ slanga...@ubuntu.com vor...@debian.org
diff -Nru rust-simplelog-0.7.4/debian/rules rust-simplelog-0.7.4/debian/rules --- rust-simplelog-0.7.4/debian/rules 2020-04-22 04:26:38.000000000 -0700 +++ rust-simplelog-0.7.4/debian/rules 2021-08-27 18:22:02.000000000 -0700 @@ -1,4 +1,7 @@ #!/usr/bin/make -f + +export TERM=linux + %: dh $@ --buildsystem cargo