From 55122a036ecc9d868796b8ac18f149353fea883e Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Tue, 20 Dec 2022 21:57:15 +0000 Subject: [PATCH] sequoia-openpgp-mt - disable broken doctest. --- src/sequoia-openpgp-mt/debian/changelog | 8 ++++++ .../debian/copyright.debcargo.hint | 2 +- .../patches/disable-broken-doctest.patch | 25 +++++++++++++++++++ src/sequoia-openpgp-mt/debian/patches/series | 1 + 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/sequoia-openpgp-mt/debian/patches/disable-broken-doctest.patch diff --git a/src/sequoia-openpgp-mt/debian/changelog b/src/sequoia-openpgp-mt/debian/changelog index c92789e54..0165ab226 100644 --- a/src/sequoia-openpgp-mt/debian/changelog +++ b/src/sequoia-openpgp-mt/debian/changelog @@ -1,3 +1,11 @@ +rust-sequoia-openpgp-mt (0.1.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Team upload. + * Package sequoia-openpgp-mt 0.1.0 from crates.io using debcargo 2.6.0 + * Disable broken doctest (Closes: 1026663) + + -- Peter Michael Green Tue, 20 Dec 2022 20:56:00 +0000 + rust-sequoia-openpgp-mt (0.1.0-1) unstable; urgency=medium * Package sequoia-openpgp-mt 0.1.0 from crates.io using debcargo 2.5.0 diff --git a/src/sequoia-openpgp-mt/debian/copyright.debcargo.hint b/src/sequoia-openpgp-mt/debian/copyright.debcargo.hint index add129a4b..4439677d2 100644 --- a/src/sequoia-openpgp-mt/debian/copyright.debcargo.hint +++ b/src/sequoia-openpgp-mt/debian/copyright.debcargo.hint @@ -11,7 +11,7 @@ Comment: be correct information so you should review and fix this before uploading to the archive. -Files: ./LICENSE.txt +Files: LICENSE.txt Copyright: 1991 Free Software Foundation, Inc. License: UNKNOWN-LICENSE; FIXME (overlay) Comment: diff --git a/src/sequoia-openpgp-mt/debian/patches/disable-broken-doctest.patch b/src/sequoia-openpgp-mt/debian/patches/disable-broken-doctest.patch new file mode 100644 index 000000000..19fd3ea8c --- /dev/null +++ b/src/sequoia-openpgp-mt/debian/patches/disable-broken-doctest.patch @@ -0,0 +1,25 @@ +Description: disable broken doctest + The doctest in question fails to build, I tried to fix it following + https://stackoverflow.com/questions/31644207/cannot-find-macro-error-in-the-macros-own-doc-test + but failed to work out the correct incantation to import the macro. + . + Note that doctests are only run during build-time tests not autopkgtests + due to the bahaviour of --all-targets, see https://github.com/rust-lang/cargo/issues/6669 + . + This particular doctest was also not run previously at build time, I + am not sure what changed to cause it to be run. +Author: Peter Michael Green +Bug-Debian: https://bugs.debian.org/1026663 +Last-Update: 2022-12-20 + +--- rust-sequoia-openpgp-mt-0.1.0.orig/src/macros.rs ++++ rust-sequoia-openpgp-mt-0.1.0/src/macros.rs +@@ -66,7 +66,7 @@ macro_rules! tracer { + /// displays the output on stderr. The output is prefixed with label, + /// if it is provided. + /// +-/// ``` ++/// ```ignore + /// let result = time_it!("Some code", 10, { + /// // Some code. + /// 5 diff --git a/src/sequoia-openpgp-mt/debian/patches/series b/src/sequoia-openpgp-mt/debian/patches/series index e73b598af..ceba1995f 100644 --- a/src/sequoia-openpgp-mt/debian/patches/series +++ b/src/sequoia-openpgp-mt/debian/patches/series @@ -1 +1,2 @@ drop-windows-config.patch +disable-broken-doctest.patch -- 2.39.5