On 21/11/2023 11:41, Jonas Smedegaard wrote:
Quoting Peter Green (2023-11-21 09:16:21)
Tags 1055099 +patch
thanks

The autopkgtests for rust-async-task began failing after the upgrade
to from 4.4.1-1 to 4.5.0-1. This prevents its migration to Testing.
I have prepared a patch which adds a feature guard to the example in
question and hence fixes the autopkgtest. A debdiff is attatched, if
I get no response I intend to NMU this soon.
Thanks.

Seems the intended attachment is missing, however.

Sorry, attatched now.
diff -Nru rust-async-task-4.5.0/debian/changelog 
rust-async-task-4.5.0/debian/changelog
--- rust-async-task-4.5.0/debian/changelog      2023-10-19 12:46:47.000000000 
+0000
+++ rust-async-task-4.5.0/debian/changelog      2023-11-21 08:05:37.000000000 
+0000
@@ -1,3 +1,10 @@
+rust-async-task (4.5.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch 1001 to add feature requirement to example (Closes: #1055099)
+
+ -- Peter Micheal Green <plugw...@debian.org>  Tue, 21 Nov 2023 08:05:37 +0000
+
 rust-async-task (4.5.0-1) unstable; urgency=medium
 
   [ upstream ]
diff -Nru 
rust-async-task-4.5.0/debian/patches/1001_example_feature_requirements.patch 
rust-async-task-4.5.0/debian/patches/1001_example_feature_requirements.patch
--- 
rust-async-task-4.5.0/debian/patches/1001_example_feature_requirements.patch    
    1970-01-01 00:00:00.000000000 +0000
+++ 
rust-async-task-4.5.0/debian/patches/1001_example_feature_requirements.patch    
    2023-11-21 08:05:31.000000000 +0000
@@ -0,0 +1,16 @@
+Description: add feature requirement for example
+ Avoids build failure in autopkgtest.
+Author: Peter Micahel Green <plugw...@debian.org>
+Forwarded: no
+Last-Update: 2023-11-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rust-async-task-4.5.0/examples/spawn-local.rs
+===================================================================
+--- rust-async-task-4.5.0.orig/examples/spawn-local.rs
++++ rust-async-task-4.5.0/examples/spawn-local.rs
+@@ -1,3 +1,4 @@
++#![cfg(feature = "std")]
+ //! A simple single-threaded executor that can spawn non-`Send` futures.
+ 
+ use std::cell::Cell;
diff -Nru rust-async-task-4.5.0/debian/patches/series 
rust-async-task-4.5.0/debian/patches/series
--- rust-async-task-4.5.0/debian/patches/series 2023-10-10 17:25:47.000000000 
+0000
+++ rust-async-task-4.5.0/debian/patches/series 2023-11-21 08:05:37.000000000 
+0000
@@ -1 +1,2 @@
+1001_example_feature_requirements.patch
 2001_flaky-test.patch

Reply via email to