Package: rust-criterion
Version: 0.3.6-1
Severity: serious
Tags: patch

The rust-criterion package has inconsistent dependencies on the cast crate, the
dependency in the main Cargo.toml is on version 0.3, but the dependencies in the
debian packaging and in the embedded copy of the criterion-plot crate are at 0.2

I have updated the cast crate in Debian to 0.3, and prepared an update for the
rust-criterion package to use 0.3 consistently. I tested that the package built
succesfully and the autopkgtests passed with these changes.

While working on the fix, I discovered the clean target wasn't cleaning up
properly, so I fixed it to do so.

Debdiff attatched, If I get no response I will probablly NMU this in a week or
so.
diff -Nru rust-criterion-0.3.6/debian/changelog 
rust-criterion-0.3.6/debian/changelog
--- rust-criterion-0.3.6/debian/changelog       2022-11-07 07:51:45.000000000 
+0000
+++ rust-criterion-0.3.6/debian/changelog       2022-11-10 20:23:39.000000000 
+0000
@@ -1,3 +1,13 @@
+rust-criterion (0.3.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Update inconsistent cast dependencies to a consistent 0.3
+    + The cast dependency in the main Cargo.toml was at 0.3 while the Debian
+      Dependency and the cast dependency in the plot subcrate were at 0.2.
+  * Fix clean target.
+
+ -- Peter Michael Green <plugw...@debian.org>  Thu, 10 Nov 2022 20:23:39 +0000
+
 rust-criterion (0.3.6-1) unstable; urgency=medium
 
   [ upstream ]
diff -Nru rust-criterion-0.3.6/debian/control 
rust-criterion-0.3.6/debian/control
--- rust-criterion-0.3.6/debian/control 2022-11-07 07:50:12.000000000 +0000
+++ rust-criterion-0.3.6/debian/control 2022-11-10 20:23:39.000000000 +0000
@@ -7,7 +7,7 @@
  gnuplot-nox <!nocheck>,
  librust-approx-0.5+default-dev <!nocheck>,
  librust-atty-0.2+default-dev <!nocheck>,
- librust-cast-0.2+default-dev <!nocheck>,
+ librust-cast-0.3+default-dev <!nocheck>,
  librust-clap-2-dev (>= 2.33) <!nocheck>,
  librust-criterion-plot-0.4+default-dev (>= 0.4.4) <!nocheck>,
  librust-csv-1+default-dev (>= 1.1) <!nocheck>,
@@ -40,7 +40,7 @@
 Depends:
  gnuplot-nox,
  librust-atty-0.2+default-dev,
- librust-cast-0.2+default-dev,
+ librust-cast-0.3+default-dev,
  librust-clap-2-dev (>= 2.33),
  librust-criterion-plot-0.4+default-dev,
  librust-csv-1+default-dev,
diff -Nru 
rust-criterion-0.3.6/debian/patches/0000-bump-plot-cast-dependency.patch 
rust-criterion-0.3.6/debian/patches/0000-bump-plot-cast-dependency.patch
--- rust-criterion-0.3.6/debian/patches/0000-bump-plot-cast-dependency.patch    
1970-01-01 00:00:00.000000000 +0000
+++ rust-criterion-0.3.6/debian/patches/0000-bump-plot-cast-dependency.patch    
2022-11-10 20:23:39.000000000 +0000
@@ -0,0 +1,28 @@
+Description: Bump cast dependency in plot subcrate.
+ Taken from 
https://github.com/bheisler/criterion.rs/commit/06be43cda0169f5b9c91eb0298545c253ba8830f
+Author: Peter Michael Green <plugw...@debian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2022-11-10
+
+--- rust-criterion-0.3.6.orig/plot/Cargo.toml
++++ rust-criterion-0.3.6/plot/Cargo.toml
+@@ -12,7 +12,7 @@ categories = ["visualization"]
+ license = "MIT/Apache-2.0"
+ 
+ [dependencies]
+-cast = "0.2"
++cast = "0.3"
+ itertools = "0.10"
+ 
+ [dev-dependencies]
diff -Nru rust-criterion-0.3.6/debian/patches/series 
rust-criterion-0.3.6/debian/patches/series
--- rust-criterion-0.3.6/debian/patches/series  2022-11-07 07:45:44.000000000 
+0000
+++ rust-criterion-0.3.6/debian/patches/series  2022-11-10 20:23:39.000000000 
+0000
@@ -2,3 +2,4 @@
 1002_modernize_macro_syntax.patch
 2001_plotters.patch
 2002_no_unstable_features.patch
+0000-bump-plot-cast-dependency.patch
diff -Nru rust-criterion-0.3.6/debian/rules rust-criterion-0.3.6/debian/rules
--- rust-criterion-0.3.6/debian/rules   2022-06-22 12:00:18.000000000 +0000
+++ rust-criterion-0.3.6/debian/rules   2022-11-10 20:23:39.000000000 +0000
@@ -7,3 +7,6 @@
 
 %:
        dh $@ --buildsystem cargo
+
+execute_after_dh_auto_clean:
+       rm -rf target

Reply via email to