From 694c81d36bd6c48a0c26b748001cbe9d8d47a875 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Sat, 14 Jan 2023 23:08:03 +0000 Subject: [PATCH] os-display - fix autopkgtests. --- src/os-display/debian/changelog | 9 +++++++++ src/os-display/debian/copyright | 4 ++-- src/os-display/debian/copyright.debcargo.hint | 4 ++-- src/os-display/debian/debcargo.toml | 17 +++++++++++++++++ .../patches/mark-example-as-needing-std.diff | 13 +++++++++++++ src/os-display/debian/patches/series | 1 + 6 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 src/os-display/debian/patches/mark-example-as-needing-std.diff diff --git a/src/os-display/debian/changelog b/src/os-display/debian/changelog index 40db3a907..bf45c0d6d 100644 --- a/src/os-display/debian/changelog +++ b/src/os-display/debian/changelog @@ -1,3 +1,12 @@ +rust-os-display (0.1.3-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Team upload. + * Package os_display 0.1.3 from crates.io using debcargo 2.6.0 + * Mark example as requiring "std" feature. + * Establish baseline for tests. + + -- Peter Michael Green Sat, 14 Jan 2023 23:07:13 +0000 + rust-os-display (0.1.3-2) unstable; urgency=medium * Team upload. diff --git a/src/os-display/debian/copyright b/src/os-display/debian/copyright index c28e4a8dd..a47f73f2b 100644 --- a/src/os-display/debian/copyright +++ b/src/os-display/debian/copyright @@ -4,12 +4,12 @@ Upstream-Contact: Jan Verbeek Source: https://github.com/blyxxyz/os_display Files: * -Copyright: 2021 Jan Verbeek +Copyright: 2021-2022 Jan Verbeek License: MIT Files: debian/* Copyright: - 2022 Debian Rust Maintainers + 2022-2023 Debian Rust Maintainers 2022 Collabora, Ltd. License: MIT diff --git a/src/os-display/debian/copyright.debcargo.hint b/src/os-display/debian/copyright.debcargo.hint index 04b3607bb..3079c9574 100644 --- a/src/os-display/debian/copyright.debcargo.hint +++ b/src/os-display/debian/copyright.debcargo.hint @@ -21,8 +21,8 @@ Comment: Files: debian/* Copyright: - 2022 Debian Rust Maintainers - 2022 Ryan Gonzalez + 2022-2023 Debian Rust Maintainers + 2022-2023 Ryan Gonzalez License: MIT License: MIT diff --git a/src/os-display/debian/debcargo.toml b/src/os-display/debian/debcargo.toml index 09f23a7cf..1c2145974 100644 --- a/src/os-display/debian/debcargo.toml +++ b/src/os-display/debian/debcargo.toml @@ -1,2 +1,19 @@ overlay = "." uploaders = ["Ryan Gonzalez "] + +#the crate requires at least one of the native, unix or windows features +[packages.lib] +test_is_broken = true + +[packages."lib+native"] +test_is_broken = false + +[packages."lib+unix"] +test_is_broken = false + +[packages."lib+windows"] +test_is_broken = false + +[packages."lib+default"] +test_is_broken = false + diff --git a/src/os-display/debian/patches/mark-example-as-needing-std.diff b/src/os-display/debian/patches/mark-example-as-needing-std.diff new file mode 100644 index 000000000..a92ff6235 --- /dev/null +++ b/src/os-display/debian/patches/mark-example-as-needing-std.diff @@ -0,0 +1,13 @@ +--- rust-os-display-0.1.3.orig/Cargo.toml ++++ rust-os-display-0.1.3/Cargo.toml +@@ -27,6 +27,10 @@ all-features = true + [dependencies.unicode-width] + version = "0.1" + ++[[example]] ++name = "echo" ++required-features = ["std"] ++ + [features] + alloc = [] + default = ["native", "alloc", "std"] diff --git a/src/os-display/debian/patches/series b/src/os-display/debian/patches/series index 27c24da66..d1c453f55 100644 --- a/src/os-display/debian/patches/series +++ b/src/os-display/debian/patches/series @@ -1,2 +1,3 @@ update-dep.diff #fix-doctests.diff +mark-example-as-needing-std.diff -- 2.39.5